diff --git a/Cargo.toml b/Cargo.toml index 89b937e..271287d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,8 +9,7 @@ edition = "2021" crate-type = ["cdylib", "rlib"] [dependencies] -ariadne = { git = "https://github.com/zesterer/ariadne" } -chumsky = { git = "https://github.com/zesterer/chumsky", features = ["label"] } +chumsky = "0.10.1" imbl = "3.0.0" ran = "2.0.1" num-derive = "0.4.2" diff --git a/pkg/rudus_bg.wasm b/pkg/rudus_bg.wasm index 94f0652..08d4d4c 100644 Binary files a/pkg/rudus_bg.wasm and b/pkg/rudus_bg.wasm differ diff --git a/src/errors.rs b/src/errors.rs index 22038ed..03c86f4 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,6 +1,6 @@ // use crate::process::{LErr, Trace}; use crate::validator::VErr; -use ariadne::{sources, Color, Label, Report, ReportKind}; +// use ariadne::{sources, Color, Label, Report, ReportKind}; // pub fn report_panic(err: LErr) { // let mut srcs = HashSet::new(); @@ -41,12 +41,15 @@ use ariadne::{sources, Color, Label, Report, ReportKind}; // } pub fn report_invalidation(errs: Vec) { + // for err in errs { + // Report::build(ReportKind::Error, (err.input, err.span.into_range())) + // .with_message(err.msg.to_string()) + // .with_label(Label::new((err.input, err.span.into_range())).with_color(Color::Cyan)) + // .finish() + // .print(sources(vec![(err.input, err.src)])) + // .unwrap(); + // } for err in errs { - Report::build(ReportKind::Error, (err.input, err.span.into_range())) - .with_message(err.msg.to_string()) - .with_label(Label::new((err.input, err.span.into_range())).with_color(Color::Cyan)) - .finish() - .print(sources(vec![(err.input, err.src)])) - .unwrap(); + println!("{}", err.msg) } }