route parsing via TokenSource trait

This commit is contained in:
Aleksey Kladov 2019-02-20 21:50:07 +03:00
parent 3517c175ac
commit 0c81b9deee
3 changed files with 59 additions and 64 deletions

View file

@ -17,7 +17,9 @@ use crate::{
/// tree, but rather a flat stream of events of the form
/// "start expression, consume number literal,
/// finish expression". See `Event` docs for more.
pub(crate) struct Parser<'t>(pub(super) ParserImpl<'t>);
pub(crate) struct Parser<'t>(
pub(super) ParserImpl<crate::parsing::parser_impl::input::ParserInput<'t>>,
);
impl<'t> Parser<'t> {
/// Returns the kind of the current token.