trying out new arrows for function literals -> is a function, => is a bound function

This commit is contained in:
Jeremy Ashkenas
2010-01-26 10:52:05 -05:00
parent 55df898112
commit a9f016e292
54 changed files with 259 additions and 259 deletions

View File

@@ -39,7 +39,7 @@ prechigh
left EXTENDS
left '||=' '&&=' '?='
right ASSIGN RETURN
right '=>' '==>' UNLESS IF ELSE WHILE
right '->' '=>' UNLESS IF ELSE WHILE
preclow
rule
@@ -207,8 +207,8 @@ rule
# The symbols to signify functions, and bound functions.
FuncGlyph:
'=>' { result = :func }
| '==>' { result = :boundfunc }
'->' { result = :func }
| '=>' { result = :boundfunc }
;
# The parameters to a function definition.