aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Parser.hs
diff options
context:
space:
mode:
authorMarvin Borner2022-07-16 23:36:46 +0200
committerMarvin Borner2022-07-16 23:36:46 +0200
commit4c7d4174a2fcdea74d332cf7b407d6234c06bb2d (patch)
tree60e068ff6bbd9f3c9b3b109ea3488fb386ef1b31 /src/Parser.hs
parent88b0f7ed4e9580956f3be1eb50ce7cb10668207e (diff)
Got some things working
Diffstat (limited to 'src/Parser.hs')
-rw-r--r--src/Parser.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Parser.hs b/src/Parser.hs
index 16f4202..29f40b9 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -58,7 +58,7 @@ parseNumeral :: Parser Expression
parseNumeral = do
num <- number
space
- pure $ decimalToBinary num
+ pure $ decimalToTernary num
where
sign :: Parser (Integer -> Integer)
sign = (char '-' >> return negate) <|> (char '+' >> return id)