Question: I am looking to develop a Scripting Language like Lua, but you use
if (paramters) {
codeToDo()
}
rather than
if parameters do
code_to_do()
end
but have yet to find a good tutorial out their on the internet.
Parameters : I want it to be interpreted, and I also want to make it in C#, so that it integrates with it the easiest.
Writing a language and an interpreter is not an easy task, you have to define the complete syntax and after write a parser for it, finally you have to implement a interpreter capable of executing your language.
There are already answers about creating programming languages here on SO:
Some books that could guide you in the right direction:
Language Implementation Patterns " Written by Terrence Parr creator of ANTLR a parse generation tool in Java, teaches the basics of language definition and the implementation of a bytecode vm."
Writing Compilers and Interpreters: A Software Engineering Approach
Couldnt find a practical book with code in C#, most of books about compilers comes with code in C, only some with Java.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.