aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCamil Staps2017-07-27 13:23:20 +0200
committerCamil Staps2017-07-27 13:23:20 +0200
commit220601e2f2ec57024e6502e2f4e778c4a99dfe10 (patch)
tree9fc27ef0c3b4504880348dae4c9ef3f93a7868c1 /README.md
parentResolve #11: special case for Void main (diff)
Resolve #3: comments
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 50ed15e..bb02905 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,9 @@ or can be interpreted with the [ABCMachine][abc-github] project.
<CodeBlock> ::= <Initialisation>-list <Statement>-list
-<Initialisation> ::= <Type> <Name>-clist ';'
+<Initialisation> ::= <Type> <InitName>-clist ';'
+
+<InitName> ::= <Name> [':=' <Expression>]
<Statement> ::= [<Name> ':='] <Expression> ';'
| 'return' [<Expression>] ';'
@@ -41,6 +43,9 @@ or can be interpreted with the [ABCMachine][abc-github] project.
<Int> ::= <Digit>-list
```
+Comments (single-line `//`, multi-line `/* ... */`) are not included in the
+grammar above.
+
## Dependencies
You need a working Clean installation to build the compiler and at least `clm`