-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathISpeg.ts
54 lines (53 loc) · 1.15 KB
/
ISpeg.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export interface ISpeg {
parser: {
parser: Function,
state: {
lastExpectations: [{
position: number;
rule: string;
type: string;
}];
position: number;
text: string;
};
};
speg_parser: {
action: string;
children: [{
name: string;
parser: Function;
}]
end_position: number;
match: string;
start_position: number;
type: string;
};
state: {
position: number;
text: string;
succesfullRules?: [{
end_position: number;
match: string,
rule: string;
start_position: number;
text: string;
}];
failedRules: [{
rule: string
start_position: number
}];
failedTags: string[];
lastExpectations: [{
position: number;
rule: string;
type: string;
}];
rules: [{
name: string;
parser: Function
}];
};
visitor: {
actions: {};
};
}