diff options
author | Marvin Borner | 2022-07-16 23:36:46 +0200 |
---|---|---|
committer | Marvin Borner | 2022-07-16 23:36:46 +0200 |
commit | 4c7d4174a2fcdea74d332cf7b407d6234c06bb2d (patch) | |
tree | 60e068ff6bbd9f3c9b3b109ea3488fb386ef1b31 /src/Parser.hs | |
parent | 88b0f7ed4e9580956f3be1eb50ce7cb10668207e (diff) |
Got some things working
Diffstat (limited to 'src/Parser.hs')
-rw-r--r-- | src/Parser.hs | 2 |
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) |