Open ahuoguo opened 3 weeks ago
I think br is just unimplemented yet, so it should pass parsing tests but not further ones yet
Yes the emitter for br
is unimplemented. But the check that whamm
doesn't contain event br
should be done at parser phase.
Changing this bug -- the real issue is that any probe after the first is not being processes into the AST
additional issue - statements after the first probe_def error --EDIT: FIXED
The issue is in add_probe() When is_empty removes the provider from the list, it removes it for other probes in the script There shouldn't be a check if providers list is empty before throwing an error
This should be solved in the parser rework #64
The following program (copy to
src/parser/tests.rs
)should failed with an error like this:
but it passes parsing, ignoring the event
br
. (see printed AST)Should be some processing logic error at
process_pair
insrc/parser/types.rs