about summary refs log tree commit diff
path: root/users/tazjin/rlox/src/interpreter.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-11-22T23·59+0100
committertazjin <mail@tazj.in>2020-11-23T01·15+0000
commit9d2b001c4cc86cc57bdb890037c80b7a1c766ecd (patch)
treed35779a3761fcdbf435bbc60d9725ea9cc5a04d1 /users/tazjin/rlox/src/interpreter.rs
parent0618ff11ccf50fd6e8a6e0bd7820f19b100ca44a (diff)
feat(tazjin/rlox): Add basic program structure r/1913
... as well as a Nix derivation, because why not.

Change-Id: Iaf2591ab72676fe0732c3f807b3aa0cff13fb4ef
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2143
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/rlox/src/interpreter.rs')
-rw-r--r--users/tazjin/rlox/src/interpreter.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/interpreter.rs b/users/tazjin/rlox/src/interpreter.rs
new file mode 100644
index 0000000000..6a7687c268
--- /dev/null
+++ b/users/tazjin/rlox/src/interpreter.rs
@@ -0,0 +1,4 @@
+// Run some Lox code and print it to stdout
+pub fn run(_code: &str) {
+    println!("no interpreter yet, sorry")
+}