зеркало из https://github.com/mozilla/pjs.git
Fixed a few typos so that the generated file actually compiles
This commit is contained in:
Родитель
1c78ffc30a
Коммит
f6f409d854
|
@ -201,7 +201,7 @@ shift_expression[boolean initial]
|
||||||
;
|
;
|
||||||
|
|
||||||
// ********* Relational Operators **********
|
// ********* Relational Operators **********
|
||||||
relational_operator[bool allowIn]
|
relational_operator[boolean allowIn]
|
||||||
: {allowIn}? "in"
|
: {allowIn}? "in"
|
||||||
| "<"
|
| "<"
|
||||||
| ">"
|
| ">"
|
||||||
|
@ -323,7 +323,7 @@ statement[int scope, int abbrev]
|
||||||
code_statement[int abbrev]
|
code_statement[int abbrev]
|
||||||
: empty_statement[abbrev]
|
: empty_statement[abbrev]
|
||||||
| expression_statement semicolon[abbrev]
|
| expression_statement semicolon[abbrev]
|
||||||
| block[context]
|
| block[BlockScope]
|
||||||
/* | labeled_statement[abbrev]
|
/* | labeled_statement[abbrev]
|
||||||
| if_statement[abbrev]
|
| if_statement[abbrev]
|
||||||
| switch_statement[abbrev]
|
| switch_statement[abbrev]
|
||||||
|
@ -391,7 +391,7 @@ case_groups
|
||||||
;
|
;
|
||||||
|
|
||||||
case_group
|
case_group
|
||||||
: (case_guard)+ (code_statement[full])+
|
: (case_guard)+ (code_statement[Full])+
|
||||||
;
|
;
|
||||||
|
|
||||||
last_case_group
|
last_case_group
|
||||||
|
@ -563,7 +563,7 @@ class JSLexer extends Lexer;
|
||||||
options {
|
options {
|
||||||
tokenVocabulary=JS; // Name the token vocabulary
|
tokenVocabulary=JS; // Name the token vocabulary
|
||||||
testLiterals=false; // Don't automatically test every token to see if it's a literal.
|
testLiterals=false; // Don't automatically test every token to see if it's a literal.
|
||||||
// Rather, test only the ones that we explicitly indicate.
|
// Rather, test only the ones that we explicitly indicate.
|
||||||
k=4; // Set number of lookahead characters
|
k=4; // Set number of lookahead characters
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче