A) Yes there are, you just install your own pointer; B) Yes there is, you just wrap the existing structure in your own,but ther are user definable fields which make things easier than trying to sub class; C) Yes there is:
lexer->emit(lexer); /* Assemble the token and emit it to the stream */ Jim > -----Original Message----- > From: [email protected] [mailto:antlr-interest- > [email protected]] On Behalf Of Billy O'Neal > Sent: Wednesday, July 21, 2010 7:05 PM > To: [email protected] > Subject: [antlr-interest] How can I emit multiple tokens in a lexer > rule, using the C target? > > There only seems to be documentation on how to do this using targets > with object oriented languages, which merely subclass the `emit` > method and wrap a buffer around it. This becomes a problem for the C > target of course because A. there are no virtual methods, and B. there > is no subclassing, and C. there is no (at least that I can find) > `emit` method. > > Is there a way of accomplishing this with the C target? > > Billy3 > -------------------------------------------------------------- > Intern - PreEmptive Solutions, LLC > Malware Response Instructor - BleepingComputer.com > Analyst, Security Team - TechSupportForum.com > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your- > email-address List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/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.
