I just wrote a small scripting language, and although it is still in development, I thought I would upload it. Its current features are:
- Completely Lua free interpretter & value assignment
- If statements
- While loops
- Dynamic values
- Classes
code = output
code = output
To demonstrate how the language works, I will include a small example:
Notes:
- Only 1 value can be assigned per statement so you can't do "var1, var2 = unpack( { 1, 2 } )" for example.
- Function calls in variables cannot call other functions with multiple args because it will break the interpretter.
- print( x( "something" ), "something" ) is ok
- print( x( "something", "something" ), "something" ) is not ok
- print( x( "something" ), "something" ) is ok
- The error handling system is bad to say the least. It doesn't return line numbers.
- Classes can have private methods, methods, variables, and static variables
- Tables can have numerical indexes assigned when created, but not anything else
- t = { 1, 2, 3 }; is ok
- t = { [1] = 1, [2] = 2, [3] = 3 }; is not ok
- t = { 1, 2, 3 }; is ok
The current code is just under 2000 lines, and is lacking for loops and else/elseif statements, and I honestly probably won't be adding these in any time soon.
Anyway, I hope you can use this, or maybe this will inspire you to attempt making your own version / scripting language.
The String class I made is below:
pastebin get eq2NP9xZ script
Edited by awsumben13, 13 April 2014 - 03:41 PM.












