ZOLparser/ZOLparser/grammar.txt
2021-10-17 20:02:45 +02:00

5 lines
176 B
Plaintext

expression -> wedge ( ( "->" | "<->" ) wedge)*
wedge -> unary ( ( "^" | "v" ) unary)*;
unary -> "~" unary | primary;
primary -> atom | "(" expression ")" ;
atom -> [pqrs] ;