I think that this might be a known bug which is fixed in the 3.1.4 snapshot. Download and try that.
If not that bug then something in your grammar that I can't see on my iphone. Jim On Sep 16, 2009, at 12:55 AM, [email protected] wrote: > Hi, > > trying to parse the following: > (The problem is with the template %join) > > relativePath > : ('//'|'/') (ns=QNAME ':')? nm=QNAME > { $st = %join(table={$QNAME.text}); } > | dot='.' -> {%{$dot.text}} > | STRING -> {%{$STRING.text}} > | '@' qn=QNAME -> {%{$QNAME.text}} > | cm=comp -> template(c={$cm.st}) "<c>" > ; > I get the following error, > > error(100): :1:1: syntax error: antlr: XPathSqlTree.g:1:1: > unexpected token: > join > error(10): internal error: > Exception java.lang.ClassCastException: Unable to cast object of > type > 'antlr.CommonToken' to > type > 'antlr.TokenWithIndex'[email protected] > (TokenStreamRewriteEngine.java:161): > can't parse template action > > what am I doing wrong. > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
