Skip to content
Snippets Groups Projects
Select Git revision
  • 1c394e45e3cba07f283c86c65d6efbdff2a84145
  • master default protected
2 results

itm_rtic_hello_48Mhz.rs

Blame
  • Forked from Per Lindgren / e7020e_2021
    Source project has a limited visibility.
    main.rs 400 B
    use lalrpop_util::lalrpop_mod;
    
    lalrpop_mod!(pub parser, "/minimal/parser.rs");
    
    use parser::*;
    
    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"));
    }