Add all of the code gen, want to show it off

This commit is contained in:
2025-03-27 18:49:17 +02:00
parent f338f07e7d
commit 06d8c1b0f3
33 changed files with 1199 additions and 95 deletions

View File

@@ -1,6 +1,6 @@
use std::collections::HashMap;
use statement::{Enum, Function, Struct};
use statement::{ConstVar, Enum, Function, StaticVar, Struct};
use crate::{common::loc::LocBox, validator::predefined::TypeType};
pub use crate::tokeniser::tokentype::*;
@@ -18,6 +18,8 @@ pub struct Program {
pub types: HashMap<Ident, TypeType>,
pub functions: HashMap<Ident, LocBox<Function>>,
pub member_functions: HashMap<Ident, HashMap<Ident, LocBox<Function>>>,
pub static_vars: HashMap<Ident, StaticVar>,
pub const_vars: HashMap<Ident, ConstVar>
}
#[derive(Debug, Clone)]