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.

Duphus
  • 191
  • 1
  • 10
  • 3
    So what is your question? We help when you are stuck, not to do your research and write the program for you. – Ron Beyer Apr 26 '15 at 22:04
  • http://stackoverflow.com/questions/5992068/c-parser-in-c-sharp-or-generally-net – fferri Apr 26 '15 at 22:32
  • You may wish to look at https://github.com/dotnet/roslyn and http://scriptcs.net/, perhaps you don't need to create something new – Dweeberly Apr 26 '15 at 22:36
  • Another alternative is [CSScript](http://www.csscript.net/). I use it extensively for all my scripting needs. – Roman Starkov Apr 27 '15 at 00:09

1 Answers1

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:

Community
  • 1
  • 1
someoneigna
  • 556
  • 4
  • 10
  • 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. – Duphus Apr 27 '15 at 16:26
  • 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. – someoneigna Apr 28 '15 at 00:17