-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calling: covariance and contravariance. Casts & more
- Loading branch information
1 parent
c27208b
commit dfd38b3
Showing
53 changed files
with
1,465 additions
and
1,082 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//! This generates a cache from a definition file | ||
use std::{ | ||
env, | ||
fs::{read_to_string, write}, | ||
}; | ||
|
||
use ezno_checker::{generate_cache, synthesis::EznoParser}; | ||
|
||
fn main() { | ||
let input = env::args().nth(1).expect("expected path to definition file"); | ||
let output = env::args().nth(2).expect("expected output path"); | ||
|
||
let reader = |path: &std::path::Path| read_to_string(path).ok(); | ||
let cache = generate_cache::<_, EznoParser>(input.into(), reader, ()); | ||
write(output, cache).unwrap(); | ||
eprintln!("Cache generated 🏧💵✅") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.