aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 299f733..6a821b8 100644
--- a/README.md
+++ b/README.md
@@ -16,8 +16,7 @@ or can be interpreted with the [ABCMachine][abc-github] project.
<Initialisation> ::= <Type> <Name>-clist ';'
-<Statement> ::= <Name> ':=' <Expression> ';'
- | <Expression> ';'
+<Statement> ::= [<Name> ':='] <Expression> ';'
| 'return' [<Expression>] ';'
| 'if' '(' <Expression> ')' '{' <CodeBlock> '}'
['else' 'if' '(' <Expression> ')' '{' <CodeBlock> '}']-list
@@ -29,7 +28,8 @@ or can be interpreted with the [ABCMachine][abc-github] project.
| <Literal>
| <Name> '(' <Expression>-clist ')'
| <Op1> <Expression>
- | <Op2> <Expression>
+ | <Expression> <Op2> <Expression>
+ | '(' <Expression> ')'
<Op1> ::= '~' | '!'