Minor cosmetic update to parser.rs

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-01-09 18:04:32 -08:00
parent cbe22bb89e
commit a190157eeb

View File

@@ -1,5 +1,9 @@
use crate::syn::{ast::*, error::*, lexer::*, token::*};
// /////////////////////////////////////////////////////////////////////////////
// Parser
// /////////////////////////////////////////////////////////////////////////////
#[derive(Debug)]
pub struct Parser<'t> {
lexer: Lexer<'t>,
@@ -160,6 +164,10 @@ fn unescape_string(text: &str) -> String {
string
}
// /////////////////////////////////////////////////////////////////////////////
// Tests
// /////////////////////////////////////////////////////////////////////////////
#[cfg(test)]
macro_rules! expect_atom {
($parser:expr, $expected:expr) => {{