Created
January 30, 2019 08:35
-
-
Save tjcrowder/ff77cad3bb92a80f1cfa2e2d3c7529dc to your computer and use it in GitHub Desktop.
Grammar change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```html | |
<emu-grammar> | |
ClassElement[Yield, Await] : | |
MethodDefinition[?Yield, ?Await] | |
`static` MethodDefinition[?Yield, ?Await] | |
<ins>FieldDefinition[?Yield, ?Await] `;`</ins> | |
`;` | |
MemberExpression[Yield, Await] : | |
PrimaryExpression[?Yield, ?Await] | |
MemberExpression[?Yield, ?Await] `[` Expression[+In, ?Yield, ?Await] `]` | |
MemberExpression[?Yield, ?Await] `.` IdentifierName | |
MemberExpression[?Yield, ?Await] TemplateLiteral[?Yield, ?Await] | |
SuperProperty[?Yield, ?Await] | |
MetaProperty | |
`new` MemberExpression[?Yield, ?Await] Arguments[?Yield, ?Await] | |
<ins>MemberExpression[?Yield, ?Await] `.` PrivateIdentifier</ins> | |
CallExpression[Yield, Await] : | |
CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await] #callcover | |
SuperCall[?Yield, ?Await] | |
CallExpression[?Yield, ?Await] Arguments[?Yield, ?Await] | |
CallExpression[?Yield, ?Await] `[` Expression[+In, ?Yield, ?Await] `]` | |
CallExpression[?Yield, ?Await] `.` IdentifierName | |
CallExpression[?Yield, ?Await] TemplateLiteral[?Yield, ?Await] | |
<ins>CallExpression[?Yield, ?Await] `.` PrivateIdentifier</ins> | |
</emu-grammar> | |
``` | |
becomes | |
```html | |
<emu-grammar ecc-id="class-element"> | |
ClassElement[Yield, Await] : | |
MethodDefinition[?Yield, ?Await] | |
`static` MethodDefinition[?Yield, ?Await] | |
<ins>FieldDefinition[?Yield, ?Await] `;`</ins> | |
`;` | |
</emu-grammar> | |
<emu-grammar ecc-id="member-expression"> | |
MemberExpression[Yield, Await] : | |
PrimaryExpression[?Yield, ?Await] | |
MemberExpression[?Yield, ?Await] `[` Expression[+In, ?Yield, ?Await] `]` | |
MemberExpression[?Yield, ?Await] `.` IdentifierName | |
MemberExpression[?Yield, ?Await] TemplateLiteral[?Yield, ?Await] | |
SuperProperty[?Yield, ?Await] | |
MetaProperty | |
`new` MemberExpression[?Yield, ?Await] Arguments[?Yield, ?Await] | |
<ins>MemberExpression[?Yield, ?Await] `.` PrivateIdentifier</ins> | |
</emu-grammar> | |
<emu-grammar ecc-id="call-expression"> | |
CallExpression[Yield, Await] : | |
CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await] #callcover | |
SuperCall[?Yield, ?Await] | |
CallExpression[?Yield, ?Await] Arguments[?Yield, ?Await] | |
CallExpression[?Yield, ?Await] `[` Expression[+In, ?Yield, ?Await] `]` | |
CallExpression[?Yield, ?Await] `.` IdentifierName | |
CallExpression[?Yield, ?Await] TemplateLiteral[?Yield, ?Await] | |
<ins>CallExpression[?Yield, ?Await] `.` PrivateIdentifier</ins> | |
</emu-grammar> | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment