Finish Lambda Lifter
This commit is contained in:
parent
1f47288fcf
commit
7a2404cf74
3 changed files with 74 additions and 13 deletions
|
|
@ -3,7 +3,7 @@ module Main where
|
|||
|
||||
import Grammar.Par (myLexer, pProgram)
|
||||
import Grammar.Print (printTree)
|
||||
import LambdaLifter (abstract, freeVars, lambdaLift)
|
||||
import LambdaLifter (abstract, freeVars, lambdaLift, rename)
|
||||
import System.Environment (getArgs)
|
||||
import System.Exit (exitFailure, exitSuccess)
|
||||
|
||||
|
|
@ -21,11 +21,6 @@ main = getArgs >>= \case
|
|||
putStrLn "-- Parser"
|
||||
putStrLn $ printTree prg
|
||||
putStrLn "\n--Lamda lifter"
|
||||
putStrLn "\n--freevars"
|
||||
print $ freeVars prg
|
||||
putStrLn "\n--abstract"
|
||||
putStrLn . printTree $ (abstract . freeVars) prg
|
||||
putStrLn "\n--renamed"
|
||||
putStrLn . printTree $ lambdaLift prg
|
||||
exitSuccess
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue