Add automatic syntax checker, fix editor bugs

This commit is contained in:
Nilay Majorwar
2022-01-22 21:22:38 +05:30
parent dbccab5244
commit 94dce5bfa9
12 changed files with 163 additions and 15 deletions

View File

@@ -45,6 +45,9 @@ export type StepExecutionResult<RS> = {
* execution and debugging API to the platform.
*/
export interface LanguageEngine<RS> {
/** Validate the syntax of the given code. Throw ParseError if any */
validateCode: (code: string) => void;
/** Load code and user input into the engine and prepare for execution */
prepare: (code: string, input: string) => void;