Created
March 7, 2020 17:50
Star
You must be signed in to star a gist
evalable6
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
grammar Test { token TOP { <x>+ % \h+ [\N*] \n } proto token x {*} token x:sym<A> { \S+ [\h \S+]* } token x:sym<B> { "[" <special-token> "]" <.ws> <important-message> } token special-token { "SPECIAL TOKEN" } token important-message { \S+ }}my $dat = q:to/EOF/;59.5 Some Term [SPECIAL TOKEN] Important!! Yet |
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
(exit code 1) | |
===SORRY!=== Error while compiling /tmp/xUZXV9BPC0 | |
Strange text after block (missing semicolon or comma?) | |
at /tmp/xUZXV9BPC0:1 | |
------> t { token TOP { <x>+ % \h+ [\N*] \n }⏏ proto token x {*} token x:sym<A> | |
expecting any of: | |
infix | |
infix stopper | |
postfix | |
statement end | |
statement modifier | |
statement modifier loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment