Added the possibility to end an identifier with '::', refering directly to its prototype.

This commit is contained in:
matehat
2010-03-16 17:39:36 -04:00
parent 61dee1beba
commit 33f51d76f4
3 changed files with 126 additions and 121 deletions

View File

@@ -213,6 +213,7 @@ grammar: {
Accessor: [
o "PROPERTY_ACCESS Identifier", -> new AccessorNode $2
o "PROTOTYPE_ACCESS Identifier", -> new AccessorNode $2, 'prototype'
o "::", -> new AccessorNode(new LiteralNode('prototype'))
o "SOAK_ACCESS Identifier", -> new AccessorNode $2, 'soak'
o "Index"
o "Slice", -> new SliceNode $1