473,651 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML-based .NET Scripting Language?

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.
Jun 11 '06 #1
4 1613
Gene Jones <re*********@gm ail.com> wrote:
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.


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 - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jun 11 '06 #2
Gene Jones wrote:
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)


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
Jun 11 '06 #3
Gene Jones wrote:
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.


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
Jun 11 '06 #4

Andrew Faust wrote:
Gene Jones wrote:
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.


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


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

Jun 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2244
by: Phil Powell | last post by:
// PROCESS XML CONTENT INTO DYNAMICALLY-NAMED ARRAYS foreach (array('mime', 'state', 'country') as $val) { $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($parser, ${$val . 'XML'}, ${$val . 'XMLArray'}, $tags); xml_parser_free($parser); $myXMLArray = ${$val . 'XMLArray'}; for ($i = 1; $i < @sizeof($myXMLArray) - 1; $i++) { if ($myXMLArray) {
8
2342
by: Robert J Egan | last post by:
Hi i'm trying to search a remote website page. The form returns xml information, though the page extension is missing. I retrieve the information and write it to the screen. So far so good - However i cannot format this information in anyway. A copy of the returned information saved to my server results in the xml data being formatted and displayed as intended! Can anyone explain to me why one would work but not the other. Regards ...
1
2159
by: felipe_azv | last post by:
a got this code in asp to construct a xml , to export it to a url this is de asp code: <% SQL = "Select * from User where CodeUser in ("& request.form("C1" &")" set rs = server.CreateObject("ADODB.Recordset") rs.CursorType = 3
2
2765
by: Simon Strandgaard | last post by:
I am trying to understand how to create a 'catalog.xml' file for my docbook-xml documents. If I understand correct a local catalog.xml file can both avoid hardcoding in makefiles (portability), plus speed up if the stylesheet+dtds is located on the local machine. Question #1: How do I create a catagory.xml file, which works?
0
1550
by: MarionEll | last post by:
Premier XML Industry Event Slated for Dec. 7-12 in Philadelphia; Presenters Include Adobe, BEA, Microsoft, IBM, Sun, Hewlett-Packard, Oracle Alexandria, Va. Sept. 30, 2003 - IDEAlliance, a leading trade association dedicated to fostering XML and other information technology standards, today announced the full program for XML Conference and Exposition 2003, being held Dec. 7-12, at the Pennsylvania Convention Center in Philadelphia,...
0
1747
by: Stylus Studio | last post by:
World's Most Advanced XML Schema Editor Adds Support for IBM AlphaWorks XML Schema Quality Checker to Improve XML Schema Style and Quality BEDFORD, MA -- 09/13/2005 -- Stylus Studio (http://www.stylusstudio.com), the industry-leading provider of XML development tools for advanced data integration, today announced new support for IBM's alphaWorks XML Schema Quality Checker, furthering solidifying its position as the provider of the...
5
2721
by: Kurt Bauer | last post by:
I have an ASP group calendar application which pulls calendar data from Exchange via webdav into an XML string. I then loop the XML nodes to populate a collection of appointments. Finally I use the appointment collection to populate the calendar control. The performance getting the XML data is fine, but loading the data into the collection is slow. My question/problem is should I be using the collection, a dataset, or something else to...
5
4203
by: laks | last post by:
Hi I have the following xsl stmt. <xsl:for-each select="JOB_POSTINGS/JOB_POSTING \"> <xsl:sort select="JOB_TITLE" order="ascending"/> This works fine when I use it. But when using multiple values in the where clause as below
0
2783
by: jts2077 | last post by:
I am trying to create a large nested XML object using E4X methods. The problem is the, the XML I am trying to create can only have xmlns set at the top 2 element levels. Such as: <store xmlns="http://www.store.com/xml/1.1.0.0/impex/catalog"> <product sku="10050-1653" xmlns="http://www.store.com/xml/1.1.0.0/impex/catalog"> <sku>10050-1653</sku> <name xml:lang="x-default">shop's Foie Gras</name> <online>1</online> ...
9
2476
by: Lie | last post by:
Why this generates AttributeError, then not? Python 2.5.2 (r252:60911, Apr 21 2008, 11:17:30) on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'dom' <module 'xml.dom' from '/usr/lib/python2.5/xml/dom/__init__.pyc'>
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8576
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.