Yeah, that is basically what I'm doing: driving start conditions from the parser. One hint that there was unnecessary code duplication going on was when the state in some of my older lexers started looking like shift entries in the parser's action table.
Matt On 02/04/2011 01:21 AM, Raymond Wiker wrote:
I've used cl-yacc exactly once, and chose to implement "start conditions" in my lexer