Add comment.
This commit is contained in:
parent
f7de564deb
commit
60d9487fdf
@ -10,6 +10,8 @@ use nom::IResult;
|
|||||||
|
|
||||||
type UnboundMatcher<'r, 's, I, O, E> = dyn Fn(Context<'r, 's>, I) -> IResult<I, O, E>;
|
type UnboundMatcher<'r, 's, I, O, E> = dyn Fn(Context<'r, 's>, I) -> IResult<I, O, E>;
|
||||||
|
|
||||||
|
// TODO: Implement FromStr for Document
|
||||||
|
|
||||||
pub fn document(input: &str) -> Res<&str, Vec<Paragraph>> {
|
pub fn document(input: &str) -> Res<&str, Vec<Paragraph>> {
|
||||||
let initial_context: ContextTree<'_, '_> = ContextTree::new();
|
let initial_context: ContextTree<'_, '_> = ContextTree::new();
|
||||||
let (remaining, tokens) = context_many1(&initial_context, paragraph)(input)?;
|
let (remaining, tokens) = context_many1(&initial_context, paragraph)(input)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user