allowing chained function calls, one right after another

This commit is contained in:
Jeremy Ashkenas
2009-12-25 07:08:57 -08:00
parent c4ba971d39
commit 851ec82495

View File

@@ -259,12 +259,13 @@ rule
# Extending an object's prototype. # Extending an object's prototype.
Extends: Extends:
Value EXTENDS Expression { result = ExtendsNode.new(val[0], val[2]) } Value EXTENDS Expression { result = ExtendsNode.new(val[0], val[2]) }
; ;
# A generic function invocation. # A generic function invocation.
Invocation: Invocation:
Value "(" ArgList ")" { result = CallNode.new(val[0], val[2]) } Value "(" ArgList ")" { result = CallNode.new(val[0], val[2]) }
| Invocation "(" ArgList ")" { result = CallNode.new(val[0], val[2]) }
; ;
# Calling super. # Calling super.