aboutsummaryrefslogtreecommitdiff
path: root/nfa/src/default/regex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nfa/src/default/regex.rs')
-rw-r--r--nfa/src/default/regex.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/nfa/src/default/regex.rs b/nfa/src/default/regex.rs
index 8185ca5..261b10c 100644
--- a/nfa/src/default/regex.rs
+++ b/nfa/src/default/regex.rs
@@ -211,6 +211,12 @@ where
.take(self.len())
.collect();
+ // FIXME: This seems wrong: we shall perform a depth-first
+ // search to find nodes without children and collect their
+ // results first. However this function is not actually used
+ // elsewhere, so it is left unfixed until it is needed in the
+ // future.
+
for index in 0..=self.len() {
let algebra_result = {
let results_of_children: Vec<T> = self