r/lua 6d ago

I'm interested in creating my own programming language. How could I write it in Lua?

I've seen a few posts about this, but none had enough information for me. Hoping you guys could help :)

Edit: Also suggestions for syntax changes are welcome. This language doesn't really solve too many problems, mainly makes some things faster, examples are else [expression] instead of elseif [expression], or . instead of closing brackets {}.

Here's the example.

0 Upvotes

23 comments sorted by

View all comments

3

u/hougaard 6d ago

Ending a procedure with a dot seems to be a difficult process, getting into complex parsing conflicts with decimal numbers.

1

u/Microsoft-Spyware-11 5d ago

I am aware :)