diff options
-rw-r--r-- | README.md | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -28,17 +28,21 @@ or can be interpreted with the [ABCMachine][abc-github] project. <Expression> ::= <Name> | <Literal> - | <Name> '(' <Expression>-clist ')' - | <Op1> <Expression> - | <Expression> <Op2> <Expression> - | '(' <Expression>-clist ')' - | '(' <Expression> ')' - | <Expression> '.' <Name> + | <Name> '(' <Expression>-clist ')' // Function application + | <Op1> <Expression> // Unary operator + | <Expression> <Op2> <Expression> // Binary operator + | '(' <Expression>-clist ')' // Tuple + | '[' <Type> ']' // Empty list + | '[' <Expression>-clist ']' // List shortcut + | <Expression> '.' <Name> // Field application + | '(' <Expression> ')' // Parenthised expression <Op1> ::= '~' | '!' -<Op2> ::= '+' | '-' | '*' | '/' | '%' | '==' | '||' | '&&' +<Op2> ::= '+' | '-' | '*' | '/' | '%' | '==' | '||' | '&&' | ':' <Type> ::= 'Bool' | 'Int' | 'Void' + | '(' <Type>-clist ')' // Tuple + | '[' <Type> ']' // List <Literal> ::= <Bool> | <Int> <Bool> ::= 'True' | 'False' |