Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 7, 2020 17:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Whateverable/f1824bcc7894f9b9737e2d56be2854b0 to your computer and use it in GitHub Desktop.
evalable6
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
(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