Skip to content
Snippets Groups Projects
Verified Commit b3813f51 authored by Ogilvie, D.H. (Duncan)'s avatar Ogilvie, D.H. (Duncan)
Browse files

print formula AST

parent 13b0d7a1
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,10 @@ checkformula javasrc methodname = do ...@@ -74,6 +74,10 @@ checkformula javasrc methodname = do
let formula = e let formula = e
putStrLn ("\n** Formula to check: " ++ prettyPrint formula ++ "\n") putStrLn ("\n** Formula to check: " ++ prettyPrint formula ++ "\n")
let formula = e
putStrLn ("** Formula AST: " ++ show formula ++ "\n")
-- Check if the formula is satisfiable. If it is, print the instantiation of its free -- Check if the formula is satisfiable. If it is, print the instantiation of its free
-- variables that would make it true: -- variables that would make it true:
...@@ -98,4 +102,4 @@ checkformula javasrc methodname = do ...@@ -98,4 +102,4 @@ checkformula javasrc methodname = do
-- Parse the source code -- Parse the source code
case parser compilationUnit source of case parser compilationUnit source of
Left parseError -> error (show parseError) Left parseError -> error (show parseError)
Right compUnit -> return compUnit Right compUnit -> return compUnit
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment