Interpreter - Renamed class submodule to classes
This commit is contained in:
parent
5062e6c348
commit
728c7a3857
4 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ use crate::{
|
||||||
tokens::{Token, TokenType},
|
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.
|
/// Evaluate an interpretable, returning its value.
|
||||||
pub fn evaluate(ast: &ProgramNode, vars: ResolvedVariables) -> SloxResult<Value> {
|
pub fn evaluate(ast: &ProgramNode, vars: ResolvedVariables) -> SloxResult<Value> {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
mod callable;
|
mod callable;
|
||||||
mod class;
|
mod classes;
|
||||||
mod environment;
|
mod environment;
|
||||||
mod functions;
|
mod functions;
|
||||||
mod interpretable;
|
mod interpretable;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use std::{cell::RefCell, fmt::Display, rc::Rc};
|
use std::{cell::RefCell, fmt::Display, rc::Rc};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
class::{Class, ClassRef, Instance},
|
classes::{Class, ClassRef, Instance},
|
||||||
functions::Function,
|
functions::Function,
|
||||||
native_fn::NativeFunction,
|
native_fn::NativeFunction,
|
||||||
Callable,
|
Callable,
|
||||||
|
|
Loading…
Reference in a new issue