Hello, Everyone :) Was referred here from my StackOverflow question: http://stackoverflow.com/questions/3278338/using-the-antlr-c-target-how-can-i-get-the-previously-matched-token-in-the-lexer
I'm quite new to ANTLR; and my Lexer needs to have a gated rule which makes it valid if and only if it occurs directly after another rule. If there's a way to get the previously emitted token type, that would make that gating easy. Otherwise I have to fail over to a nasty hack of turning the boolean flag off after every lexer rule. Is it simple/easy to get that information in a lexer rule predicate? 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 -- 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.
