Add basic CompletionMapping and runEngine code

This commit is contained in:
2020-09-07 16:48:04 +05:30
parent 479c4d0f2e
commit a1090de269
3 changed files with 121 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
export enum CompletionTypes {
Normal = "normal",
Return = "return",
Break = "break",
Continue = "continue",
Throw = "throw",
}
export interface CompletionRecord {
Type: CompletionTypes;
Value: any;
// Target: Actually undefined or StringValue
Target: any;
}