Connecting Tech Pros Worldwide Forums | Help | Site Map

XML-based .NET Scripting Language?

Gene Jones
Guest
 
Posts: n/a
#1: Jun 11 '06
So I'm starting to do some things where I'm going to want to add
scripting in the application, and I can't find a scripting language to
plug in that I like. So far I've looked at LUA and L-Sharp, but
neither appeals to me. TCL would be okay, I guess, but still not
really ideal.

My Googling hasn't turned up anything, so I figured I'd ask here:

1) Is there some way to make C# an embedded scripting language? (I
doubt it, but it seems worth asking where somebody will definately
know)

2) Is there an XML-based scripting language that's easily embeddable
into a .NET application? By XML-based, I literally mean it's some
language expressed in XML format. I know there aren't a lot of these
around, but I'm just kind of hoping really hard at this point.

Thanks for your time.

Jon Skeet [C# MVP]
Guest
 
Posts: n/a
#2: Jun 11 '06

re: XML-based .NET Scripting Language?


Gene Jones <realistikus@gmail.com> wrote:[color=blue]
> So I'm starting to do some things where I'm going to want to add
> scripting in the application, and I can't find a scripting language to
> plug in that I like. So far I've looked at LUA and L-Sharp, but
> neither appeals to me. TCL would be okay, I guess, but still not
> really ideal.
>
> My Googling hasn't turned up anything, so I figured I'd ask here:
>
> 1) Is there some way to make C# an embedded scripting language? (I
> doubt it, but it seems worth asking where somebody will definately
> know)
>
> 2) Is there an XML-based scripting language that's easily embeddable
> into a .NET application? By XML-based, I literally mean it's some
> language expressed in XML format. I know there aren't a lot of these
> around, but I'm just kind of hoping really hard at this point.[/color]

The other day I saw a colleague embedding some C# in a NAnt script.
It's not something I've used myself, but it might be worth a look.

(For what a C#-like scripting language might look like, you might be
interested in Groovy, which is Java-based: http://groovy.codehaus.org)

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Markus Stoeger
Guest
 
Posts: n/a
#3: Jun 11 '06

re: XML-based .NET Scripting Language?


Gene Jones wrote:[color=blue]
> So I'm starting to do some things where I'm going to want to add
> scripting in the application, and I can't find a scripting language to
> plug in that I like. So far I've looked at LUA and L-Sharp, but
> neither appeals to me. TCL would be okay, I guess, but still not
> really ideal.
>
> My Googling hasn't turned up anything, so I figured I'd ask here:
>
> 1) Is there some way to make C# an embedded scripting language? (I
> doubt it, but it seems worth asking where somebody will definately
> know)[/color]

Have a look at the CodeDomProvider class on MSDN. It shows an example of
how to compile an assembly from source code at run time. After compiling
and loading such an assembly you can instantiate exported types and call
functions on them.

hth,
Max
Andrew Faust
Guest
 
Posts: n/a
#4: Jun 11 '06

re: XML-based .NET Scripting Language?


Gene Jones wrote:[color=blue]
> So I'm starting to do some things where I'm going to want to add
> scripting in the application, and I can't find a scripting language to
> plug in that I like. So far I've looked at LUA and L-Sharp, but
> neither appeals to me. TCL would be okay, I guess, but still not
> really ideal.[/color]

You could always try Python. Check out IronPython, it's a .NET
interpreter for the Python scripting language, and as such is easily
embedded in your own applications.

Andrew Faust
Kamek
Guest
 
Posts: n/a
#5: Jun 12 '06

re: XML-based .NET Scripting Language?



Andrew Faust wrote:[color=blue]
> Gene Jones wrote:[color=green]
> > So I'm starting to do some things where I'm going to want to add
> > scripting in the application, and I can't find a scripting language to
> > plug in that I like. So far I've looked at LUA and L-Sharp, but
> > neither appeals to me. TCL would be okay, I guess, but still not
> > really ideal.[/color]
>
> You could always try Python. Check out IronPython, it's a .NET
> interpreter for the Python scripting language, and as such is easily
> embedded in your own applications.
>
> Andrew Faust[/color]

Try boo.codehaus.org its a really easy language and has lots of support
for embedding like your talking about.

Closed Thread