Write a parser specifically for comment lesser blocks.

This commit is contained in:
Tom Alexander
2023-04-21 17:32:53 -04:00
parent 86e0833033
commit cf6c4bc122
2 changed files with 69 additions and 0 deletions

View File

@@ -27,6 +27,14 @@ pub struct LesserBlock<'s> {
pub children: Vec<Object<'s>>,
}
#[derive(Debug)]
pub struct LesserBlockComment<'s> {
pub source: &'s str,
pub name: &'s str,
pub data: Option<&'s str>,
pub contents: &'s str,
}
impl<'s> Paragraph<'s> {
pub fn of_text(input: &'s str) -> Self {
let mut objects = Vec::with_capacity(1);