Globals work, sizes are no longer part of the grammar

This commit is contained in:
2023-11-13 19:54:04 -06:00
parent dbdafbfd4b
commit 640ef91306
11 changed files with 54 additions and 35 deletions
+1 -2
View File
@@ -30,7 +30,7 @@ pub enum Declaration {
#[derive(PartialEq, Clone, Debug)]
pub struct Global {
pub name: String,
pub size: Option<Expr>,
pub initial: Option<Expr>,
}
#[derive(PartialEq, Clone, Debug)]
@@ -105,7 +105,6 @@ impl From<Expr> for Lvalue {
#[derive(PartialEq, Clone, Debug)]
pub struct VarDecl {
pub name: String,
pub size: Option<Expr>,
pub initial: Option<Expr>,
}