Update grammar file to reflect interface -> namespace
This commit is contained in:
Родитель
73ddb6858b
Коммит
f056c012e4
|
@ -24,7 +24,7 @@ Keyword :
|
||||||
BooleanLiteral
|
BooleanLiteral
|
||||||
`import`
|
`import`
|
||||||
`model`
|
`model`
|
||||||
`interface`
|
`namespace`
|
||||||
|
|
||||||
Identifier :
|
Identifier :
|
||||||
IdentifierName but not Keyword
|
IdentifierName but not Keyword
|
||||||
|
@ -171,7 +171,7 @@ StatementList :
|
||||||
Statement :
|
Statement :
|
||||||
ImportStatement
|
ImportStatement
|
||||||
ModelStatement
|
ModelStatement
|
||||||
InterfaceStatement
|
NamespaceStatement
|
||||||
`;`
|
`;`
|
||||||
|
|
||||||
ImportStatement :
|
ImportStatement :
|
||||||
|
@ -210,19 +210,19 @@ ModelProperty:
|
||||||
ModelSpreadProperty :
|
ModelSpreadProperty :
|
||||||
`...` Identifier
|
`...` Identifier
|
||||||
|
|
||||||
InterfaceStatement :
|
NamespaceStatement:
|
||||||
DecoratorList? `interface` Identifier `{` InterfaceBody? `}`
|
DecoratorList? `namespace` Identifier `{` NamespaceBody? `}`
|
||||||
|
|
||||||
InterfaceBody :
|
NamespaceBody :
|
||||||
InterfacePropertyList `,`?
|
NamespacePropertyList `,`?
|
||||||
InterfacePropertyList `;`?
|
NamespacePropertyList `;`?
|
||||||
|
|
||||||
InterfacePropertyList :
|
NamespacePropertyList :
|
||||||
InterfaceProperty
|
NamespaceProperty
|
||||||
InterfacePropertyList `,` InterfaceProperty
|
NamespacePropertyList `,` NamespaceProperty
|
||||||
InterfacePropertyList `;` InterfaceProperty
|
NamespacePropertyList `;` NamespaceProperty
|
||||||
|
|
||||||
InterfaceProperty :
|
NamespaceProperty :
|
||||||
DecoratorList? Identifier `(` ModelPropertyList? `)` `:` Expression
|
DecoratorList? Identifier `(` ModelPropertyList? `)` `:` Expression
|
||||||
|
|
||||||
Expression :
|
Expression :
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
   <a name="Keyword-3508e1fd"></a>*[BooleanLiteral](#BooleanLiteral)*
|
   <a name="Keyword-3508e1fd"></a>*[BooleanLiteral](#BooleanLiteral)*
|
||||||
   <a name="Keyword-0330acf5"></a>`` import ``
|
   <a name="Keyword-0330acf5"></a>`` import ``
|
||||||
   <a name="Keyword-fa60d604"></a>`` model ``
|
   <a name="Keyword-fa60d604"></a>`` model ``
|
||||||
   <a name="Keyword-ef54526d"></a>`` interface ``
|
   <a name="Keyword-94f12ff9"></a>`` namespace ``
|
||||||
|
|
||||||
  <a name="Identifier"></a>*Identifier* **:**
|
  <a name="Identifier"></a>*Identifier* **:**
|
||||||
   <a name="Identifier-11758399"></a>*[IdentifierName](#IdentifierName)* **but not** *[Keyword](#Keyword)*
|
   <a name="Identifier-11758399"></a>*[IdentifierName](#IdentifierName)* **but not** *[Keyword](#Keyword)*
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
  <a name="Statement"></a>*Statement* **:**
|
  <a name="Statement"></a>*Statement* **:**
|
||||||
   <a name="Statement-648ff91f"></a>*[ImportStatement](#ImportStatement)*
|
   <a name="Statement-648ff91f"></a>*[ImportStatement](#ImportStatement)*
|
||||||
   <a name="Statement-3606dce2"></a>*[ModelStatement](#ModelStatement)*
|
   <a name="Statement-3606dce2"></a>*[ModelStatement](#ModelStatement)*
|
||||||
   <a name="Statement-a875a11d"></a>*[InterfaceStatement](#InterfaceStatement)*
|
   <a name="Statement-fe52538f"></a>*[NamespaceStatement](#NamespaceStatement)*
|
||||||
   <a name="Statement-4a0dac03"></a>`` ; ``
|
   <a name="Statement-4a0dac03"></a>`` ; ``
|
||||||
|
|
||||||
  <a name="ImportStatement"></a>*ImportStatement* **:**
|
  <a name="ImportStatement"></a>*ImportStatement* **:**
|
||||||
|
@ -196,20 +196,20 @@
|
||||||
  <a name="ModelSpreadProperty"></a>*ModelSpreadProperty* **:**
|
  <a name="ModelSpreadProperty"></a>*ModelSpreadProperty* **:**
|
||||||
   <a name="ModelSpreadProperty-ba1e81db"></a>`` ... `` *[Identifier](#Identifier)*
|
   <a name="ModelSpreadProperty-ba1e81db"></a>`` ... `` *[Identifier](#Identifier)*
|
||||||
|
|
||||||
  <a name="InterfaceStatement"></a>*InterfaceStatement* **:**
|
  <a name="NamespaceStatement"></a>*NamespaceStatement* **:**
|
||||||
   <a name="InterfaceStatement-d483a1e3"></a>*[DecoratorList](#DecoratorList)*<sub>opt</sub> `` interface `` *[Identifier](#Identifier)* `` { `` *[InterfaceBody](#InterfaceBody)*<sub>opt</sub> `` } ``
|
   <a name="NamespaceStatement-9652df2c"></a>*[DecoratorList](#DecoratorList)*<sub>opt</sub> `` namespace `` *[Identifier](#Identifier)* `` { `` *[NamespaceBody](#NamespaceBody)*<sub>opt</sub> `` } ``
|
||||||
|
|
||||||
  <a name="InterfaceBody"></a>*InterfaceBody* **:**
|
  <a name="NamespaceBody"></a>*NamespaceBody* **:**
|
||||||
   <a name="InterfaceBody-42db29a8"></a>*[InterfacePropertyList](#InterfacePropertyList)* `` , ``<sub>opt</sub>
|
   <a name="NamespaceBody-2073a613"></a>*[NamespacePropertyList](#NamespacePropertyList)* `` , ``<sub>opt</sub>
|
||||||
   <a name="InterfaceBody-3356a474"></a>*[InterfacePropertyList](#InterfacePropertyList)* `` ; ``<sub>opt</sub>
|
   <a name="NamespaceBody-491851d8"></a>*[NamespacePropertyList](#NamespacePropertyList)* `` ; ``<sub>opt</sub>
|
||||||
|
|
||||||
  <a name="InterfacePropertyList"></a>*InterfacePropertyList* **:**
|
  <a name="NamespacePropertyList"></a>*NamespacePropertyList* **:**
|
||||||
   <a name="InterfacePropertyList-4b6e0e43"></a>*[InterfaceProperty](#InterfaceProperty)*
|
   <a name="NamespacePropertyList-7c41a03c"></a>*[NamespaceProperty](#NamespaceProperty)*
|
||||||
   <a name="InterfacePropertyList-7a4ddc85"></a>*[InterfacePropertyList](#InterfacePropertyList)* `` , `` *[InterfaceProperty](#InterfaceProperty)*
|
   <a name="NamespacePropertyList-f06fd699"></a>*[NamespacePropertyList](#NamespacePropertyList)* `` , `` *[NamespaceProperty](#NamespaceProperty)*
|
||||||
   <a name="InterfacePropertyList-f364599f"></a>*[InterfacePropertyList](#InterfacePropertyList)* `` ; `` *[InterfaceProperty](#InterfaceProperty)*
|
   <a name="NamespacePropertyList-89234f4f"></a>*[NamespacePropertyList](#NamespacePropertyList)* `` ; `` *[NamespaceProperty](#NamespaceProperty)*
|
||||||
|
|
||||||
  <a name="InterfaceProperty"></a>*InterfaceProperty* **:**
|
  <a name="NamespaceProperty"></a>*NamespaceProperty* **:**
|
||||||
   <a name="InterfaceProperty-6e1a4442"></a>*[DecoratorList](#DecoratorList)*<sub>opt</sub> *[Identifier](#Identifier)* `` ( `` *[ModelPropertyList](#ModelPropertyList)*<sub>opt</sub> `` ) `` `` : `` *[Expression](#Expression)*
|
   <a name="NamespaceProperty-6e1a4442"></a>*[DecoratorList](#DecoratorList)*<sub>opt</sub> *[Identifier](#Identifier)* `` ( `` *[ModelPropertyList](#ModelPropertyList)*<sub>opt</sub> `` ) `` `` : `` *[Expression](#Expression)*
|
||||||
|
|
||||||
  <a name="Expression"></a>*Expression* **:**
|
  <a name="Expression"></a>*Expression* **:**
|
||||||
   <a name="Expression-3936659b"></a>*[UnionExpressionOrHigher](#UnionExpressionOrHigher)*
|
   <a name="Expression-3936659b"></a>*[UnionExpressionOrHigher](#UnionExpressionOrHigher)*
|
||||||
|
|
Загрузка…
Ссылка в новой задаче