[antlr-interest] Strange report on console

romje at javaxpert.com romje at javaxpert.com
Thu Jul 20 05:31:37 PDT 2006


Hi all,
using the latest stable ANTLR release I've got some strange information on
my console:

line 1:1: expecting "File", found 'File'

This is an excerpt from my grammar..

header_eliot_unit:
                  file_identifier
                  ;
file_identifier:
                "File" HEADER_SEPARATOR PATH
                "RS" QUALIFIED_NAME
                ;

Can't see what 's wrong with it...
Can't figure how ANTLR see a string as a kind of char indeed....


grepping through the source code, found this message comes from the
MismatchedTokenException#getMessage().. Why such exception ?
I hope that File is seen a File isn't it ?

Any clue welcomed

Cheers
jerome
-- 
Auteur cahiers du programmeur J2EE - Eyrolles 2003



More information about the antlr-interest mailing list