compilation start

This commit is contained in:
nora 2021-10-24 20:18:33 +02:00
parent c88ad1e9e1
commit cf69572604
2 changed files with 22 additions and 0 deletions

21
src/compile.rs Normal file
View file

@ -0,0 +1,21 @@
use crate::parse::Regex;
struct Transition {
char: char,
}
struct Node {
end: bool,
transitions: Vec<Transition>,
}
struct RegexFsm {
nodes: Vec<Node>,
}
/// Compiles the parsed Regex into a FSM
fn compile(regex: Regex) -> RegexFsm {
let mut nodes = Vec::new();
RegexFsm { nodes }
}

View file

@ -1,3 +1,4 @@
mod compile;
mod parse;
pub fn no_unused_code(regex: &str) {