Slightly altered syntax, similar to Underscore's Function#bind form, highly simplified lexing and parsing and no polluted scope. Passing tests included.

This commit is contained in:
matehat
2010-03-18 00:19:32 -04:00
parent 3b22018296
commit 1f87094628
10 changed files with 134 additions and 195 deletions

View File

@@ -265,10 +265,7 @@ grammar: {
]
Curry: [
o "Value CURRY Value CURRY_SEPARATOR Arguments", -> new CurryNode $1, $3, $5
o "Value CURRY Arguments", -> new CurryNode $1, undefined, $3
o "Value CURRY Value", -> new CurryNode $1, $3
o "Value CURRY", -> new CurryNode $1
o "Value CURRY Arguments", -> new CurryNode $1, $3
]
# Extending an object by setting its prototype chain to reference a parent