Create structure for subscript and superscript.

This commit is contained in:
Tom Alexander
2023-07-24 14:19:19 -04:00
parent 7d73ac4bf6
commit 993c73dc9f
6 changed files with 118 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
use super::Context;
use crate::error::Res;
use crate::parser::util::not_yet_implemented;
use crate::parser::Subscript;
use crate::parser::Superscript;
#[tracing::instrument(ret, level = "debug")]
pub fn subscript<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, Subscript<'s>> {
not_yet_implemented()?;
todo!()
}
#[tracing::instrument(ret, level = "debug")]
pub fn superscript<'r, 's>(
context: Context<'r, 's>,
input: &'s str,
) -> Res<&'s str, Superscript<'s>> {
not_yet_implemented()?;
todo!()
}