what's the different between (tk|) and (tk)?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Compl_Still
Posted On:   Thursday, July 24, 2003 10:06 AM

I'm a beginer of ANTLR and I'm confused on two simular grammar - (tk|) and (tk)? what makes them different? any nice guru drop me a short description? Thanks Very Much!

Re: what's the different between (tk|) and (tk)?

Posted By:   Robert_Dorn  
Posted On:   Friday, July 25, 2003 06:48 AM

(tk)? is nearly equal to (tk|).


The only difference: (tk|) enables you to write semantics for the ""else"" case:


(tk {foo();} | {bar();} )
About | Sitemap | Contact