diff --git a/src/interpreter/class.rs b/src/interpreter/classes.rs similarity index 100% rename from src/interpreter/class.rs rename to src/interpreter/classes.rs diff --git a/src/interpreter/interpretable.rs b/src/interpreter/interpretable.rs index 7456321..7e6bc81 100644 --- a/src/interpreter/interpretable.rs +++ b/src/interpreter/interpretable.rs @@ -7,7 +7,7 @@ use crate::{ tokens::{Token, TokenType}, }; -use super::{class::Class, functions::Function, Environment, EnvironmentRef, Value}; +use super::{classes::Class, functions::Function, Environment, EnvironmentRef, Value}; /// Evaluate an interpretable, returning its value. pub fn evaluate(ast: &ProgramNode, vars: ResolvedVariables) -> SloxResult { diff --git a/src/interpreter/mod.rs b/src/interpreter/mod.rs index e3e7c87..78bca2b 100644 --- a/src/interpreter/mod.rs +++ b/src/interpreter/mod.rs @@ -1,5 +1,5 @@ mod callable; -mod class; +mod classes; mod environment; mod functions; mod interpretable; diff --git a/src/interpreter/value.rs b/src/interpreter/value.rs index 14572b1..7f1b8cd 100644 --- a/src/interpreter/value.rs +++ b/src/interpreter/value.rs @@ -1,7 +1,7 @@ use std::{cell::RefCell, fmt::Display, rc::Rc}; use super::{ - class::{Class, ClassRef, Instance}, + classes::{Class, ClassRef, Instance}, functions::Function, native_fn::NativeFunction, Callable,