Add script to generate files for new language

This commit is contained in:
Nilay Majorwar
2022-01-30 20:32:50 +05:30
parent 3889b97df5
commit 0bf7c0de3a
9 changed files with 184 additions and 2 deletions

View 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 } };
}
}