allowing chained function calls, one right after another

This commit is contained in:
Jeremy Ashkenas
2009-12-25 07:08:57 -08:00
parent 859ab7583f
commit 2393472924
2 changed files with 678 additions and 665 deletions

View File

@@ -259,12 +259,13 @@ rule
# Extending an object's prototype.
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.
Invocation:
Value "(" ArgList ")" { result = CallNode.new(val[0], val[2]) }
| Invocation "(" ArgList ")" { result = CallNode.new(val[0], val[2]) }
;
# Calling super.

File diff suppressed because it is too large Load Diff