views:

52

answers:

1

Hey there,

seems that I am not permitted to use QtScript for my own script interpreter, although QtScript is GPLed.

But do you know anything about the JavaScriptCore's license? Am I allowed to use this for my own scripting language?

Cheers, Manuel

A: 

Doing a quick google search, you'll find JavaScriptCore is under the LGPL, which is a sort of non-virile version of the GPL (although you should probably consult with a lawyer about this - I am not one).

If that doesn't work, there are a bunch of other implementations of JavaScript out there - Mozilla Rhino is another good one.

If you are trying to do a language from scratch, one thing I would recommend looking into is Scala's "Parser Combinators" (just do a google search for "scala parser combinator"). It lets you create a parser pretty easily in the same language that your coding the processing of the syntax tree in, which is nice.

James Kingsbery
Sorry, my text was a bit incorrectthe thing is: QtCore is LGPL, too. Nevertheless there is this restriction.The reason I'd like to use JavaScriptCore and not Rhino is, that JavaScriptCore is really fast because it translates the script into byte code.I want to create a JavaScript-like script language for scientific data processing. So there will be a lot of loops and I think that's why there will be a speedup using JavaScriptCore instead of another ECMA engine.
Manuel
OK, thanks for clarifying.
James Kingsbery