diff --git a/interpreter.d.ts b/interpreter.d.ts new file mode 100644 index 00000000..2d4a172b --- /dev/null +++ b/interpreter.d.ts @@ -0,0 +1,13 @@ +declare class Interpreter +{ + constructor(codeText : string, initFunc : Function); + + OBJECT : Object; + + public step() : void; + public createPrimitive(data : any) : Object; + public createNativeFunction(func : any) : Object; + public createObject(parent : Object) : Object; + public setProperty( obj : Object, name : any, value : any, opt_fixed? : boolean, opt_nonenum? : boolean) : void; + public getProperty( obj : Object, name : string ) : Object; +}