Added support for the mod operator

This commit is contained in:
2025-11-24 22:53:00 -07:00
parent 56f0e292b7
commit 37d5643615
7 changed files with 161 additions and 140 deletions

View File

@@ -0,0 +1,21 @@
use tokenizer::Tokenizer;
use crate::Parser;
#[test]
fn test_block() -> anyhow::Result<()> {
let mut parser = crate::parser!(
r#"
{
let x = 5;
let y = 10;
}
"#
);
let expression = parser.parse()?.unwrap();
assert_eq!("{ (let x = 5); (let y = 10); }", expression.to_string());
Ok(())
}