3 ms·
Here is as good of a place as any to ask: does anyone know of an embeddable scripting language pretty much exactly like Lua but with more C-like syntax? EDIT:
by ComputerGuru 3y ago
Here is as good of a place as any to ask: does anyone know of an embeddable scripting language pretty much exactly like Lua but with more C-like syntax?
EDIT: the best alternatives I'd previously found were rhai (still niche and weak library) and sandboxed JS (heavier than I would like and the standard library is still poor).
- avgcorrection 3y agoI haven’t heard of that. Something that just compiles to Lua would probably be the easiest way to achieve that.
- vitiral 3y agoNot exactly the requirements your asking but you might be interested in the language I'm writing github.com/civboot/fngi
- xlo 3y agoMaybe AngelScript?
- alwaysbeconsing 3y agoMaybe Wren? It has classes and method syntax too but it's mostly C like: curly-braced blocks, operators are pretty much the same, slash and slash-asterisk comments, if/while/for with parens, ... Statements are not terminated by semicolons, though. https://wren.io/syntax.html https://wren.io/syntax.html
- schemescape 3y agoFor JavaScript, did you look at QuickJS? I believe the binary size is in the same range as Lua. The standard library isn’t terribly extensive, but I think it’s more comprehensive than Lua, no?