diff --git a/src/compiler.rs b/src/compiler.rs index 744cb7c..441862f 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -2,6 +2,7 @@ use std::{collections::HashMap, rc::Rc}; use crate::{error::{SML_Error, SML_Result}, expression::Expression, identifier::Identifier, operation::BinaryOperation, state::{State, StateOp}, value::Value, StateMachine}; +// Algorithm from: https://faculty.cs.niu.edu/~hutchins/csci241/eval.htm enum CompileState { TopLevel, // "state :" or "globals:"