> For this to work yacc has to be able to switch the lexer mode. I don't > know whether yacc can to do this (I think only the lexer can switch its > mode/state). It can if you do it carefully. Basically, there's a "preproduction" (something reduced early on) that has an action to call into the scanner and flag for it to switch. Vern