btrace(8): fix yacc reduce conflicts and undefined symbol warnings.
authordv <dv@openbsd.org>
Sun, 13 Aug 2023 13:19:23 +0000 (13:19 +0000)
committerdv <dv@openbsd.org>
Sun, 13 Aug 2023 13:19:23 +0000 (13:19 +0000)
commit6201e9b13c6e36563d07259af1c054c55f5b0c04
tree9ecb437e559779e2d3349dda1ac7467a32b5cd4e
parentf22a72c18245b07fdf4e43170516b8875296ebf1
btrace(8): fix yacc reduce conflicts and undefined symbol warnings.

Define the STR symbol, used for the str function.

Tune the grammar, simplifying the 'pat' rule to 'expr'. Resolves
the reduce conflicts related to 'pat' and 'factor' both matching a
lone CSTRING token.

ok mpi@
usr.sbin/btrace/bt_parse.y