Created
June 5, 2017 17:27
-
-
Save pvdz/78f6dd3964b0b212d791d3a18f5ce22c to your computer and use it in GitHub Desktop.
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
Statement -> ExpressionStatement -> Expression -> AssignmentExpression -> | |
AssignmentExpression -> ConditionalExpression -> LogicalORExpression -> LogicalANDExpression -> | |
BitwiseORExpression -> BitwiseXORExpression -> BitwiseANDExpression -> EqualityExpression -> | |
RelationalExpression -> ShiftExpression -> AdditiveExpression -> MultiplicativeExpression | |
MultiplicativeExpression -> MultiplicativeExpression MultiplicativeOperator ExponentiationExpression | |
MultiplicativeOperator -> one of * / % | |
// We can match * on MultiplicativeOperator, continue left and right up to PrimaryExpression | |
// proceeding to match the arrow on the right side | |
ExponentiationExpression -> UnaryExpression -> UpdateExpression -> LeftHandSideExpression -> NewExpression -> | |
MemberExpression -> PrimaryExpression | |
// matching the regex: | |
PrimaryExpression -> RegularExpressionLiteral | |
// matching the arrow: | |
PrimaryExpression -> CoverParenthesizedExpressionAndArrowParameterList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment