Answer the question
In order to leave comments, you need to log in
A C# program that executes ("possibly interprets") another program. Is it possible to?
Is it possible to implement such a program that could read files of a certain format and execute instructions written in them?
well for example:
Main.cs :
var answer = Console.ReadLine();
if (answer == "1") {
interpete("./subprograms/first.prog");
}
__this subroutine prints the message "enter X" and prints the square of that number to the console__
Answer the question
In order to leave comments, you need to log in
you can pull js:
https://github.com/tjanczuk/edge
https://github.com/nilproject/NiL.JS
you can pull F#
https://docs.microsoft.com/en-us/dotnet/fsharp /tut...
and even C# itself
https://msdn.microsoft.com/ru-ru/magazine/mt614271.aspx
https://habrahabr.ru/post/170385/
... and so on..
it's about " scripting"...
... and " dynamic compiling and loading C# " is generally a fucking topic in search engines
Is it possible to implement such a program that could read files of a certain format and execute instructions written in them?
lua, ironpython.
For something of your own - write an interpreter based on the grammar of your language)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question