-
Notifications
You must be signed in to change notification settings - Fork 1
/
language.ts
38 lines (35 loc) · 977 Bytes
/
language.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
export interface Write {
createFunction(tabs: number, name: string, parameters: string[]): string;
createVariable(name: string, value: any): string;
createConstant(name: string, value: any): string;
createForLoop(tabs: number, start: number, end: number, step: number, flag: string): string;
createWhileLoop(tabs: number, condition: string): string;
createIfStatement(tabs: number, condition: string): string;
createElseIfStatement(tabs: number, condition: string): string;
createElseStatement(tabs: number): string;
write(
input: string,
tabs: number,
line: number,
): {
cmd: string;
audio: string;
};
}
export interface Read {
readLine(line: string): string;
}
export interface Nav {
nav(
command: string,
lines: string[],
): {
cmd: string;
audio: string;
};
}
export interface Point {
name: string;
row: number;
col: number;
}