[antlr-interest] (no subject)
Vincent Dupuis
vincedupuis at hotmail.com
Fri Mar 28 08:52:40 PDT 2008
Hello,
I don't know if this is the right post for these kind (level) of question. (If not, tell me where to do it)
I'm a new user of antlr 3 and StringTemplate.
Question:
Is it possible, in a template, to obtain the "parent" values.
Example:
file(name, methods) ::= <</* * Generated <name>
*/
<methods; separator="\n\n">>>
method(retType, name, params) ::= <<<retType> <file.name>::<name>(<params>){}>>
Of course the <file.name> doesn't work but it's what I want.
Do I need to pass the file.name for every method as a parameter?
Thanks,
Vincent
_________________________________________________________________
Envoie un sourire, fair rire, amuse-toi! Employez-le maintenant!
http://g.msn.ca/ca55/209
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080328/a872a438/attachment-0001.html
More information about the antlr-interest
mailing list