Interpreter - Renamed class submodule to classes

This commit is contained in:
Emmanuel BENOîT 2023-01-08 12:02:45 +01:00
parent 5062e6c348
commit 728c7a3857
4 changed files with 3 additions and 3 deletions

View file

@ -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<Value> {

View file

@ -1,5 +1,5 @@
mod callable;
mod class;
mod classes;
mod environment;
mod functions;
mod interpretable;

View file

@ -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,