contents   index   previous   next



TO_INTERPRET, INTERP_TYPE

 

The first and second parameters are linked together. The second parameter, interp_type, indicates what type of object the first parameter,to_interpret,is. Here are the possibilities:

 

INTERP_TYPE TO_INTERPRET

-------------------------------

SE.FILE String

SE.TEXT String

SE.PRECOMP byte[]

SE.FUNC SEObject

SE.FILE indicates a filename, which is read, parsed, and interpreted.

 

SE.TEXT, which we've already seen above, indicates the source code as a text string.

 

SE.PRECOMP allows you to execute a precompiled script. You pass as the parameter the script buffer that was given to you by the sePrecompile ScriptEase API call.

 

SE.FUNC allows you to execute a function. You pass the function you wish to execute. Remember, in JavaScript, a function is just an object. You can retrieve the function you wish to call via the seGetObjectEx API call.

 


TEXT_ARGS, STACK_ARGS