@ -> ^, functional example

This commit is contained in:
2025-12-27 17:22:09 +01:00
parent 55a8844699
commit 20499a8ee0
8 changed files with 63 additions and 16 deletions

View File

@@ -441,7 +441,7 @@ impl Parser {
}
fn unary(&mut self) -> Result<Expr, ZernError> {
if self.match_token(&[TokenType::At]) {
if self.match_token(&[TokenType::Xor]) {
let op = self.previous().clone();
let right = self.unary()?;
return Ok(Expr::AddrOf {