aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Parser.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Parser.hs b/src/Parser.hs
index fa806fd..3779fe5 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -26,9 +26,9 @@ validateBalance allowed asts = do
parseToken :: Token -> AST
parseToken (Token token tr tc tf)
+ | isString token = ast $ ASTString $ removeQuotes token
| isInteger token = ast $ ASTInteger (read token)
| isDouble token = ast $ ASTDouble (read token)
- | isString token = ast $ ASTString $ removeQuotes token
| isBoolean token = ast $ ASTBoolean $ asBoolean token
| otherwise = ast $ ASTSymbol token
where