Reputation: 201
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.
Upvotes: 1
Views: 1665
Reputation: 556
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.
Upvotes: 1