mirror of
https://github.com/Noratrieb/uwucc.git
synced 2026-01-14 16:45:07 +01:00
no terrible cloning!
This commit is contained in:
parent
7fc10f3b6c
commit
d12fa25df9
8 changed files with 63 additions and 96 deletions
11
src/main.rs
11
src/main.rs
|
|
@ -1,3 +1,10 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
use std::error::Error;
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
let input_file = std::env::args().nth(1).expect("first argument");
|
||||
let src = std::fs::read_to_string(input_file)?;
|
||||
|
||||
parser::parse_file(src);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue