[antlr-interest] unget a character

Paul J. Lucas pauljlucas at mac.com
Wed Dec 22 10:25:22 PST 2004


	Is there any way to "unget" a character back onto the head of
	the input stream?

	I have multiple lexers and when lexer 'B' encounters a character
	is shouldn't, I want it to pop itself, "unget" the character,
	and then lexer 'A' try it.

	- Paul



More information about the antlr-interest mailing list