summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Böhm <bb@xnull.de>2009-05-25 18:46:22 +0200
committerBenedikt Böhm <bb@xnull.de>2009-05-25 18:46:22 +0200
commit23daaf1372863949e2fccebafd25a0d973716d54 (patch)
treefd6a5c3b4fd1607cd1c48082403467d973c10af7
parentf720e2d49c6292ccb3de8c9668c99a5b799038b2 (diff)
downloadswppy-23daaf1372863949e2fccebafd25a0d973716d54.tar.gz
swppy-23daaf1372863949e2fccebafd25a0d973716d54.tar.xz
swppy-23daaf1372863949e2fccebafd25a0d973716d54.zip
add modulus operator
-rw-r--r--doc/mylang.ebnf2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/mylang.ebnf b/doc/mylang.ebnf
index 6945557..0ab786d 100644
--- a/doc/mylang.ebnf
+++ b/doc/mylang.ebnf
@@ -13,7 +13,7 @@ join = join "&&" equality | equality.
equality = equality "==" relation | equality "!=" relation | relation.
relation = expression "<" expression | expression "<=" expression | expression ">=" expression | expression ">" expression | expression.
expression = expression "+" term | expression "-" term | term.
-term = term "*" unary | term "/" unary | unary.
+term = term "*" unary | term "/" unary | term "%" unary | unary.
unary = "!" unary | "-" unary | factor.
factor = "(" bool ")" | ident | integer | "true" | "false".