aboutsummaryrefslogtreecommitdiffstats
path: root/src/Parser.hs
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2022-09-27 16:41:27 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2022-12-05 14:21:53 +0200
commitfe5d1ec1b76b8cb42359324030e701a719847a50 (patch)
treeaa37852acd83ffd38d00ec65285665bec68c7f12 /src/Parser.hs
parent2d9588f5b309aa6b5114d8719bfe3d0b17abbcff (diff)
Add shadowing symbol error
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 5089cb4..20a1454 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -41,7 +41,7 @@ parseToken (Token token tr tc tf)
removeQuotes s = drop 1 s $> take (length s - 2)
isBoolean t = t `elem` ["true", "false"]
asBoolean t = t == "true"
- ast astNode = AST { astNode = astNode, astRow = tr, astColumn = tc, astFileName = tf }
+ ast node = AST { astNode = node, astRow = tr, astColumn = tc, astFileName = tf }
_parse :: [AST] -> [Token] -> LContext [AST]
_parse acc' [] = do