[antlr-interest] ANTLR 2.7.5 release candidate 1 available
(nowwith python code gen!)
wolfgang haefelinger
ora.et.labora at web.de
Thu Dec 23 12:25:14 PST 2004
Hi Kaleb,
>> $ /usr/local/bin/antlr -traceLexer tinyc_l.g
>> ANTLR Parser Generator Version 2.7.5rc1 (20041222) 1989-2004
jGuru.com
>> tinyc_l.g:41: warning:lexical nondeterminism upon
>> tinyc_l.g:41: k==1:'*'
>> tinyc_l.g:41: k==2:'/'
>> tinyc_l.g:41: between alt 1 and exit branch of block
I didn't change the original 'tinyc' grammar. You will see
the same warnings when using tinyc for Java, C++ etc.
>> $ python tinyc_p.py < tinyc.in
>> Traceback (most recent call last):
>> [..]
>> AttributeError: 'Parser' object has no attribute 'traceIndent'
It's not in the doc - it's the bleeding edge. There's no
"debugging" support right now. Had no time to work on it
yet - but soon to be fixed (rc2), sorry.
>> $ python tinyc_p.py < tinyc.in
>> stop - no AST generated.
Is "-traceParser" supposed to turn AST generation on? I
thought it's just subject to option "buildAST". Perhaps
I missed this.
Thanks for reporting the problem and please keep posting
problems (especially regarding Python) and other obstacles
you encounter.
Cheers,
Wolfgang.
More information about the antlr-interest
mailing list