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/src/errors.rs b/src/errors.rs index 22038ed..59c9e96 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,6 +1,5 @@ // use crate::process::{LErr, Trace}; use crate::validator::VErr; -use ariadne::{sources, Color, Label, Report, ReportKind}; // pub fn report_panic(err: LErr) { // let mut srcs = HashSet::new(); @@ -42,11 +41,12 @@ 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(); + // 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); } } diff --git a/src/parser.rs b/src/parser.rs index 80f931e..b640322 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -62,7 +62,7 @@ fn parse_string(s: &'static str, span: SimpleSpan) -> Result Result Result