aboutsummaryrefslogtreecommitdiff
path: root/src/sexp/mod.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-07-26 18:34:44 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-07-26 18:34:44 +0300
commit34074287861b3ef6c9ee89195056d20ae1603cfc (patch)
treea9faa94ce84f17a9a383f3ab1ec8ab314b6620f8 /src/sexp/mod.rs
parent6dbcbc54352dc81b6ef2f2ecd9719eac40d8f1e6 (diff)
downloadmyslip-34074287861b3ef6c9ee89195056d20ae1603cfc.tar.gz
myslip-34074287861b3ef6c9ee89195056d20ae1603cfc.zip
Added variables and tests for their substitution
Diffstat (limited to 'src/sexp/mod.rs')
-rw-r--r--src/sexp/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sexp/mod.rs b/src/sexp/mod.rs
index 087cb67..d866be5 100644
--- a/src/sexp/mod.rs
+++ b/src/sexp/mod.rs
@@ -1,12 +1,12 @@
pub mod step;
pub mod util;
+pub mod subst;
/// A leaf node for S-Expressions.
///
/// May represent built-in operators,
-/// variables (to be added), functions
-/// (to be added) or values.
+/// variables, functions (to be added) or values.
#[derive(Debug)]
#[derive(PartialEq)]
pub enum SLeaf {
@@ -15,6 +15,7 @@ pub enum SLeaf {
Mul,
Div,
Int(i32),
+ Var(String),
}
/// An S-Expression; the defining structure of the language.