let thing: int = 32;
fn main() {
print("Hello, World");
}
Works because in the base_expr rule, fn_call is the first to be checked in the or group. However, moving it to the end will fail because it tries to match the ident rule first/only.
Expected behavior
I want the program to come back and try to match the rest of the or group before erroring.
Additional context
Sorry for making this so specific, I don't know how to generalize this more.
Describe the bug This is a very specific bug and I don't know exactly what is going on.
I have some rules:
(I will attach the entire file below)
This will fail:
Because
Which does match
ident
rule inexpr
, but ignores thefn_call
rule next to it in theor
operatorHowever, Using: jasmine.pest.txt With:
Works because in the
base_expr
rule,fn_call
is the first to be checked in theor
group. However, moving it to the end will fail because it tries to match theident
rule first/only.Expected behavior I want the program to come back and try to match the rest of the
or
group before erroring.Additional context Sorry for making this so specific, I don't know how to generalize this more.