mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
wip: make EdnItem work on Arc<str>
This commit is contained in:
parent
d4f962fbfa
commit
1b9da07280
17 changed files with 152 additions and 260 deletions
|
|
@ -1,15 +1,12 @@
|
|||
#![feature(type_alias_impl_trait)]
|
||||
#![feature(impl_trait_in_fn_trait_return)]
|
||||
|
||||
pub(crate) use std::{fmt::{Debug, Display, Formatter, Error as FormatError}};
|
||||
|
||||
mod edn_error; pub use self::edn_error::*;
|
||||
mod edn_item; pub use self::edn_item::*;
|
||||
mod edn_iter; pub use self::edn_iter::*;
|
||||
//mod edn_iter; pub use self::edn_iter::*;
|
||||
mod edn_token; pub use self::edn_token::*;
|
||||
mod edn_provide; pub use self::edn_provide::*;
|
||||
mod try_from_edn; pub use self::try_from_edn::*;
|
||||
|
||||
pub(crate) use std::{fmt::{Debug, Display, Formatter, Error as FormatError}};
|
||||
#[cfg(test)] #[test] fn test_edn () -> Result<(), ParseError> {
|
||||
use EdnItem::*;
|
||||
assert_eq!(EdnItem::<String>::read_all("")?,
|
||||
|
|
@ -30,7 +27,6 @@ mod try_from_edn; pub use self::try_from_edn::*;
|
|||
vec![Exp(vec![Key("foo/bar".into()), Sym(":baz".into()), Num(456)])]);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(test)] #[test] fn test_edn_layout () -> Result<(), ParseError> {
|
||||
EdnItem::<String>::read_all(include_str!("../../output/examples/edn01.edn"))?;
|
||||
EdnItem::<String>::read_all(include_str!("../../output/examples/edn02.edn"))?;
|
||||
|
|
@ -38,7 +34,6 @@ mod try_from_edn; pub use self::try_from_edn::*;
|
|||
//let content = <dyn EdnViewData<::tek_engine::tui::Tui>>::from(&layout);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[macro_export] macro_rules! from_edn {
|
||||
($($x:tt)*) => {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue