forked from Orchid/orchid
bug fixes and performance improvements
This commit is contained in:
10
src/rule/matcher.rs
Normal file
10
src/rule/matcher.rs
Normal 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>>;
|
||||
}
|
||||
Reference in New Issue
Block a user