Skip to content

Commit

Permalink
deploy: da0932d
Browse files Browse the repository at this point in the history
  • Loading branch information
benchmarko committed Dec 15, 2024
1 parent f730cf2 commit 9740de6
Show file tree
Hide file tree
Showing 34 changed files with 874 additions and 320 deletions.
6 changes: 4 additions & 2 deletions Core.d.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import type { ICore, ConfigType } from "./Interfaces";
import type { ICore, ConfigType, ConfigEntryType } from "./Interfaces";
export declare class Core implements ICore {
private readonly startConfig;
private readonly semantics;
private readonly examples;
private vm;
private onCheckSyntax;
getConfigObject(): ConfigType;
getConfig(name: string): import("./Interfaces").ConfigEntryType;
getConfig<T extends ConfigEntryType>(name: string): T;
getExampleObject(): Record<string, string>;
setExample(name: string, script: string): void;
getExample(name: string): string;
setOnCls(fn: () => void): void;
setOnPrint(fn: (msg: string) => void): void;
setOnPrompt(fn: (msg: string) => string): void;
setOnCheckSyntax(fn: (s: string) => Promise<string>): void;
private arithmeticParser;
compileScript(script: string): any;
executeScript(compiledScript: string): Promise<string>;
putScriptInFrame(script: string): string;
}
//# sourceMappingURL=Core.d.ts.map
2 changes: 1 addition & 1 deletion Core.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ export type ConfigType = Record<string, ConfigEntryType>;
export type ExampleType = Record<string, string>;
export interface ICore {
getConfigObject(): ConfigType;
getConfig(name: string): ConfigEntryType;
getConfig<T extends ConfigEntryType>(name: string): T;
getExampleObject(): ExampleType;
getExample(name: string): string;
setExample(key: string, script: string): void;
compileScript(script: string): string;
executeScript(compiledScript: string): Promise<string>;
putScriptInFrame(script: string): string;
setOnCls(fn: () => void): void;
setOnPrint(fn: (msg: string) => void): void;
setOnPrompt(fn: (msg: string) => string): void;
setOnCheckSyntax(fn: (s: string) => Promise<string>): void;
}
export interface IUI {
parseUri(urlQuery: string, config: ConfigType): string[];
onWindowLoad(event: Event): void;
addOutputText(value: string): void;
setOutputText(value: string): void;
checkSyntax(str: string): Promise<string>;
}
Expand Down
2 changes: 1 addition & 1 deletion Interfaces.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Semantics.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion UI/UI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export declare class UI implements IUI {
constructor(core: ICore);
private debounce;
private static asyncDelay;
private getOutputText;
addOutputText(value: string): void;
setOutputText(value: string): void;
private onExecuteButtonClick;
private onCompiledTextChange;
Expand Down
2 changes: 1 addition & 1 deletion UI/UI.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions UI/UI.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9740de6

Please sign in to comment.