[antlr-interest] Does ANTLR TreeParsing [still] have these "flaws"?

Terence Parr parrt at jguru.com
Tue Jan 21 10:49:01 PST 2003


On Tuesday, January 21, 2003, at 09:31 AM, micheal_jor 
<open.zone at virgin.net> wrote:

> Hi,
>
> I came across this piece on flaws with ANTLR TreeParsers on my
> travels and wondered if anyone had an opinion.
>
> http://www.cc.gatech.edu/classes/AY2000/cs4240_fall/ANTLR_Patch/

The problems are:

1    Token information is not retained, so you can't keep track of 
which line    number of the original source code a token came from, 
which makes    it impossible to give good typechecker error messages

This was just discussed on the list I think....can't do it yet.  I want 
to investigate more.

2   ANTLR's default rules for TreeParsers will "shave off" any 
decorations    you add to the tree

I'm not sure what he's getting at here...i think he means that trees 
weren't dup'd properly.  That is fixed.

Ter :)
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list