Figurecore-grammar-expressions
| ::= | special constant | ||
| value variable | |||
| value constructor | |||
| operator value | |||
| unit | |||
| tuple | |||
| empty list | |||
| record | |||
| record update | |||
| local declaration | |||
| parentheses | |||
| ::= | expression row | ||
| ::= | atomic | ||
| application (L) | |||
| function | |||
| case analysis | |||
| ::= | match | ||
| ::= | match rule | ||
| ::= | value declaration | ||
| ::= | variable binding | ||
| destructuring binding |
Referred to from
Tests (5)
- elm / BadTupleATupleOfFourTestA four-element tuple is rejected with a BAD TUPLE error.
- elm / InfixIfExtendsRightTestAn `if` extends as far right as it can: its `else` branch takes in a chain after it.
- elm / InfixNoQualifiedOperatorTest`1 Basics.+ 2` is not an expression: no operator is qualified.
- elm / InfixNoSectionLeftTest`(1 +)` is not an expression: Elm has no operator sections.
- elm / InfixNoSectionRightTest`(+ 1)` is not an expression: Elm has no operator sections.
Discussions
Discuss this figure·Search the discussions on GitHub
Discussions are on GitHub; one about this figure has [fig:core-grammar-expressions] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.