Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #38794] [TODO] compilers/pge/rulec.pir should report line numbers on failure

0 views
Skip to first unread message

Will Coleda

unread,
Mar 23, 2006, 2:44:32 PM3/23/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Will Coleda
# Please include the string: [perl #38794]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38794 >


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.

0 new messages