[antlr-interest] Creating AST with third party grammar

tahiti rus-reg at yandex.ru
Sat Feb 6 01:59:13 PST 2010


Hello. I download the grammar for Sparql query language from there:

http://code.google.com/p/sparkle-g/downloads/list, 

archive sparkle-g-2.0.zip, file Sparql.g

I has generate the grammar and try use it. I has no problem with lexer
output, it work fine, but I don't know how access to AST tree. In ANTLR
examples there are some methods in generated Parser that return AST tree,
but in my generated parser methods for matching (e.g. query) has no return
result. I suppose that I must call this method and ast will be generated,
then I must use standart antlr methods to access it. I read documentation
but don't undestand what api to use for accessing builded AST.

-- 
View this message in context: http://n2.nabble.com/Creating-AST-with-third-party-grammar-tp4524691p4524691.html
Sent from the ANTLR mailing list archive at Nabble.com.


More information about the antlr-interest mailing list