mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
parse multi-backtracking
This commit is contained in:
parent
85309444e1
commit
73e6128ce3
6 changed files with 250 additions and 90 deletions
|
@ -72,7 +72,14 @@ pub fn helper<'a>(
|
|||
test_builtin_defs,
|
||||
);
|
||||
|
||||
let mut loaded = loaded.expect("failed to load module");
|
||||
let mut loaded = match loaded {
|
||||
Ok(x) => x,
|
||||
Err(roc_load::file::LoadingProblem::ParsingFailedReport(report)) => {
|
||||
println!("{}", report);
|
||||
panic!();
|
||||
}
|
||||
Err(e) => panic!("{:?}", e),
|
||||
};
|
||||
|
||||
use roc_load::file::MonomorphizedModule;
|
||||
let MonomorphizedModule {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue