4 ms·
I'm developing a language that's a superset of Lua and Lisp. It's still in its infancy, but here's an example of a Lisp/Lua function in a module that can be imp
by meric 10y ago
I'm developing a language that's a superset of Lua and Lisp. It's still in its infancy, but here's an example of a Lisp/Lua function in a module that can be imported as a (+...) macro that expands into Lua `a + b + c + ...` expression.
https://github.com/meric/l2l/blob/rewrite/l2l/macro/arithmetic.lisp https://github.com/meric/l2l/blob/rewrite/l2l/macro/arithmet...
The idea is programmers will write in Lua whenever readability is prioritised, and when homoiconicity is required, for example in the use of domain specific languages, lisp can be switched to. The lisp part can be used to produce macros that expand into Lua.
Would be great to know your thoughts!
- zvrba 10y agoYou know about metalua, right? http://metalua.luaforge.net/ http://metalua.luaforge.net/
- meric 10y agoYes, I wanted a version of Lua with Macro's that reused familiar syntax (for lispers), that can run on LuaJIT, and is implemented in Lua completely.
- groovy2shoes 10y agohttps://github.com/baguette/lemma https://github.com/baguette/lemma I've unfortunately let it languish for the last few years, but I'm about to pick back up a bit for the 2016 Lisp Summer Game Jam. I've got a handful of big, backward-compat-breaking changes in the queue, but it should start to stabilize again within a couple of weeks.