We should instead report the error by line number and position.
For example, given a grammar of:
grammar bad;
rule sugar {{ good }
and a command of:
../../parrot ../../compilers/pge/rulec.pir --compiler=p6rules foo.g
we currently output:
p6rule parse error: Term expected at offset 26, found '{'
instead we should output:
p6rule parse error: Term expected at line 3, position 13, found '{'
Regards.