lantiga / ki

lisp + mori, sweet.js

Home Page:ki-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macro expansion problem

berdario opened this issue · comments

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