The simplest grammar usage gives me complation error.
use v6;
grammar Foo {
token bar { \w+ }
}
say 'abc' ~~ /<Foo::bar>/;
Invoked like src/rakudo/perl6 simple.p6
, it fails with
regex assertion not terminated by angle bracket at line 7, near "::bar>/;\n"
...
I tried a number of known-to-work examples with similar results, so I suspect that my perl6 setup is incorrect.
If you use grammar with perl6, please show me your setup. Thanks in advance.