Skip to content
Snippets Groups Projects
Select Git revision
  • 7ebba49644eda963106cc51d13fc016a577fc934
  • master default protected
  • exam
  • exper
  • klee
  • simple
  • v0.3.2
  • v0.3.1
  • v0.3.0
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.1
  • v0.1.0
14 results

lib.rs

Blame
  • main.rs 416 B
    use lalrpop_util::lalrpop_mod;
    
    lalrpop_mod!(pub parser, "/ast/parser.rs");
    
    use parser::*;
    
    pub mod ast;
    
    fn main() {
        println!("minimal");
        println!("{:?}", NumOrIdParser::new().parse("123"));
        println!("{:?}", NumOrIdParser::new().parse("a1_a"));
    }
    
    #[test]
    fn parse_num_or_id() {
        // println!("{:?}", NumOrIdParser::new().parse("123"));
        // println!("{:?}", NumOrIdParser::new().parse("a1_a"));
    }