Skip to content

Instantly share code, notes, and snippets.

@Mouq
Last active December 23, 2015 06:29
Show Gist options
  • Save Mouq/6594765 to your computer and use it in GitHub Desktop.
Save Mouq/6594765 to your computer and use it in GitHub Desktop.
use v6;
use File::Find;
token fudge-declaration { ^^ "#?rakudo" .*? $$ }
token test
{
[
| "is"
| "isnt"
| "ok"
| "nok"
| "lives_ok"
]
.*? ;
}
rule bracket { \{ [<bracket>|.*?] \} }
rule fudge { <fudge-declaration> [ <test> | <bracket> ] }
for find(/".t" ^/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment