removing the <- bind operator from CoffeeScript...

This commit is contained in:
Jeremy Ashkenas
2010-06-12 11:00:56 -04:00
parent 59e41f195b
commit c2d1ae06c5
11 changed files with 266 additions and 368 deletions

View File

@@ -87,7 +87,6 @@ grammar: {
Expression: [
o "Value"
o "Call"
o "Curry"
o "Code"
o "Operation"
o "Assign"
@@ -302,11 +301,6 @@ grammar: {
o "Super"
]
# Binds a function call to a context and/or arguments.
Curry: [
o "Value <- Arguments", -> new CurryNode $1, $3
]
# Extending an object by setting its prototype chain to reference a parent
# object.
Extends: [
@@ -605,7 +599,7 @@ operators: [
["right", 'FOR', 'WHILE', 'UNTIL', 'NEW', 'SUPER', 'CLASS']
["left", 'EXTENDS']
["right", 'ASSIGN', 'RETURN']
["right", '->', '=>', '<-', 'UNLESS', 'IF', 'ELSE']
["right", '->', '=>', 'UNLESS', 'IF', 'ELSE']
]
# Wrapping Up