mirror of
https://gitee.com/BDWare/genparser
synced 2025-04-26 22:12:17 +00:00
feat: yjs keyword sharable
This commit is contained in:
parent
8e06d0bc81
commit
00a3f79fb8
@ -140,6 +140,7 @@ In: 'in';
|
||||
Try: 'try';
|
||||
Event: 'event';
|
||||
AtToken: '@';
|
||||
Sharable: 'sharable';
|
||||
|
||||
/// Event Semantics
|
||||
|
||||
|
@ -63,6 +63,7 @@ clzOrFunctionDeclaration
|
||||
|functionDeclaration
|
||||
|interfaceDeclaration
|
||||
|eventDeclaration
|
||||
|sharableDeclaration
|
||||
;
|
||||
|
||||
interfaceDeclaration
|
||||
@ -120,6 +121,17 @@ block
|
||||
statementList
|
||||
: statement+
|
||||
;
|
||||
sharableDeclaration
|
||||
: sharableStatement
|
||||
;
|
||||
|
||||
sharableStatement
|
||||
: sharableModifier variableDeclarationList eos
|
||||
;
|
||||
|
||||
sharableModifier // let, const - ECMAScript 6
|
||||
: Sharable
|
||||
;
|
||||
|
||||
variableStatement
|
||||
: varModifier variableDeclarationList eos
|
||||
@ -441,6 +453,7 @@ keyword
|
||||
| Protected
|
||||
| Static
|
||||
| Yield
|
||||
| Sharable
|
||||
;
|
||||
|
||||
eos
|
||||
|
Loading…
x
Reference in New Issue
Block a user