Documentation for method parsefile

Documentation for method parsefile, assembled from the following types:

class Grammar

From Grammar

(Grammar) method parsefile

Defined as:

method parsefile(Str(Cool$filename:$enc*%opts)

Reads file $filename, and parses it. All named arguments are passed on to method parse.

grammar A {
    token TOP { a+ };
}
A.parsefile('my-good-file'enc => 'UTF-8');