dsl: extract dsl_error; ParseError -> DslError

This commit is contained in:
🪞👃🪞 2025-05-10 15:49:33 +03:00
parent f18e01c220
commit ed772b9872
4 changed files with 34 additions and 21 deletions

View file

@ -43,8 +43,9 @@ pub(crate) use konst::iter::{ConstIntoIter, IsIteratorKind};
pub(crate) use konst::string::{split_at, str_range, char_indices};
pub(crate) use thiserror::Error;
pub(crate) use self::Value::*;
pub(crate) use self::ParseError::*;
pub(crate) use self::DslError::*;
mod dsl_error; pub use self::dsl_error::*;
mod dsl_parse; pub use self::dsl_parse::*;
mod dsl_provide; pub use self::dsl_provide::*;
@ -148,7 +149,7 @@ mod dsl_provide; pub use self::dsl_provide::*;
Ok(())
}
//#[cfg(test)] #[test] fn test_examples () -> Result<(), ParseError> {
//#[cfg(test)] #[test] fn test_examples () -> Result<(), DslError> {
//// Let's pretend to render some view.
//let source = include_str!("../../tek/src/view_arranger.edn");
//// The token iterator allows you to get the tokens represented by the source text.