aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-01-15 13:58:09 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-01-15 16:58:08 +0100
commita3ccc100e0dbc99ace7507694e4934bec2458d6e (patch)
tree26534d6fbebfcf7e9ac9cf6a7792469c1fe2769a
parentc7d91769c4d6ff8091956adfa6c38c7a2c141b65 (diff)
downloadsylt-a3ccc100e0dbc99ace7507694e4934bec2458d6e.tar.gz
remove file
-rw-r--r--src/typechecker.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/typechecker.rs b/src/typechecker.rs
deleted file mode 100644
index fe66200..0000000
--- a/src/typechecker.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-
-#[derive(Debug)]
-pub struct TypeVM {
- stack: Vec<Type>,
-
- block: Block,
- ip: usize,
-}
-
-impl TypeVM {
- fn pop_twice(&mut self) -> (Value, Value) {
- let (a, b) = (self.stack.pop().unwrap(), self.stack.pop().unwrap());
- (b, a)
- }
-
- fn error(&self, kind: ErrorKind, message: Option<String>) -> Error {
- Error {
- kind,
- file: self.block.file.clone(),
- line: self.block.line(self.ip),
- message,
- }
- }
-
- pub fn run(&mut self) -> Result<(), Error> {
- }
-}