From 728c7a3857141b560be0c231ca255d4708712e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 8 Jan 2023 12:02:45 +0100 Subject: [PATCH] Interpreter - Renamed class submodule to classes --- src/interpreter/{class.rs => classes.rs} | 0 src/interpreter/interpretable.rs | 2 +- src/interpreter/mod.rs | 2 +- src/interpreter/value.rs | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/interpreter/{class.rs => classes.rs} (100%) 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,