Example :
use v6.c;
use Grammar::Tracer;
grammar MyGr {
token TOP { 'A' | 'B' }
}
my $mo = MyGr.parse('A');
say $mo;
my $mo2 = MyGr.parse('B');
say $mo2;
gives this output
TOP
* MATCH "A"
「A」
TOP
* MATCH "A"
「A」
When commenting the "use Grammar::Tracer" line, I get the expected output with B match.
Example :
gives this output
When commenting the "use Grammar::Tracer" line, I get the expected output with B match.