diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-14 18:48:43 +0300 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-14 18:48:43 +0300 |
commit | f057211407df29c772ac18303f13d5564684979d (patch) | |
tree | 2bbca39327156317a1fb0152889c469523b93d88 /src/parse/parsetree.rs | |
parent | c411c568d60246cd995ebf6880f4143e458b605f (diff) | |
download | myslip-f057211407df29c772ac18303f13d5564684979d.tar.gz myslip-f057211407df29c772ac18303f13d5564684979d.zip |
feat: statics for fixed point recursion
Diffstat (limited to 'src/parse/parsetree.rs')
-rw-r--r-- | src/parse/parsetree.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/parsetree.rs b/src/parse/parsetree.rs index 86da0f0..bd15e79 100644 --- a/src/parse/parsetree.rs +++ b/src/parse/parsetree.rs @@ -123,6 +123,7 @@ 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 == "fix" => Ok(Atom(Fix)), Some(Sym(s)) if s.starts_with("..") => Ok(Atom(RestPat(s.strip_prefix("..").unwrap().to_string()))), Some(Sym(s)) => Ok(Atom(Var(s))), |