Thanks, Gavin...

I think this worked -- tried it right after I posted.  Just wasn't  
sure of the behavior but you cleared that up.


On Oct 17, 2008, at 17:12 , Gavin Lambert wrote:

> At 09:31 18/10/2008, Bill Andersen wrote:
> >What I'd like to do is to set the text of the generated
> >AS_NAME node to the text of NAME.  The book isn't clear
> >on this case.  Anything wrong with the following:
> >
> >name
> >     : t=NAME -> ^(AS_NAME[$t])
> >
> >??
>
> What happened when you tried it?
>
>
> If you just want the text alone copied over (and not the line/column/ 
> index info) then you should use $t.text instead.  Using $t (or just  
> t, I forget which) will try to copy all characteristics of the  
> "real" token and just change the token type.
>

Bill Andersen
Ontology Works, Inc. (www.ontologyworks.com)
3600 O'Donnell Street, Suite 600
Baltimore, MD 21224
Office: +1.410.675.1201
Cell: +1.443.858.6444
Fax: +1.410.675.1204





List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to