Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a programming language with C# [closed]

First of all, I want a programming language to make interactions between that language and my application environment. I wrote something that just knows if, void and function, variables with their scopes and of course invoke built-in functions which they are all working perfectly. But now, I'm stuck with some parts and realized that I can't continue with just simple text parsing and there are many things that I can't do.

So for that, I searched about this topic and I got Creating programming language using C#. It was fine but I have two problems with it.

  1. I can't understand it.
  2. It generates Console codes but I want to use them in a Windows Forms Application.

For short, Is there anyone who knows how I can make a language without learning about Lexers, Reflections ...

Thanks.

like image 640
MahanGM Avatar asked Nov 05 '11 10:11

MahanGM


1 Answers

I'm not sure if I really understand your question.

Is this to be an extension of your program? A collection of library functions written in C#?

Or a completely separate language for which you are writing an interpreter in C#? (which is what I guess)

If it is the latter, in the good old days I would have pointed you at Lex/Yacc (GIYF).

Right now, I can only say ANTLR. Check out the Five minute introduction to ANTLR 3 and ANTLR v3 C# Code generator and Runtime library

Just check out the screen shots of the IDE on this page

enter image description here

enter image description here

like image 162
Mawg says reinstate Monica Avatar answered Sep 28 '22 08:09

Mawg says reinstate Monica