Comment out the old evaluator and reduced_ast

This commit is contained in:
Greg Shuflin 2021-10-24 22:16:12 -07:00
parent 7c5a08664a
commit 5b4bb6606e
2 changed files with 7 additions and 6 deletions

View File

@ -23,8 +23,8 @@ mod tokenizing;
mod symbol_table; mod symbol_table;
mod builtin; mod builtin;
mod error; mod error;
mod eval; //mod eval;
mod reduced_ast; //mod reduced_ast;
mod reduced_ir; mod reduced_ir;
mod tree_walk_eval; mod tree_walk_eval;

View File

@ -1,7 +1,7 @@
use stopwatch::Stopwatch; use stopwatch::Stopwatch;
use crate::error::SchalaError; use crate::error::SchalaError;
use crate::{eval, parsing, reduced_ir, tree_walk_eval, symbol_table, tokenizing, typechecking}; use crate::{/*eval, */parsing, reduced_ir, tree_walk_eval, symbol_table, tokenizing, typechecking};
use schala_repl::{ use schala_repl::{
ComputationRequest, ComputationResponse, GlobalOutputStats, LangMetaRequest, LangMetaResponse, ComputationRequest, ComputationResponse, GlobalOutputStats, LangMetaRequest, LangMetaResponse,
ProgrammingLanguageInterface, ProgrammingLanguageInterface,
@ -11,8 +11,8 @@ use schala_repl::{
pub struct Schala<'a> { pub struct Schala<'a> {
/// Holds a reference to the original source code, parsed into line and character /// Holds a reference to the original source code, parsed into line and character
source_reference: SourceReference, source_reference: SourceReference,
/// Execution state for AST-walking interpreter
state: eval::State<'static>, //state: eval::State<'static>,
/// Keeps track of symbols and scopes /// Keeps track of symbols and scopes
symbol_table: symbol_table::SymbolTable, symbol_table: symbol_table::SymbolTable,
/// Contains information for type-checking /// Contains information for type-checking
@ -20,6 +20,7 @@ pub struct Schala<'a> {
/// Schala Parser /// Schala Parser
active_parser: parsing::Parser, active_parser: parsing::Parser,
/// Execution state for AST-walking interpreter
eval_state: tree_walk_eval::State<'a>, eval_state: tree_walk_eval::State<'a>,
} }
@ -43,7 +44,7 @@ impl<'a> Schala<'a> {
Schala { Schala {
source_reference: SourceReference::new(), source_reference: SourceReference::new(),
symbol_table: symbol_table::SymbolTable::new(), symbol_table: symbol_table::SymbolTable::new(),
state: eval::State::new(), //state: eval::State::new(),
type_context: typechecking::TypeContext::new(), type_context: typechecking::TypeContext::new(),
active_parser: parsing::Parser::new(), active_parser: parsing::Parser::new(),
eval_state: tree_walk_eval::State::new(), eval_state: tree_walk_eval::State::new(),