[antlr-interest] AST/rewrite rule question

Gavin Lambert antlr at mirality.co.nz
Fri Jan 18 18:53:55 PST 2008


At 13:25 19/01/2008, Terence Parr wrote:
 >try
 >
 >selectQueries :  (sq+=selectQuery)* -> ^(SELECT_QUERIES $sq+);

Surely that should be a * on the RHS, to match the one on the 
left?  I seem to recall reading posts from people who had this 
sort of thing throw exceptions when there was no data to insert 
(eg. when $sq is null).



More information about the antlr-interest mailing list