[antlr-interest] line 1878:20 missing 'REV=' at u'REV=2006.05.07'

Maciej Bliziński maciej.blizinski at gmail.com
Sat Mar 28 15:50:48 PDT 2009


I've recently wrote a grammar which works when running in the debug
mode using Java as the target language. But when the target language
is switched to Python, the following messages are displayed:

(...)
line 1931:9 missing 'REV=' at u'REV=2004.03.20'
line 1933:98 mismatched input u'none' expecting NON_COMMA
line 1934:10 missing 'REV=' at u'REV=2006.10.09'
line 1936:8 missing 'REV=' at u'REV=2009.03.12'
line 1937:11 missing 'REV=' at u'REV=2007.05.12'
line 1937:125 mismatched input u'none' expecting NON_COMMA
line 1939:10 missing 'REV=' at u'REV=2009.02.04'
(...)

A way to reproduce it is:

svn checkout http://usable-solaris.googlecode.com/svn/branches/opencsw
opencsw-read-only
cd opencsw-read-only/packages/
make antlr-3.1.1.jar catalog-antlr
python import_catalog.py

I don't quite get the error message. The parser expects 'REV=', but
'REV=' is right there in the data. Also, the same grammar works fine
with Java. Do you have any ideas as to what the problem is and how to
fix it?

Maciej


More information about the antlr-interest mailing list