[antlr-interest] why <if(y==2 )> in Stringtemplate does not work?

YingAnnie yimm8369 at hotmail.com
Fri Mar 6 13:13:31 PST 2009


 

 

Hi,

 

I used the following stg, the aim is when y is equal to 2 ,print out <x><z><y>, but <if(y==2 )> does not work.

group T;
assgin(x,y,z)::= <<
<if(y==2)><x><z><y><else><"fsdfsdfsdf"><endif>


>>

 

How can I use if...else in Stringtemplate?

 

 

Thanks in advance.

 

 

Annie


_________________________________________________________________
上Windows Live 中国首页,下载最新版 MSN!
http://im.live.cn/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090307/3c7aafa6/attachment.html 


More information about the antlr-interest mailing list