Rename module value to variable
This commit is contained in:
parent
77b89dbf37
commit
958957e6dd
4 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::compiler::value::Value;
|
||||
use crate::compiler::variable::Value;
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
Reference in a new issue