diff options
author | Camil Staps | 2017-07-27 13:23:20 +0200 |
---|---|---|
committer | Camil Staps | 2017-07-27 13:23:20 +0200 |
commit | 220601e2f2ec57024e6502e2f4e778c4a99dfe10 (patch) | |
tree | 9fc27ef0c3b4504880348dae4c9ef3f93a7868c1 /README.md | |
parent | Resolve #11: special case for Void main (diff) |
Resolve #3: comments
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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` |