santoshrajan / lispyscript

A javascript with Lispy syntax and macros
MIT License
572 stars 57 forks source link

how would you load functions from other files? #27

Closed zcaudate closed 11 years ago

zcaudate commented 11 years ago

is there a way to load in functions from a seperate file?

santoshrajan commented 11 years ago

Yes you can use the LispyScript "include" file feature. See under docs/statements http://lispyscript.com/docs/#statements

On Fri, Dec 7, 2012 at 3:42 PM, Chris Zheng notifications@github.comwrote:

is there a way to load in functions from a seperate file?

— Reply to this email directly or view it on GitHubhttps://github.com/santoshrajan/lispyscript/issues/27.

Santosh Rajan @Twitter http://twitter.com/santoshrajan @About.Me http://about.me/santosh.rajan

retorquere commented 9 years ago

How do you specify the 'includes' folder specified in that part of the documentation? I tried making an 'includes' folder in the current directory, and one in the same folder as the file to be compiled, but both yield Cannot Open include File for files contained in them.