Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 10th, 2007, 1:17 PM   #1
cloud-
Hobbyist Programmer
 
Join Date: Jan 2005
Posts: 110
Rep Power: 4 cloud- is on a distinguished road
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- <_<
cloud- is offline   Reply With Quote
Old Mar 10th, 2007, 2:16 PM   #2
niteice
Programmer
 
niteice's Avatar
 
Join Date: Aug 2005
Posts: 98
Rep Power: 3 niteice is on a distinguished road
Send a message via AIM to niteice
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.
niteice is offline   Reply With Quote
Old Mar 11th, 2007, 8:43 AM   #3
cloud-
Hobbyist Programmer
 
Join Date: Jan 2005
Posts: 110
Rep Power: 4 cloud- is on a distinguished road
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- <_<
cloud- is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:37 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC