From fbaa420ed550e9c3e7cdc09d4a8ec22bfbd782a6 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Mon, 27 Feb 2023 12:36:41 +0800 Subject: 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. --- nfa/src/default/regex.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nfa/src/default') 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 DefaultRegex { } } -// REVIEW: This may not be needed. +#[cfg(feature = "recursion")] impl Cata, A> for &DefaultRegex where A: Algebra>, -- cgit v1.2.3-18-g5258