Hi,
         I have a requirement, where in before starting the parsing, i need
to tell the parser whether the first token is T_FUNCTION / T_TRIGGER(say
callType). (i.e) this token is not available as part of the text to be
parsed. In Bison, it is just declared with %token T_FUNCTION and %token
T_TRIGGER. The scanner makes sure that it emits the callType token before it
emits the tokens to be parsed. Although, i am able to come up with some ways
to do this, they are too ugly.
            Can someone provide me a clean way of passing information into
the parser and make the scanner emit that as the first token, even before
the actual tokens are emitted? I am trying to do this in C-Language target.

Thanks in Advance,
Gokul.

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

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

Reply via email to