import { LanguageEngine, StepExecutionResult } from "../../types"; import { RS } from "../common/types"; import { parseProgram } from "../parser"; export default class XYZLanguageEngine implements LanguageEngine { resetState() { // TODO: Unimplemented } validateCode(code: string) { parseProgram(code); } prepare(code: string, input: string) { parseProgram(code); // TODO: Unimplemented } executeStep(): StepExecutionResult { // TODO: Unimplemented return { rendererState: { value: 0 }, nextStepLocation: { line: 0 } }; } }