load multiple morphism base files
This commit is contained in:
parent
88978d9008
commit
1068b8ed45
1 changed files with 31 additions and 29 deletions
|
@ -151,8 +151,9 @@ fn parser(
|
||||||
fn main() {
|
fn main() {
|
||||||
let type_dict = Arc::new(RwLock::new(BimapTypeDict::new()));
|
let type_dict = Arc::new(RwLock::new(BimapTypeDict::new()));
|
||||||
|
|
||||||
|
for mb_path in std::env::args().skip(1) {
|
||||||
let src = std::fs::read_to_string(
|
let src = std::fs::read_to_string(
|
||||||
std::env::args().nth(1).expect("expected file name")
|
mb_path
|
||||||
).expect("read");
|
).expect("read");
|
||||||
|
|
||||||
let result = parser(type_dict.clone()).parse(src.clone());
|
let result = parser(type_dict.clone()).parse(src.clone());
|
||||||
|
@ -188,3 +189,4 @@ fn main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue