summaryrefslogtreecommitdiff
path: root/src/lib/environment.rs
diff options
context:
space:
mode:
authorDominick Allen <dominick.allen1989@gmail.com>2020-06-26 21:56:34 -0500
committerDominick Allen <dominick.allen1989@gmail.com>2020-06-26 21:56:34 -0500
commit2a62f88ca03d5db406756525b5a6e24eae027eab (patch)
treecb8baa698388926ce54decc3a272e4f700864566 /src/lib/environment.rs
parentad9f7e6a689c7fe42444cbe22ecdf1de8d092d5b (diff)
Rename parse to tokenize, add Environment.
Diffstat (limited to 'src/lib/environment.rs')
-rw-r--r--src/lib/environment.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/environment.rs b/src/lib/environment.rs
new file mode 100644
index 0000000..ef00e13
--- /dev/null
+++ b/src/lib/environment.rs
@@ -0,0 +1,15 @@
+use std::collections::HashMap;
+
+use super::sexpr::SExpr;
+
+pub struct Environment {
+ env: HashMap<String, SExpr>
+}
+
+impl Environment {
+ pub fn new() -> Environment {
+ Environment {
+ env: HashMap::new()
+ }
+ }
+}