Another Lua-based language implementation
Posted: Tue Apr 19, 2016 12:57 am
I've decided to put this on hold, but the repository is here for anyone still interested.
So I wanted to see if I could address a few of Lua's shortcomings using a different language implementation of my own, and LunaScript (possibly temporary title) is the result of that.
LunaScript on GitHub
What LS brings to the table:
If you're interested, opinions on anything that should be included or excluded from the language are appreciated. Sidenote, I'm not experienced in either language design nor implementation, so a forewarning that half the time, I probably won't know what I'm talking about.
So I wanted to see if I could address a few of Lua's shortcomings using a different language implementation of my own, and LunaScript (possibly temporary title) is the result of that.
LunaScript on GitHub
What LS brings to the table:
- #1 Rule: everything is an expression, and every language construct has a return value. This adds a lot of flexibility as shown in the examples.
- Assignment operators, +=, -=, etc.
- Automatic variable localization
- Require helpers
- More convenient, less awkward looping constructs
- Keeps the spirit of Lua as a simple, easy to use, easy to read and well-structured language.
If you're interested, opinions on anything that should be included or excluded from the language are appreciated. Sidenote, I'm not experienced in either language design nor implementation, so a forewarning that half the time, I probably won't know what I'm talking about.