[Bro-Dev] Bro script parser: shift/reduce conflicts.
Gregor Maier
gregor at icir.org
Wed Dec 8 19:02:31 PST 2010
Hi,
The bro policy script parser, parse.y has 71 shift/reduce conflicts.
(Which are resolved by bison by always choosing shift). This results in
bison issuing a warning.
Presumably these 71 conflicts are all fine and expected. So I would add
a %expect 71 clause the parse.y. This will make bison expect 71
shift/reduce conflicts. If the number differs, then bison will exit with
an error (and make exit with an error). If the number matches, bison
will be silent.
Question: are there any reason to not use this?
cu
Gregor
--
Gregor Maier gregor at icir.org
Int. Computer Science Institute (ICSI) gregor at icsi.berkeley.edu
1947 Center St., Ste. 600 http://www.icir.org/gregor/
Berkeley, CA 94704
USA
More information about the bro-dev
mailing list