Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ebc730c249
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (13 sloc) 0.465 kB
my class Grammar is Cursor {
method parse($target, :$rule = 'TOP', Mu :$actions = Mu, *%opt) {
my $*ACTIONS = $actions;
pir::find_caller_lex__Ps('$/') =
self."!cursor_init"($target, |%opt)."$rule"().MATCH;
}
method parsefile(Cool $filename as Str, *%opts) {
my $fh := open($filename);
my $match := self.parse($fh.slurp, |%opts);
$fh.close;
pir::find_caller_lex__Ps('$/') = $match;
}
}
Jump to Line
Something went wrong with that request. Please try again.