1
0
Fork 0

Rename module value to variable

This commit is contained in:
Vili Sinervä 2025-02-04 14:10:16 +02:00
parent 77b89dbf37
commit 958957e6dd
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
4 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ mod symtab;
mod token;
mod tokenizer;
//mod type_checker;
mod value;
mod variable;
pub fn compile(code: &str) {
let tokens = tokenizer::tokenize(code);

View file

@ -1,7 +1,7 @@
use crate::compiler::{
ast::Expression::{self, *},
symtab::SymTab,
value::Value,
variable::Value,
};
pub fn interpret<'source>(ast: &Expression<'source>, symbols: &mut SymTab<'source>) -> Value {

View file

@ -1,4 +1,4 @@
use crate::compiler::value::Value;
use crate::compiler::variable::Value;
use std::collections::HashMap;
#[derive(Default)]