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
/* ebnf file for es 6 - MAY CONTAIN ERRORS / DISAMBIGUITY */ | |
/* Edited by @ryanjdew for compatiblity with REx Parser: es6.ebnf -ll 1 -backtrack -javascript -faster */ | |
Program ::= (Shebang? Grammar+|Script|Module) EOF | |
Grammar ::= Statement | |
/* Expressions */ | |
IdentifierReference ::= Identifier | /* [~Yield] */ "yield" | |
BindingIdentifier ::= Identifier | /* [~Yield] */ "yield" | |
LabelIdentifier ::= Identifier | /* [~Yield] */ "yield" | |
Identifier ::= /* IdentifierName but not ReservedWord */ IdentifierName |