[antlr-interest] Fundamental tree parsing question

Ted Villalba ted.villalba at gmail.com
Tue Jul 10 13:25:38 PDT 2007


I was on 1.0.11b. Having upgraded to the latest version it works.
Thanks for your time Benjamin.
Very much appreciated!

Ted

On 7/10/07, Benjamin Niemann <pink at odahoda.de> wrote:
>
> Ted Villalba wrote:
>
> > Here is the grammar attached below, with your most recent suggestion. I
> > can walk it without issue, with input like :
> > query=(city AND mountain dwellers)
> >
> > until I try to add the use of the imaginary tokens, for example, in the
> > 'field' rule below:
> > The grammar:
> > [...]
>
> Mmm... I can't reproduce the problem. I can step through the input and get
> the output:
>
> AST:
> (= (TAG (TAG query)) (VALUE (AND (TERMS city)     (TERMS mountain
> dwellers))))
>
> Probably not what you finally want (redundant TAG and some WS not
> omitted),
> but at least it does not crash...
>
> I used ANTLRWorks 1.0.2 and "Java(TM) 2 Runtime Environment, Standard
> Edition (build 1.5.0_12-b04)" on Debian GNU/Linux. What's your setup?
>
> --
> Benjamin Niemann
> Email: pink at odahoda dot de
> WWW: http://pink.odahoda.de/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070710/a369e1ee/attachment.html 


More information about the antlr-interest mailing list