From f28155105134b90fd86049c65478d307e0d8dbbc Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sat, 28 Jan 2023 10:17:24 +0800 Subject: a prototype of an item derivation forest It seems to be complete now, but still awaits more tests to see where the errors are, which should be plenty, haha. --- nfa/src/default/nfa.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nfa/src/default/nfa.rs') diff --git a/nfa/src/default/nfa.rs b/nfa/src/default/nfa.rs index 8d657d5..6b1e56f 100644 --- a/nfa/src/default/nfa.rs +++ b/nfa/src/default/nfa.rs @@ -147,9 +147,11 @@ impl Nfa for DefaultNFA { let mut builder: DLGBuilder> = Builder::with_capacity(nfa_len); - for _ in 0..nfa_len { - builder.add_vertex(); - } + builder.add_vertices(nfa_len); + + // for _ in 0..nfa_len { + // builder.add_vertex(); + // } let default = LabelType::new(DOption(default), total_regexps_len, false); -- cgit v1.2.3-18-g5258