summaryrefslogtreecommitdiff
path: root/nfa/src/default
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-02-27 12:36:41 +0800
committerJSDurand <mmemmew@gmail.com>2023-02-27 12:36:41 +0800
commitfbaa420ed550e9c3e7cdc09d4a8ec22bfbd782a6 (patch)
treefad9722825bb3fa796dd52c3fd4a8bf46b958cf9 /nfa/src/default
parentafad02bdff111ecccb0077b9c989e869723c231c (diff)
before a major refactor
I decide to adopt a new approach of recording and updating item derivation forests. Since this affects a lot of things, I decide to commit before the refactor, so that I can create a branch for that refactor.
Diffstat (limited to 'nfa/src/default')
-rw-r--r--nfa/src/default/regex.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/nfa/src/default/regex.rs b/nfa/src/default/regex.rs
index 5e0d53b..1c22687 100644
--- a/nfa/src/default/regex.rs
+++ b/nfa/src/default/regex.rs
@@ -4,6 +4,7 @@ use graph::{error::Error as GError, ALGraph, ExtGraph, Graph, GraphLabel};
use crate::{desrec::DesRec, error::Error, Regex};
+#[cfg(feature = "recursion")]
use receme::{algebra::Algebra, catana::Cata};
use std::{
@@ -193,7 +194,7 @@ impl<T: GraphLabel> DefaultRegex<T> {
}
}
-// REVIEW: This may not be needed.
+#[cfg(feature = "recursion")]
impl<S: GraphLabel, T, A> Cata<T, Vec<T>, A> for &DefaultRegex<S>
where
A: Algebra<T, Vec<T>>,