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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
source: tests/test.rs
expression: "format!(\"{:#?}\", engine)"
---
Engine {
union: U16U16U32U32U32(
EngineBase {
grammar: Grammar {
start_nonterminal: "start[0]",
rules: "start[0] ::= start[0]\"bb\"[0] | \"bb\"[0];\n",
id_to_regexes: {},
id_to_suffix_automata: {},
id_to_suffix_automata_first_bytes: [],
id_to_regex_first_bytes: [],
id_to_regex_complement_first_bytes: [],
id_to_terminals: [
(
"\"bb\"[0]",
[
98,
98,
],
),
],
},
allowed_first_bytes: [],
allowed_token_ids: [],
earley_sets: [
[
EarleyItemDebugStruct {
dotted_rule: "start[0] -> .start[0]\"bb\"[0]",
start_position: 0,
state: "",
},
EarleyItemDebugStruct {
dotted_rule: "start[0] -> .\"bb\"[0]",
start_position: 0,
state: "[0]",
},
],
[
EarleyItemDebugStruct {
dotted_rule: "start[0] -> start[0].\"bb\"[0]",
start_position: 0,
state: "[0]",
},
],
],
cache: [],
to_be_completed_items: [],
to_be_completed_items_buffer: [],
deduplication_buffer: [],
postdot_items: [
(
DottedDebugStruct {
postdot_nonterminal: "start[0]",
column: 0,
},
NormalItems(
[
EarleyItemDebugStruct {
dotted_rule: "start[0] -> .start[0]\"bb\"[0]",
start_position: 0,
state: "",
},
],
),
),
],
leo_items: [],
leo_items_buffer: [],
finished: true,
config: EngineConfig {
cache_enabled: true,
compaction_enabled: true,
rejected_token_prefix_cache_enabled: true,
},
},
),
}