lsts 0.6.34

Large Scale Type Systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#[derive(Clone)]
pub enum LiteralPattern {
   Char(char),
   String(String),
   Range(String),
   Variable(String),
}

#[derive(Clone)]
pub struct DFA {
   pub start: usize,
   pub states: Vec<bool>, //bool = is accept
   pub transitions: Vec<(usize,char,usize)>,
}