aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parsetree.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-14 15:31:27 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-14 15:31:27 +0300
commit928a3358483f60db84dc2918415882b35adc006b (patch)
tree0b35b8e601f3ca93cdeb7f8d45bb1d06cf274e66 /src/parse/parsetree.rs
parent907bd54d19f6bf14a130a136df6f37cc5d256468 (diff)
downloadmyslip-928a3358483f60db84dc2918415882b35adc006b.tar.gz
myslip-928a3358483f60db84dc2918415882b35adc006b.zip
fix: removed obsolete code for handling types as they are now parsed directly to atoms
Diffstat (limited to 'src/parse/parsetree.rs')
-rw-r--r--src/parse/parsetree.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/parse/parsetree.rs b/src/parse/parsetree.rs
index 701496b..0a5782d 100644
--- a/src/parse/parsetree.rs
+++ b/src/parse/parsetree.rs
@@ -123,9 +123,6 @@ fn tokens_to_ast_inner(
Some(Sym(s)) if s == "let" => Ok(Atom(Let)),
Some(Sym(s)) if s == "fn" => Ok(Atom(Fun)),
Some(Sym(s)) if s == "case" => Ok(Atom(Case)),
- Some(Sym(s)) if s == "->" => Ok(Atom(Arr)),
- Some(Sym(s)) if s == "int" => Ok(Atom(Ty(Integer))),
- Some(Sym(s)) if s == "bool" => Ok(Atom(Ty(Boolean))),
Some(Sym(s)) if s.starts_with("..") =>
Ok(Atom(RestPat(s.strip_prefix("..").unwrap().to_string()))),
Some(Sym(s)) => Ok(Atom(Var(s))),