diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-12-02 13:57:03 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-12-02 13:57:03 +0100 |
| commit | 0c40bca60b343bb289f0a567ec9ec9e9382bad2a (patch) | |
| tree | bd0906d21a34afcd571e1b1489f3982c2c98151e /lib/Language/Elna/Frontend/Parser.hs | |
| parent | 147967c04b0efeec4246b8ba0ff9b6961c9fe6cd (diff) | |
| download | elna-0c40bca60b343bb289f0a567ec9ec9e9382bad2a.tar.gz | |
Add array assignment to the IR
Diffstat (limited to 'lib/Language/Elna/Frontend/Parser.hs')
| -rw-r--r-- | lib/Language/Elna/Frontend/Parser.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Language/Elna/Frontend/Parser.hs b/lib/Language/Elna/Frontend/Parser.hs index 570c91f..4878b28 100644 --- a/lib/Language/Elna/Frontend/Parser.hs +++ b/lib/Language/Elna/Frontend/Parser.hs @@ -93,10 +93,10 @@ expressionP :: Parser Expression expressionP = makeExprParser termP operatorTable variableAccessP :: Parser VariableAccess -variableAccessP = VariableAccess <$> identifierP {- do +variableAccessP = do identifier <- identifierP indices <- many $ bracketsP expressionP - pure $ foldr (flip ArrayAccess) (VariableAccess identifier) indices -} + pure $ foldr (flip ArrayAccess) (VariableAccess identifier) indices conditionP :: Parser Condition conditionP = do |
