![]() |
C# as a script engine.. System.CodeDom.Compiler
I've been using C# to automate some file editing for myself.. I've been editing my source code each time I need something different, I now want to maybe make my program public and I really need a decent scripting engine to stop the repetitive compiling..
The System.CodeDom.Compiler namespace? looked interesting to me; I enjoy coding with C# and like the syntax but I've looked around and not found any information useful, I did find code examples of compiling the exe of given source, but I need the script engine to be able to access my programs functions (some of them at least), is that possible by using the C# code compiler? Any information on the namespace or script engine suggestions appreciated, though I'd like to stay away from LUA.. nothing against it. -cloud- <_< |
You seem to be on the right track, unfortunately, I can't find much useful information. You may want to look at the [url=http://svn.myrealbox.com/viewcvs/trunk/mcs/mcs]Mono C# compiler[/code] for ideas, as it is also written in C# (though it doesn't seem to use System.CodeDom much).
EDIT: This will probably be far more helpful. |
The second link was very useful, thanks! I've got the hang of it now.. just need to figure how to make the dll (script in this case) be able to call the exe's functions etc. Maybe I'll just make a second dll for the functions needed and call them the same way..
Thanks niteice! ^^ -cloud- <_< |
| All times are GMT -5. The time now is 2:21 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC