[Bro-Dev] BiF parsing index types

Vern Paxson vern at icir.org
Wed May 18 12:01:15 PDT 2011


> 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


More information about the bro-dev mailing list