implement chapter 11 in rust

This commit is contained in:
Sebastian Hugentobler 2025-05-25 10:52:20 +02:00
parent 8860a1c639
commit a25b6d1e92
Signed by: shu
SSH key fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M
16 changed files with 470 additions and 32 deletions

View file

@ -1,7 +1,7 @@
use crate::token::{self, Token};
/// Enumeration of all types of expressions.
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum Expression {
Assign {
name: Token,