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:
James Eversole
2024-12-19 18:57:57 -06:00
parent fb04c9fffc
commit e5f3a53bcc
6 changed files with 163 additions and 24 deletions

View File

@ -5,7 +5,8 @@ import Lexer
import Parser
import Research
import Data.Map as Map
import Text.Megaparsec (runParser)
main :: IO ()
main = putStr $ show $ parseSapling "false = t"
main = putStr $ show $ result $ evalMulti Map.empty (parseMulti "false = t\nnot = t (t (t t) (t t t)) t\ntrue = not false\ntrue")