bug fixes and performance improvements

This commit is contained in:
2023-05-07 22:35:38 +01:00
parent f3ce910f66
commit a604e40bad
167 changed files with 5965 additions and 4229 deletions

10
src/rule/matcher.rs Normal file
View File

@@ -0,0 +1,10 @@
use std::rc::Rc;
use crate::ast::Expr;
use super::state::State;
pub trait Matcher {
fn new(pattern: Rc<Vec<Expr>>) -> Self;
fn apply<'a>(&self, source: &'a [Expr]) -> Option<State<'a>>;
}