[antlr-interest] Re: error in my rule...

vaida_mo <vaida_morkute at hotmail.com> vaida_morkute at hotmail.com
Wed Dec 11 06:41:51 PST 2002


Hi,

Thank you for the help. The rule suggested by Micheal helped me to
achieve the result I was looking for.

> query!
> 	:SELECT! a:selection_list (WHERE! b:where_list )?
> 
>       {#query = #(#[QUERY, "QUERY"],
>                   #([SELECT, "SELECT"], a),
>                   #([WHERE, "WHERE"], b));
> 	;

AST construction in the above rule does not evaluate the cases when
WHERE part is missing.

Regards,

Vaida :)


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list