davidedc / livecodelab

a web based livecoding environment
http://livecodelab.net/
MIT License
327 stars 63 forks source link

Preprocessor doesn't always handle function references correctly #239

Closed xinaesthete closed 10 years ago

xinaesthete commented 10 years ago

The following code:

F = <box> 
a = <F>

is transformed into

F = box 
a = <F()>

which gets an "unexpected COMPARE" error. On the other hand,

F = ->box
a = <F>
a()

makes

F = -> box()
a = (F)
a()

which works. Pretty sure this is a bug rather than lack of understanding of the language on my part...

davidedc commented 10 years ago

good catch. Pushing a fix now.