Opened 14 years ago
Last modified 14 years ago
#1399 closed defect (fixed)
Scripting environment not fully scriptable
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Martin Sjölund, |
Description
Many of the scripting functions are elaborated like this:
{{{ case (cache,env,Absyn.CREF_IDENT(name = "system"),{Absyn.STRING(value = str)},{},impl,SOME(st),_,_)
then (cache, makeBuiltinCall("system",{DAE.SCONST(str)},DAE.ET_INT()),DAE.PROP(DAE.T_INTEGER_DEFAULT,DAE.C_VAR()),SOME(st));}}}
This means they can only take string literals as input. But if the function is really intended to be scriptable, it should be able to take any expression as input.
Change History (4)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Ceval is now called on the arguments of many CevalScript functions (but not all)
comment:3 by , 14 years ago
Also note that Static needs special handlers for CODE input (crefs and stuff) because we have not introduced it to the type system.
comment:4 by , 14 years ago
Most of the CevalScript functionality is now scriptable (the new function Ceval's all input arguments).
Some parts of this can now be scripted (ExpressionSimplify will be called on the input expressions)