Minor changes and fixes to add-new-language script
This commit is contained in:
@ -7,11 +7,9 @@ export type RS = {
|
||||
};
|
||||
|
||||
/** Sample program */
|
||||
export const sampleProgram = [
|
||||
"Program line 1",
|
||||
"Program line 2",
|
||||
"Program line 3",
|
||||
].join("\n");
|
||||
export const sampleProgram = `Program line 1
|
||||
Program line 2
|
||||
Program line 3`;
|
||||
|
||||
/** Syntax highlighting */
|
||||
export const editorTokensProvider: MonacoTokensProvider = {
|
||||
|
@ -17,6 +17,6 @@ export default class XYZLanguageEngine implements LanguageEngine<RS> {
|
||||
|
||||
executeStep(): StepExecutionResult<RS> {
|
||||
// TODO: Unimplemented
|
||||
return { rendererState: { value: 0 }, nextStepLocation: { line: 0 } };
|
||||
return { rendererState: { value: 0 }, nextStepLocation: { startLine: 0 } };
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user