I'm doing the brainstorm process of creating my own programming language and I already know the syntax and everything else, but I need a tutorial of making an interpreter from 0 lines of code to make my programming language inspired by Lua (For the curious, it'll be called ION). Someone can give me tips and a good tutorial?
but why? what is the rationale of it? BTW producing C/C++ or Java or other could be used as a compiling target, also. but why to wrap this languages into yet another language dress? there have been many projects like this, bound to disappear into the void again
This is a rather good book for the basics of compiler designs
e-maxx.ru/bookz/files/mogensen.pdf
and there is this video tutorial that is actually building the "COOL" programming language
Ben Gubler
"Wisdom begins in wonder" --Socrates
If you haven't had much experience writing programming language, you could consider starting by programming a language that interprets into JavaScript.
For a tutorial on this (and the principles apply to writing any programming language) here's a link: eloquentjavascript.net/11_language.html. I'm building a programming language that interprets into JS currently, and it's definitely doable, though hard, and might be worth starting with.
A compiler that might be worth looking into and that Swift uses is llvm.org
Hope this helps!