kotlin-spec
kotlin-spec copied to clipboard
Kotlin Language Specification:
Current valueArgument non-terminal does not allow for multiple annotations: ``` valueArgument: [annotation] {NL} [simpleIdentifier {NL} '=' {NL}] ['*'] {NL} expression ```
```kotlin object : Base, Base2 by Delegate() { } ``` the `{}` in the end is parsed as a lambda expression, but - trailing lambdas are forbidden for delegation expressions...
Before the lexical grammar it might be worth specifying how a source file is decoded from bytes to code-units. For example, the [Go spec](https://golang.org/ref/spec#Source_code_representation) mandates UTF-8 > Source code is...
Every item in the bullet list talks about it's own `U_j`, `U_m`, or `U_n` respectively
The Kotlin compiler parses according to different rules than what are described in this grammar specification. This patch aims to change the grammar to reflect the behaviour of the compiler,...
**Statement 1.** if (Widen(X)
Rough description of how it should work, text is to be altered