switching 'a in b' to 'a of b', and adding an array presence check for 'a in b'.

This commit is contained in:
Jeremy Ashkenas
2010-06-21 23:51:12 -04:00
parent 38a9b7166b
commit 0fcfb80be4
9 changed files with 145 additions and 35 deletions

View File

@@ -565,8 +565,10 @@ grammar: {
o "Expression ?= Expression", -> new OpNode '?=', $1, $3
o "Expression INSTANCEOF Expression", -> new OpNode 'instanceof', $1, $3
o "Expression IN Expression", -> new OpNode 'in', $1, $3
o "Expression ! IN Expression", -> new OpNode '!', new ParentheticalNode new OpNode 'in', $1, $4
o "Expression IN Expression", -> new InNode $1, $3
o "Expression OF Expression", -> new OpNode 'in', $1, $3
o "Expression ! IN Expression", -> new OpNode '!', new InNode $1, $4
o "Expression ! OF Expression", -> new OpNode '!', new ParentheticalNode new OpNode 'in', $1, $4
]
}