Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ari Angga Nugraha
ariangganugraha-funpro2020-lambda
Commits
70baa60a
Commit
70baa60a
authored
Nov 14, 2020
by
Ari Nugraha
Browse files
implement add operation
parent
568405b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Language/Lambda/Parser.hs
View file @
70baa60a
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment