implement chapter 12 in rust

This commit is contained in:
Sebastian Hugentobler 2025-05-25 16:04:00 +02:00
parent 283155c38b
commit 621c97102a
Signed by: shu
SSH key fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M
10 changed files with 366 additions and 17 deletions

View file

@ -28,4 +28,8 @@ pub enum Statement {
keyword: Token,
value: Option<Expression>,
},
Class {
name: Token,
methods: Vec<Statement>,
},
}