Removing empty parens from the grammar.

This commit is contained in:
Timothy Jones 2010-10-22 11:29:03 +13:00
parent 2f7c076a50
commit f43ee4075d
3 changed files with 64 additions and 69 deletions

View File

@ -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: [

File diff suppressed because one or more lines are too long

View File

@ -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.