[antlr-interest] Template map question

Terence Parr parrt at cs.usfca.edu
Wed Jan 30 15:36:13 PST 2008


On Jan 30, 2008, at 3:28 PM, Dan Stanger wrote:
> Hello All,
> Is it possible to access a map created in my group file, from the  
> parser,
> in a rewrite rule?

I believe so yes. just reference it as you would in a group file.

>  I would like to add new mappings to it.

oh.  Well, you would need to have an action not a rewrite rule do  
that. I can't remember the interface, but you would have to ask the ST  
group object for its maps.

> Are there code samples for either of these?

I don't think so.
Ter


More information about the antlr-interest mailing list