How to include an interpreter in a .NET project?

I want to create an educational tool that will be used at Code Club for teens.

My ultimate goal is to create a rule-based, non-graphical DSL (and companion IDE) that will make it easier to create bots for an online game.

For now, I just want to mock up the IDE using the installed language. I thought about Prolog as I am familiar with it and it is rule based, but I was not too fussed.

Where I am:

What I need to know:

  • How to run a script that was entered in a text box at runtime?

If that matters, I usually use C # in Visual Studio.

+3
source share
2 answers

Have you looked at the GOLD Parser ? I used it in a project (which created DSL for users to define custom business rules) about a year ago, and it did what I needed. You can define your own grammar.

+1
source

Visual Studio ( , . Isolated Shell). . Parsing Prolog , ad hoc parser, .

Prolog Prolog, : http://wambook.sourceforge.net/

0

All Articles