summaryrefslogtreecommitdiff
path: root/isabelle-dump/build.rs
blob: b11761db43ddc4c31d49f46a7323ec85d13c3c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use cfgrammar::yacc::YaccKind;
use lrlex::LexerBuilder;
use lrpar::{CTParserBuilder};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let lex_rule_ids_map = CTParserBuilder::new()
        .yacckind(YaccKind::Grmtools)
        .process_file_in_src("calc.y")?;
    LexerBuilder::new()
        .rule_ids_map(lex_rule_ids_map)
        .process_file_in_src("calc.l")?;
    Ok(())
}