[antlr-interest] error messages + treeParser with OR'ed root
Koen Segers
koensegers at scarlet.be
Fri Mar 18 06:22:56 PST 2005
Hi,
I have 2 problems.
First one is a problem with the treeParser.
In Parser I created an ast. In treeParser I walk this one.
I have this in my walker:
parameterType=typeSpecifier (par:ID)
If the ID isn't in the ast the error is:
<AST>: expecting ID, found '<empty tree>'
how can I give the line number + column number?
Second problem has to do with an root in walker that is OR'ed.
#( (PLUS|MINUS|STAR|DIV) lType = expr rType = expr)
gives an error of unexpected token '('.
Any idea how I can fix this?
Greetz
Thx in advance.
--
Koen Segers
-----------------------------------------------------
Let op! Mijn mailadres verandert naar ... @scarlet.be
Gelieve dit aan te passen in uw adresboek.
More information about the antlr-interest
mailing list