I found a post with no reply last december from howardk (who i believe has since been using jjtree): http://groups.yahoo.com/group/antlr-interest/message/6896 has anyone managed a working xquery grammar with antlr? what is the issue with lexical states? -mda Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/