![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Jan 2005
Posts: 110
Rep Power: 4
![]() |
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- <_< |
|
|
|
|
|
#2 |
|
Programmer
|
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. |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Jan 2005
Posts: 110
Rep Power: 4
![]() |
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- <_< |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP search engine script | grimpirate | PHP | 4 | Sep 14th, 2005 11:05 PM |
| [ANN] New script engine (Basic sintax) | MKTMK | C++ | 3 | Sep 1st, 2005 5:51 PM |
| A simple perl script | satimis | Perl | 3 | Aug 15th, 2005 9:31 AM |
| UltraLight game engine is now a community project | rpg_code_master | Coder's Corner Lounge | 1 | Apr 25th, 2005 12:58 AM |
| Bash Script Help | pelon | Bash / Shell Scripting | 2 | Feb 28th, 2005 3:58 PM |