[il-antlr-interest: 33305] Re: [antlr-interest] Deciphering the TreeWalker error message ...

2011-07-22 Thread srinivasan karthikeyan pitchai
Hi Folks, I take on board the unanimous input that the tree grammar rule should start with TOKEN. However what keeps me puzzled is that, inspite of having all my rules intact and just slightly rejigging my alternatives make the tree grammar parse the input tree perfectly fine. I am able to

[il-antlr-interest: 33271] Re: [antlr-interest] Deciphering the TreeWalker error message ...

2011-07-21 Thread srinivasan karthikeyan pitchai
in my tree grammars. Regards Gary On Thu, Jul 21, 2011 at 3:29 PM, srinivasan karthikeyan pitchai srinivasan.karthikeyan.pitc...@oracle.com wrote: Hi Folks, I forgot to mention. The compoundExpression rule has options{backtrack = true;} set that is it reads like compoundExpression

[il-antlr-interest: 33243] [antlr-interest] Deciphering the TreeWalker error message ...

2011-07-20 Thread srinivasan karthikeyan pitchai
Hi Folks, What does the ANTLR walker error message like the following mean? no viable alt; token=[@-1,0:0='DOWN' Would appreciate any general guidance/suggestions to zero in on the errors of this nature. Thanks, Vasan Input sql: --- select (1) from table1 where 2 between 3 and 4;

[il-antlr-interest: 33267] Re: [antlr-interest] Deciphering the TreeWalker error message ...

2011-07-20 Thread srinivasan karthikeyan pitchai
From: srinivasan karthikeyan pitchai srinivasan.karthikeyan.pitc...@oracle.com To: antlr-interest@antlr.org Cc: Terence Parrpa...@cs.usfca.edu Sent: Wednesday, July 20, 2011 9:46 AM Subject: [antlr-interest] Deciphering the TreeWalker error message ... Hi Folks

[il-antlr-interest: 33268] Re: [antlr-interest] Deciphering the TreeWalker error message ...

2011-07-20 Thread srinivasan karthikeyan pitchai
or do not get the error. --Loring From: srinivasan karthikeyan pitchai srinivasan.karthikeyan.pitc...@oracle.com To: antlr-interest@antlr.org Cc: Terence Parrpa...@cs.usfca.edu Sent: Wednesday, July 20, 2011 9:46 AM Subject: [antlr-interest] Deciphering

[il-antlr-interest: 33270] Re: [antlr-interest] Deciphering the TreeWalker error message ...

2011-07-20 Thread srinivasan karthikeyan pitchai
/21/2011 10:59 AM, srinivasan karthikeyan pitchai wrote: Hi Folks, I forgot to mention. The compoundExpression rule has options{backtrack = true;} set that is it reads like compoundExpression options {backtrack = true;} : ^(sclarSubExpression conversion_clause

[il-antlr-interest: 32743] [antlr-interest] AST rewrite

2011-06-11 Thread srinivasan karthikeyan pitchai
Hi Gurus, I'm a novice using ANTLR for a development project. I am at a stage where I need to rewrite AST so that the transformed AST renders itself more easy for me to walk and emit the translation that I need. In this context I've a concept question. In general, can I use the *same* tree

[il-antlr-interest: 32748] Re: [antlr-interest] AST rewrite

2011-06-11 Thread srinivasan karthikeyan pitchai
this dependency, so i can base my trees on BaseTree, rather than CommonTree. On 2011 Jun 11, at 00:53, srinivasan karthikeyan pitchai wrote: Hi Gurus, I'm a novice using ANTLR for a development project. I am at a stage where I need to rewrite AST so that the transformed AST renders itself more easy