diff --git a/src/lib.rs b/src/lib.rs index 5da46979..0e7f13d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -137,6 +137,14 @@ pub use parser::Parser; #[allow(deprecated)] pub use select::{Selector, SelectorMut}; +pub use paths::{ + tokens::ParseToken, + ParserTokenHandler, + ParserNodeVisitor, + StrRange, + PathParser +}; + #[deprecated( since = "0.4.0", note = "It will be move to common module. since 0.5" @@ -144,7 +152,6 @@ note = "It will be move to common module. since 0.5" pub use select::JsonPathError; pub use selector::{JsonSelector, JsonSelectorMut}; -pub use paths::PathParser; use std::rc::Rc; #[doc(hidden)] diff --git a/src/paths/path_parser.rs b/src/paths/path_parser.rs index 178e105d..476b53b0 100644 --- a/src/paths/path_parser.rs +++ b/src/paths/path_parser.rs @@ -8,7 +8,7 @@ use super::tokens::{FilterToken, ParseToken, Token}; #[derive(Clone, Debug)] pub struct PathParser<'a> { - parser: ParserImpl<'a>, + pub parser: ParserImpl<'a>, } impl<'a> PathParser<'a> { @@ -40,9 +40,9 @@ impl<'a> PathParser<'a> { impl<'a> ParserNodeVisitor<'a> for PathParser<'a> {} #[derive(Clone, Debug)] -struct ParserImpl<'a> { +pub struct ParserImpl<'a> { token_reader: TokenReader<'a>, - parse_node: Option, + pub parse_node: Option, } impl<'a> ParserImpl<'a> {