aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/grammar.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt
index c78e2a6..969740c 100644
--- a/doc/grammar.txt
+++ b/doc/grammar.txt
@@ -61,7 +61,10 @@ enum := "enum" [ expression ] "{" ( NAME ), "}"
union := "union" [ type ] "{" fields "}"
fields := ( NAME type ),
-expression := equality | comparison
+expression := disjunction
+disjunction := conjunction ( "||" conjunction )*
+conjunction := boolean ( "&&" boolean )*
+boolean := equality | comparison
equality := comparison ( "==" | "!=" ) comparison
comparison := term [ ( "<" | "<=" | ">" | ">=" ) term ]
term := numeral [ ( "<<" | ">>" ) numeral ]