[antlr-interest] new action syntax proposal

Wincent Colaiuta win at wincent.com
Sun Jul 15 02:50:06 PDT 2007


El 15/7/2007, a las 3:38, Jim Idle escribió:

> Perhaps:
>
> {<
>> }
>
>  (you can read the < as backtrack I guess:
>
> I suspect though that all such sequences offer some clash with targets
> ;-)

Yes, exactly, which is why I think the new syntax, whatever it is,  
should go *outside* the action block's delimiting curlies. That means  
either of these two suggestions:

@always { ... }
@{ ... }

Or modifying your suggestion, Jim:

<{ }

Cheers,
Wincent




More information about the antlr-interest mailing list