diff options
author | Mike Gerwitz <mike.gerwitz@ryansg.com> | 2022-03-17 16:10:56 -0400 |
---|---|---|
committer | Mike Gerwitz <mike.gerwitz@ryansg.com> | 2022-03-17 16:10:56 -0400 |
commit | 6b8f0663ea5a443236b5c7fd9729bfa89f70d168 (patch) | |
tree | ca772f7e0bf06df9f024525c4f6cd7df73cdffd1 /tamer | |
parent | 7b6d68af8593d3129fdebc814f86e539a256dcc5 (diff) | |
download | tame-6b8f0663ea5a443236b5c7fd9729bfa89f70d168.tar.gz tame-6b8f0663ea5a443236b5c7fd9729bfa89f70d168.tar.bz2 tame-6b8f0663ea5a443236b5c7fd9729bfa89f70d168.zip |
tamer: xir::{tree::=>}attr: Move
With the introduction of XIRF, attribute parsing is no longer a XIRT thing.
DEV-10863
Diffstat (limited to 'tamer')
-rw-r--r-- | tamer/src/xir.rs | 1 | ||||
-rw-r--r-- | tamer/src/xir/flat.rs | 5 | ||||
-rw-r--r-- | tamer/src/xir/tree.rs | 12 |
3 files changed, 5 insertions, 13 deletions
diff --git a/tamer/src/xir.rs b/tamer/src/xir.rs index c622e0d..ce462c0 100644 --- a/tamer/src/xir.rs +++ b/tamer/src/xir.rs @@ -69,6 +69,7 @@ pub use error::Error; mod escape; pub use escape::{DefaultEscaper, Escaper}; +pub mod attr; pub mod flat; pub mod iter; pub mod parse; diff --git a/tamer/src/xir/flat.rs b/tamer/src/xir/flat.rs index 5710a07..2c4ce1d 100644 --- a/tamer/src/xir/flat.rs +++ b/tamer/src/xir/flat.rs @@ -37,14 +37,11 @@ //! of the caller. use super::{ + attr::{Attr, AttrParseError, AttrParseState}, parse::{ ParseState, ParseStateResult, ParseStatus, ParsedResult, TransitionResult, }, - tree::{ - attr::{AttrParseError, AttrParseState}, - Attr, - }, QName, Token, TokenStream, Whitespace, }; use crate::{span::Span, sym::SymbolId, xir::parse::Transition}; diff --git a/tamer/src/xir/tree.rs b/tamer/src/xir/tree.rs index 7feaca2..9a5846b 100644 --- a/tamer/src/xir/tree.rs +++ b/tamer/src/xir/tree.rs @@ -173,13 +173,9 @@ //! //! [state machine]: https://en.wikipedia.org/wiki/Finite-state_machine -pub mod attr; - -use self::{ - super::parse::{ - ParseError, ParseResult, ParseState, ParseStatus, ParsedResult, - }, - attr::{AttrParseError, AttrParseState}, +use self::super::{ + attr::{Attr, AttrList, AttrParseError, AttrParseState}, + parse::{ParseError, ParseResult, ParseState, ParseStatus, ParsedResult}, }; use super::{ @@ -188,8 +184,6 @@ use super::{ use crate::{span::Span, sym::SymbolId, xir::parse::Transition}; use std::{error::Error, fmt::Display, result}; -pub use attr::{Attr, AttrList}; - type Parsed = super::parse::Parsed<Tree>; /// A XIR tree (XIRT). |