Add script to generate files for new language
This commit is contained in:
22
scripts/new-lang-template/runtime.ts
Normal file
22
scripts/new-lang-template/runtime.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// @ts-nocheck
|
||||
import { LanguageEngine, StepExecutionResult } from "../types";
|
||||
import { RS } from "./common";
|
||||
|
||||
export default class XYZLanguageEngine implements LanguageEngine<RS> {
|
||||
resetState() {
|
||||
// TODO: Unimplemented
|
||||
}
|
||||
|
||||
validateCode(code: string) {
|
||||
// TODO: Unimplemented
|
||||
}
|
||||
|
||||
prepare(code: string, input: string) {
|
||||
// TODO: Unimplemented
|
||||
}
|
||||
|
||||
executeStep(): StepExecutionResult<RS> {
|
||||
// TODO: Unimplemented
|
||||
return { rendererState: { value: 0 }, nextStepLocation: { line: 0 } };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user