0.1.0 base collection of features

Implemented evaluation of tree calculus terms alongside referentially
transparent variable identifiers. Implemented evaluation of defined
functions into tree calculus.
This commit is contained in:
2024-12-19 18:57:57 -06:00
committed by James Eversole
parent dcf8120dea
commit 7ae470a4ae
6 changed files with 163 additions and 24 deletions

View File

@ -75,3 +75,7 @@ saplingLexer = many (sc *> choice
, closeBracket
, lnewline
]) <* eof
lexSapling input = case runParser saplingLexer "" input of
Left err -> error "Failed to lex input"
Right tokens -> tokens