Parenthetical -> Parens

This commit is contained in:
satyr
2010-10-07 12:53:26 +09:00
parent 2d9cff3af6
commit 250ec12646
5 changed files with 44 additions and 44 deletions

View File

@@ -411,8 +411,8 @@ grammar =
# where only values are accepted, wrapping it in parentheses will always do
# the trick.
Parenthetical: [
o "( Line )", -> new Parenthetical $2
o "( )", -> new Parenthetical new Literal ''
o "( Line )", -> new Parens $2
o "( )", -> new Parens new Literal ''
]
# The condition portion of a while loop.
@@ -557,7 +557,7 @@ grammar =
if $2 is '!in'
new Op '!', new In $1, $3
else
new Op '!', new Parenthetical new Op $2[1..], $1, $3
new Op '!', new Parens new Op $2[1..], $1, $3
else
if $2 is 'in' then new In $1, $3 else new Op $2, $1, $3
]