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