Created
December 28, 2011 23:02
-
-
Save softmoth/1530283 to your computer and use it in GitHub Desktop.
whitespace in rule, differs w/ niecza (correct?) vs. nom
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 G { | |
rule TOP { ^ <word> ** 2 $ } | |
rule word { \w+ } | |
} | |
say G.parse('take garbage')<word>.map({"«$_»"}).join(', '); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment