File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { Parser } from "../parser/parser";
55import { Statement } from "../parser/parserModel" ;
66import { Code } from "../vm/code" ;
77import { Context } from "../vm/context" ;
8+ import { HashMap } from "../vm/hashmap" ;
89import { Processor , TxtCallback } from "../vm/processor" ;
910
1011export type DebuggerCallbacks = {
@@ -53,6 +54,14 @@ export class Interpreter {
5354 return this . vm . globalContext ;
5455 }
5556
57+ addIntrinsic ( signature : string , implFn : Function ) : void {
58+ this . vm . addIntrinsic ( signature , implFn ) ;
59+ }
60+
61+ addMapIntrinsic ( map : HashMap , signature : string , implFn : Function ) : void {
62+ this . vm . addMapIntrinsic ( map , signature , implFn ) ;
63+ }
64+
5665 debugSrcCode ( srcCode : string , callbacks : DebuggerCallbacks ) : Debugger | null {
5766 const code = this . compileSrcCode ( srcCode ) ;
5867 if ( code ) {
You can’t perform that action at this time.
0 commit comments