Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 70baa60a authored by Ari Nugraha's avatar Ari Nugraha
Browse files

implement add operation

parent 568405b0
Branches
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ keyword :: String -> Parser ()
keyword = void . lexeme . string
doOperation "" = ""
doOperation (x:'+':y:xs) = ubahKeChurch x ++ ubahKeChurch '+' ++ ubahKeChurch y ++ doOperation xs
doOperation (x:xs) = ubahKeChurch x ++ doOperation xs
ubahKeChurch :: Char -> [Char]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment