Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grammar ABC {
- token TOP { . "bc" . };
- };
- say ABC.parse("abcd"); # abcd
- token TOP { . "bc" .+ }; # abcd # .* is OK too
- token TOP { .+ "bc" . }; # Any # .* Any too
- # error?
- grammar ABC {
- token TOP { <noise> "bc" <noise> };
- token <noise> { . };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement