Generate NFAs from regexes

This commit is contained in:
Max Brunsfeld 2018-12-08 13:44:11 -08:00
parent 0688a5edd3
commit ead6ca1738
7 changed files with 399 additions and 1 deletions

View file

@ -1,4 +1,5 @@
use std::rc::Rc;
use std::char;
use std::collections::HashMap;
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
@ -44,7 +45,6 @@ pub(crate) struct Symbol {
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub(crate) enum Rule {
Blank,
CharacterSet(Vec<char>),
String(String),
Pattern(String),
NamedSymbol(String),