I am using Grammar::Tracer with the following setup:
p.p6
use v6;
use lib '.';
use MyGrammar;
my $res = MyGrammar.parse('hello 6 9 bye');
say $res;
MyGrammar.pm6:
unit grammar MyGrammar;
use Grammar::Tracer;
rule TOP { [<number> || <word> ]* }
rule number { \d+ }
rule word { \w+}
But the tracing is not enabled. I guess it is because the grammer MyGrammar
is not in the lexical scope of the use Grammar::Tracer
statement?