[antlr-interest] ANTLR 3.0 Templates

Sebastian Mies sebastian.mies at gmx.net
Thu Jun 9 02:03:09 PDT 2005


Hi!

Does anybody know if ANTLR 3.0 supports templates?
Maybe I did not read Ter's blog right.

I would like to have something like that:

expr<Op,Next> : <Next> (<Op> <Next>)* { /* doing lots of changes here
*/ };

plusMinus: expr<PLUS|MINUS,mulDiv>;
mulDiv: expr<MUL|DIV,literal>;
literal: INT | id;

Sebastian.










More information about the antlr-interest mailing list