glushkovizer 0.22.0

Manipulation, regular expression and automaton library. Allows conversion of regular expressions into automata and analysis of automata and their orbits
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use cfgrammar::yacc::YaccKind;
use lrlex::CTLexerBuilder;

const YACC_F: &'static str = "regexp/reg.y";
const LEX_F: &'static str = "regexp/reg.l";

fn main() {
    CTLexerBuilder::new()
        .lrpar_config(|ctp| {
            ctp.yacckind(YaccKind::Grmtools)
                .grammar_in_src_dir(YACC_F)
                .unwrap()
        })
        .lexer_in_src_dir(LEX_F)
        .unwrap()
        .build()
        .unwrap();
}