[antlr-interest] XPath 1 Grammar in V3 b6

Dr. Kocher, Hartmut h.kocher at pharmatechnik.de
Mon Mar 5 00:47:15 PST 2007


Alex, 

you might run into a problem I described in "Code generation bug in tree parser (ANTLRV3b6)" a few days ago. There's a fix for ANTLR 3 included.

 

Kind regards

Hartmut Kocher

 

 

Von: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] Im Auftrag von Alex Milowski
Gesendet: Freitag, 2. März 2007 17:39
An: antlr-interest at antlr.org
Betreff: [antlr-interest] XPath 1 Grammar in V3 b6

 

I've been attempting to write an XPath 1.0 grammar in prep for an XPath 2.0 grammar.  I
keep running into compile errors where 'UP' and 'DOWN' tokens that do not exist
in my grammar are generated somehow.  This particular grammar also has problems 
with expressions like 'foo and bar' that I just can't quite figure out.

I've always liked antlr but I think this latest attempt has gotten the best of me and
I've given up for now and just hand wrote the parser.  If anyone can give me a 
few pointers, that'd be great.

I attached the grammar and a test program.

One thing that would be really helpful is more complete documentation on the
V3 grammar itself.  The wiki has been useful but I found myself going into the 
V2 documentation a lot and then trying to figure out what has translated to V3.

--Alex Milowski





--------------------------------------------------------------------
Pharmatechnik GmbH & Co. KG
Münchner Straße 15
D-82319 Starnberg

Sitz der Gesellschaft: Starnberg
HRA: 64434, HRB: 66369, Amtsgericht München
Geschäftsführer: Dr. Detlef Graessner, Werner Torns, Stephan Jörgens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070305/9d7eb726/attachment.html 


More information about the antlr-interest mailing list