Created
May 28, 2009 07:26
-
-
Save perl6/119159 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat z | |
grammar ABC { | |
token TOP { abc | <oops: "Failed to find abc!"> } | |
method oops($msg) { die $msg; } | |
} | |
ABC.parse('xyz'); | |
$ ./perl6 z | |
Failed to find abc! | |
in method ABC::oops (z:3) | |
called from regex ABC::TOP (z:1) | |
called from Main (z:6) | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment