Removing empty parens from the grammar.
This commit is contained in:
parent
2f7c076a50
commit
f43ee4075d
|
@ -366,8 +366,6 @@
|
||||||
Parenthetical: [
|
Parenthetical: [
|
||||||
o("( Expression )", function() {
|
o("( Expression )", function() {
|
||||||
return new Parens($2);
|
return new Parens($2);
|
||||||
}), o("( )", function() {
|
|
||||||
return new Parens(new Literal(''));
|
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
WhileSource: [
|
WhileSource: [
|
||||||
|
|
130
lib/parser.js
130
lib/parser.js
File diff suppressed because one or more lines are too long
|
@ -407,7 +407,6 @@ grammar =
|
||||||
# the trick.
|
# the trick.
|
||||||
Parenthetical: [
|
Parenthetical: [
|
||||||
o "( Expression )", -> new Parens $2
|
o "( Expression )", -> new Parens $2
|
||||||
o "( )", -> new Parens new Literal ''
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# The condition portion of a while loop.
|
# The condition portion of a while loop.
|
||||||
|
|
Loading…
Reference in New Issue