[antlr-interest] Newbie Q: Tree Grammar, Template or manual

Terence Parr parrt at cs.usfca.edu
Tue Apr 1 12:37:13 PDT 2008


Hi. if you are rewriting only some of the input, use  
TokenRewriteStream and output=template, rewrite=true.  Then rules have  
-> rewrites that say how to tweak that one item.
Ter

On Apr 1, 2008, at 11:20 AM, Simon Woods wrote:
> Hi
>
> I'm just beginning to start using antlr -so forgive the dumb question!
>
> I am trying to develop a query language which is quite like  
> (derivative of) SQL but has other structures which are more explicit  
> of the data structures being interrogated which I will then tranform  
> into SQL. I have developed an outline grammar for my query language  
> but am wondering what is the best option for generating SQL. Certain  
> parts of a statement may map directly onto a SQL clause whereas  
> other bits may need completely re-writing to fit SQL.
>
> I would be grateful of any pointers, clues or links which I could go  
> through to increase my understanding of this.
>
> Thanks
>
> Simon
>
>



More information about the antlr-interest mailing list