Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 387 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 387 Bytes

Overview

A Rust library for reading Whiley files.

    use whiley_file::WhileyFile;
    //
    let input ="function f(u8 x) -> (u8 r):\n skip";
    let mut r = WhileyFile::from_str(input);
    //
    match r {
      Ok(WhileyFile) => {
          println!("Parsing succeeded");
      }
      Err(e) => {
          println!("Parsing failed --- {}",e.message);
      }
    }