Set up nix flake

This commit is contained in:
2022-04-12 16:21:42 +02:00
parent 92232bea96
commit b2b35d1b8f
4 changed files with 115 additions and 1 deletions

View File

@@ -78,9 +78,9 @@ fn main() -> std::io::Result<()> {
match args.t.as_deref() {
Some("ba") => BAParser::parse(&mut input),
Some("tt") => TTParser::parse(&mut input),
Some("mx") => panic!("Not implemented yet"),
_ => panic!("Doesn't recognize file"),
}
// parse(&mut input)
} else if args.input.is_some() {
// } else {
let t = args.input.unwrap();
@@ -89,6 +89,7 @@ fn main() -> std::io::Result<()> {
match t.split('.').last() {
Some("ba") => BAParser::parse(&mut input),
Some("tt") => TTParser::parse(&mut input),
Some("mx") => panic!("Not implemented yet"),
_ => panic!("Doesn't recognize file"),
}
} else {