cl-ast: Add filename to File

- Better error reporting
- Better pizza
- Papa Cow's
This commit is contained in:
2025-03-14 04:11:22 -05:00
parent cdb9ec49fe
commit a4176c710e
13 changed files with 80 additions and 49 deletions

View File

@@ -71,7 +71,7 @@ mod macros {
///
/// Returns a `Result<`[`Block`]`, ParseError>`
pub macro block($($t:tt)*) {
Block::parse(&mut Parser::new(Lexer::new(stringify!({ $($t)* }))))
Block::parse(&mut Parser::new("test", Lexer::new(stringify!({ $($t)* }))))
}
/// Evaluates a block of code in the given environment