简体   繁体   中英

How to make a C-Like Interpreted Scripting Language in C#

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:

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM