I have terminal emulator with a built in script editor that is similar to Visual Basic. However, the scripting language is proprietary. I'd like to wrap this script engine with the javax.script package.
However, I'm not sure where to begin. I don't even know the name of the scripting engine. I'm thinking I will probably have to implement all the interfaces.
Has anyone had a similar problem? Any advice would be greatly appreciated.
Originally posted by Claude Cundiff: However, I'm not sure where to begin. I don't even know the name of the scripting engine. I'm thinking I will probably have to implement all the interfaces.
Although I have no experience with the entire package, it looks like all you need to do is implement ScriptEngineFactory, and the classes it needs to return. The first seems to be quite easy, it's ScriptEngine that will be harder. Fortunately there is AbstractScriptEngine that does some of the work for you, but the bindings and evaluation you will have to do yourself.
You could try to search for examples of (open source) script engines to see how they've done it. That's all the advice I can give you.
As it turns out, I am working on an implementation for Jess right now. There's not that much to it, really. There are many example engines available here, and if you have any specific questions, I can try to help.
I started with the ScriptEngineFactory class to get a feel for things; I think that's a good approach. If you're using any decent IDE, it can generate stubs for all the methods you need to implement. [ January 02, 2009: Message edited by: Ernest Friedman-Hill ]
According to the Micro Focus site, the scripting language is "VBA-Compatible". I'm not sure what that means but there's a link immediately below where it says that entitled "Click here to order now or request more information".
Joined: Mar 20, 2008
Unfortunetly, I tried contacting them with no luck. Our company doesn't have any agreements with NetManage.