Skip to content

Commit

Permalink
Introduce grammar updates (#4109)
Browse files Browse the repository at this point in the history
  • Loading branch information
eernstg authored Sep 28, 2024
1 parent 2d47285 commit 60bbf6e
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions working/augmentation-libraries/feature-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -1127,13 +1127,13 @@ topLevelDeclaration ::= classDeclaration
| extensionDeclaration
| enumType
| typeAlias
| 'external' functionSignature ';'
| 'external' getterSignature ';'
| 'external' setterSignature ';'
| 'external' finalVarOrType identifierList ';'
| 'augment'? functionSignature functionBody
| 'augment'? getterSignature functionBody
| 'augment'? setterSignature functionBody
| 'augment'? 'external' functionSignature ';'
| 'augment'? 'external' getterSignature ';'
| 'augment'? 'external' setterSignature ';'
| 'augment'? 'external' finalVarOrType identifierList ';'
| 'augment'? functionSignature (functionBody | ';')
| 'augment'? getterSignature (functionBody | ';')
| 'augment'? setterSignature (functionBody | ';')
| 'augment'? ('final' | 'const') type? initializedIdentifierList ';'
| 'augment'? 'late' 'final' type? initializedIdentifierList ';'
| 'augment'? 'late'? varOrType initializedIdentifierList ';'
Expand Down Expand Up @@ -1172,7 +1172,7 @@ memberedDeclarationBody ::= '{' memberDeclarations '}'
memberDeclarations ::= (metadata memberDeclaration)*
memberDeclaration ::= declaration ';'
memberDeclaration ::= 'augment'? declaration ';'
| 'augment'? methodSignature functionBody
enumEntry ::= metadata 'augment'? identifier argumentPart?
Expand All @@ -1188,17 +1188,17 @@ declaration ::= 'external'? factoryConstructorSignature
| 'external' ('static'? finalVarOrType | 'covariant' varOrType) identifierList
| 'external'? operatorSignature
| 'abstract' (finalVarOrType | 'covariant' varOrType) identifierList
| 'augment'? 'static' 'const' type? initializedIdentifierList
| 'augment'? 'static' 'final' type? initializedIdentifierList
| 'augment'? 'static' 'late' 'final' type? initializedIdentifierList
| 'augment'? 'static' 'late'? varOrType initializedIdentifierList
| 'augment'? 'covariant' 'late' 'final' type? identifierList
| 'augment'? 'covariant' 'late'? varOrType initializedIdentifierList
| 'augment'? 'late'? 'final' type? initializedIdentifierList
| 'augment'? 'late'? varOrType initializedIdentifierList
| 'augment'? redirectingFactoryConstructorSignature
| 'augment'? constantConstructorSignature (redirection | initializers)?
| 'augment'? constructorSignature (redirection | initializers)?
| 'static' 'const' type? initializedIdentifierList
| 'static' 'final' type? initializedIdentifierList
| 'static' 'late' 'final' type? initializedIdentifierList
| 'static' 'late'? varOrType initializedIdentifierList
| 'covariant' 'late' 'final' type? identifierList
| 'covariant' 'late'? varOrType initializedIdentifierList
| 'late'? 'final' type? initializedIdentifierList
| 'late'? varOrType initializedIdentifierList
| redirectingFactoryConstructorSignature
| constantConstructorSignature (redirection | initializers)?
| constructorSignature (redirection | initializers)?
```

**TODO: Define the grammar for the various `augmented` expressions.**
Expand Down

0 comments on commit 60bbf6e

Please sign in to comment.