-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathexecution.d.ts
More file actions
45 lines (38 loc) · 1.37 KB
/
execution.d.ts
File metadata and controls
45 lines (38 loc) · 1.37 KB
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
39
40
41
42
43
44
45
import { TData, TDataName } from './data';
import { IElementData, IElementExpression, IElementStatement, IElementBlock } from './elements';
// -------------------------------------------------------------------------------------------------
/** Type describing a variable entry in symbol table. */
export type IVariable = {
dataType: TDataName;
value: TData;
};
/** Type definition of the parsed argument element entry returned on fetching next element. */
export type IParsedElementArgument = {
instance: IElementData<TData> | IElementExpression<TData>;
type: 'Argument';
marker: string | null;
};
/** Type definition of the parsed instruction element entry returned on fetching next element. */
export type IParsedElementInstruction = {
instance: IElementStatement | IElementBlock;
type: 'Instruction';
marker: string | null;
};
/** Type definition of the parsed element entry returned on fetching next element. */
export type IParsedElement = IParsedElementArgument | IParsedElementInstruction;
export type IPCRoutineCall = {
type: '__callroutine__';
nodeID: string;
};
/* Type definition for program counter override signals. */
export type TPCOverride =
| '__rollback__'
| '__rollback__i'
| '__skip__'
| '__skipscope__'
| '__goinnerfirst__'
| '__goinnerlast__'
| '__goup__'
| '__repeat__'
| IPCRoutineCall
| null;