wanted to understand if I can execute Fantom scriplets from within host application in C# and Java.
My scriplets would be coming from a database, loaded by the host application and then my expectation that would some execute them using Fantom interprer like FantomContext.execute(script_str)
I could not find an integration example for C# and Java -- if any one has any pointers -- they would be greatly appreciated.
Another thing I am looking for if it is possible to extend syntax by introducing new type of variable type and another operator, for example !!.
thank you in advance, Vlad
brianFri 8 Jan 2010
Fairly sophisticated code such as the Fantom compiler itself runs on both the JVM and CLR. However, the .NET library lags the production quality of the JVM code. For example there is no .NET implementation of sql or fwt APIs. But sys stuff should work pretty reliably between platforms. Look Fan.java and Fan.cs to see how we load a text file script.
workinguser Thu 7 Jan 2010
Hello, I am a new user
wanted to understand if I can execute Fantom scriplets from within
host
application in C# and Java.My scriplets would be coming from a database, loaded by the host application and then my expectation that would some execute them using Fantom interprer like FantomContext.execute(script_str)
I could not find an integration example for C# and Java -- if any one has any pointers -- they would be greatly appreciated.
Another thing I am looking for if it is possible to
extend
syntax by introducing new type of variable type and another operator, for example !!.thank you in advance, Vlad
brian Fri 8 Jan 2010
Fairly sophisticated code such as the Fantom compiler itself runs on both the JVM and CLR. However, the .NET library lags the production quality of the JVM code. For example there is no .NET implementation of sql or fwt APIs. But sys stuff should work pretty reliably between platforms. Look
Fan.java
andFan.cs
to see how we load a text file script.