lantiga / ki

lisp + mori, sweet.js
ki-lang.org
MIT License
478 stars 28 forks source link

macro expansion problem #2

Closed berdario closed 10 years ago

berdario commented 10 years ago

With this input file:

var mori = require('mori');
var foo = ki (vector 1 2 3)
console.log(foo);

I obtain this:

var mori$610 = require('mori');
var foo$620 = mori$499.vector(1, 2, 3);
console.log(foo$620);

which is obviously incorrect

I never used sweet.js before, so I'm not sure why is it expanding the whole file as a macro, and not only the ki statement

lantiga commented 10 years ago

See #3