[antlr-interest] indirect template references
Torsten Curdt
tcurdt at vafer.org
Thu Oct 9 05:26:54 PDT 2008
Seem it needs to be
<a:(typeMap.(a.type))()>
or
<(typeMap.(a.type))(a)>
But how do I add a prefix?
cheers
--
Torsten
On Oct 9, 2008, at 14:16, Torsten Curdt wrote:
> What wrong with the following indirect reference?
>
> <attributes:{ a |
> <a:(write<typeMap.(a.type)>)>
> }>
>
> typeMap ::= [
> "int":"INTEGER",
> "string":"STRING",
> default:"OBJECT"
> ]
>
> writeSTRING(a) ::= <<
> // STRING
>>>
>
> writeINTEGER(a) ::= <<
> // INT
>>>
>
> writeOBJECT(a) ::= <<
> // OBJECT
>>>
>
> cheers
> --
> Torsten
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
More information about the antlr-interest
mailing list