E202 Undeclared flagΒΆ

%on, %off or %if names a flag that no %flag declares.

start: %on(nested, item)
item: %if(nested) "a"
grammar.fpeg:1:12: error[E202]: the flag nested is not declared with %flag
grammar.fpeg:2:11: error[E202]: the flag nested is not declared with %flag

Declare the flag.

%flag nested
start: %on(nested, item)
item: %if(nested) "a"