Make lexeme and token logging more concise

This commit is contained in:
Juno Takano 2026-01-05 04:18:21 -03:00
commit 735b58866c
15 changed files with 229 additions and 20 deletions

View file

@ -31,6 +31,13 @@ impl Parseable for Oblique {
}
}
impl std::fmt::Display for Oblique {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
let display_open_state = if self.open { "open" } else { "closed" };
write!(f, "Oblique [{display_open_state}]")
}
}
#[cfg(test)]
mod tests {
use super::*;