Rewrite grammar to implement operator precedence without using %right or %prec.
authormpi <mpi@openbsd.org>
Tue, 31 Aug 2021 08:39:26 +0000 (08:39 +0000)
committermpi <mpi@openbsd.org>
Tue, 31 Aug 2021 08:39:26 +0000 (08:39 +0000)
commit89f393010521bde64362e81d604132e2a60dd425
tree02e717d3dce6d426f185940d2b686faba3793f98
parent2c9c741cf533d678d73d5fc5dd805c0f1d07a08b
Rewrite grammar to implement operator precedence without using %right or %prec.

Arithmetic operator should now behave as expeted and tests can now be written
without superfluous parenthesis, for example:

syscall:select:entry
/($1 == 0) || (pid == $1)/
{
}

Can now be written:

syscall:select:entry
/$1 == 0 || pid == $1/
{
}

While here improve filter debugging support.
usr.sbin/btrace/TODO
usr.sbin/btrace/bt_parse.y
usr.sbin/btrace/bt_parser.h
usr.sbin/btrace/btrace.c
usr.sbin/btrace/map.c