Re: Disambiguating lexer rules
Posted By:
Monty_Zukowski
Posted On:
Wednesday, January 7, 2004 08:33 AM
Yes, that sounds good. The main thing to avoid is feedback from parser to lexer. Either do it in the parser completely or lexer completely. Meaning the other alternative would be to make your lexer smarter by doing some parsing there, keeping track of state with "lexer states" (see docs.)