I am searching for a Script-Language for my product, which will allow easy customisation.
I have built my own small XML-Based language, but i'm not really happy with this solution:
<ScrArp>
<StaticClass Name="Root">
<Method Return="Void" Name="Main">
<Call Method="Print" Text="Hello World" />
<Declare Type="SampleClass" Name="myInstance">
<Set>
<NewInstance Type="SimpleClass" />
</Set>
</Declare>
<Call Text="Hello 123">
<Instance Name="myInstance">
<!-- <Instance Name="mySample2..."> -->
<Method Name="TestMethod" />
<!-- </Instance> -->
</Instance>
</Call>
</Method>
</StaticClass>
<Class Name="SampleClass">
<Method Return="Void" Name="TestMethod">
<Parameter>
<Declare Type="String" Name="Text" />
<Parameter>
<Call Method="Print">
<Text>
<Get Name="Text" />
</Text>
</Call>
</Method>
<Method Return="String" Name="Method2">
<Declare Type="String" Name="cReturnValue" />
<Set>
<Instance Name="cReturnValue" />
<Value>
<Call>
<Instance Name="cReturnValue" />
</Call>
<Value>
</Set>
<Return>
<Instance Name="cReturnValue" />
<Return>
</Method>
</Class>
</ScrArp>
I have used Lua and IronPython before, but i don't like Lua that much and as far as i know IronPython is only community supported.
Now my Question. Which is the best solution for scripting in C#? - IronPython - Lua - My Own Small Language?
Thank's!