[antlr-interest] single-pass pattern matching "for free"?

Sohail Somani sohail at taggedtype.net
Sun Jan 15 13:01:06 PST 2006


On Sun, 2006-01-15 at 12:50 -0800, Sohail Somani wrote:
> > The translation of a pattern -> replacement system would be trivial  
> > for a simple system; just translate to ANTLR.  Further, to separate  
> > the view from the controller, one could use templates on the right:
> > 
> > "<a:expr>+<b:expr>" -> add(left=a,right=b)
> 
> or the equivalent in ST:
> 
> add(lexpr,rexpr)::<<
> (<lexpr>) + (<rexpr>)
> >>

I have no idea why I wrote this



More information about the antlr-interest mailing list