1

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.

4
  • 3
    So what is your question? We help when you are stuck, not to do your research and write the program for you. Commented Apr 26, 2015 at 22:04
  • stackoverflow.com/questions/5992068/… Commented Apr 26, 2015 at 22:32
  • You may wish to look at github.com/dotnet/roslyn and scriptcs.net, perhaps you don't need to create something new Commented Apr 26, 2015 at 22:36
  • Another alternative is CSScript. I use it extensively for all my scripting needs. Commented Apr 27, 2015 at 0:09

1 Answer 1

1

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:

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks! It's alright that you couldn't find one in C#, because C# and Java have incredibly similar syntax/practices. Therefore, it shouldn't be hard to convert.
You're welcome, good luck with this project, It surely is a hard one to complete but you can learn a lot in the process. Keep focused and who knows, probably in some time we're going to see a tag with your language right here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.