[antlr-interest] Syntax confirmation

Phil Ritchie endigitalmind at yahoo.co.uk
Fri Aug 4 03:46:02 PDT 2006


Am I correct in my understanding:
 
[snippet from grammar file]
file
    : rec=record -> {%file(r={$rec.text})}
    ;
 
%file corresponds to a StringTemplate template.
r corresponds to the template parameter
 
So my template could be:
 
file(r) ::= "My record = <r>"
 


More information about the antlr-interest mailing list