docs(expression.py): correct grammar definition of lexer

This commit is contained in:
lovetheguitar 2024-06-22 19:49:59 +02:00
parent 66eff85e54
commit 73bc35ce2b
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ The grammar is:
expression: expr? EOF
expr: and_expr ('or' and_expr)*
and_expr: not_expr ('and' not_expr)*
not_expr: 'not' not_expr | '(' expr ')' | ident ( '(' name '=' value ( ', ' name '=' value )* ')')*
not_expr: 'not' not_expr | '(' expr ')' | ident ('(' name '=' value ( ', ' name '=' value )* ')')?
ident: (\w|:|\+|-|\.|\[|\]|\\|/)+