giesse / Project-SnowBall

This project is getting less misterious than it used to be...
http://www.colellachiara.com/soft/topaz/try-topaz.html
MIT License
43 stars 3 forks source link

compile treats series of expressions differently from regular interpretation #2

Open meijeru opened 12 years ago

meijeru commented 12 years ago

See these results of the interpreter:

>> compile [1 2 3]
== "123"
>> 1 2 3
== 3

I would expect the result of compile to be either "3", or "1;2;3", but not "123"

giesse commented 12 years ago

The current compiler is "stupid". It should probably signal that case as an error. You will probably find many other cases like that.

I don't have a precise ETA for the "real" compiler, but that's what I'm working on right now, so it only depends on my free time. In any case, thanks for testing it!