2010-03-04 08:18:23 +01:00
|
|
|
var Scripting = {
|
|
|
|
};
|
|
|
|
|
|
|
|
Scripting.parse = function(expression) {
|
|
|
|
var colon = expression.indexOf(":");
|
|
|
|
if (colon > 0) {
|
|
|
|
var l = expression.substring(0, colon);
|
2010-06-15 00:11:34 +02:00
|
|
|
if (theProject.scripting.hasOwnProperty(l)) {
|
|
|
|
return {
|
|
|
|
language: l,
|
|
|
|
expression: expression.substring(colon + 1)
|
|
|
|
};
|
2010-03-04 08:18:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return {
|
|
|
|
language: "gel",
|
|
|
|
expression: expression
|
|
|
|
};
|
|
|
|
};
|