[stringtemplate-interest] sequences and unique numbers

Terence Parr parrt at cs.usfca.edu
Tue May 3 17:01:18 PDT 2011


On Apr 30, 2011, at 3:26 AM, Udo Borkowski wrote:
> 
> Every time you need a new unique number reference "uniq", but make sure to use the "<(…)>" notation to ensure "early evaluation". As you will typically want to refer to the unique number you need to store it. In Ter's example the parameter "label" is used for this purpose.
> 
> if(cond, block, label={end<(uniq)>}) ::= <<
> 	<cond>
> 	brf <label>
> 	<block>
> <label>:
>  >>
> 

{<(...)>}Is a special pattern that I look for...

Ter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110503/b3b2ca94/attachment-0001.html 


More information about the stringtemplate-interest mailing list