# New Ticket Created by  "Clinton A. Pierce" 
# Please include the string:  [perl #22360]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22360 >


(Low priority, more an annoyance than anything.)

When the message of the form:
        
        parse error, unexpected FOO, expecting BAR

is produced such as:

        C:\projects\perl\parrot\languages\BASIC\compiler>..\..\imcc\imcc  err.imc
        (error) line 8: parse error, unexpected IDENTIFIER, expecting '\n'
        Didn't create output asm.

IMCC should identify the file that the error occurs in, as well as what the 
IDENTIFIER was that caused the error message in the first place.  For 
example, for included.imc brought in from main.imc:

        .sub foo:       #  void foo(int argc[, string arg)
                # Stuff in here
        .end

Should probably say something to the effect of:

        (error) line 1, included.imc: parse error, unexpected LABEL ("foo:"), 
expecting IDENTIFIER
        Didn't create output asm.




Reply via email to