Generate NFAs from regexes
This commit is contained in:
parent
0688a5edd3
commit
ead6ca1738
7 changed files with 399 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue