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

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to