diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-10-13 12:59:47 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-10-13 12:59:47 +0200 |
| commit | 582040e5d3f6a5fb5b9046964b6823891d2802dd (patch) | |
| tree | 522ecf75521f03c5dbd33921cc716fd5130da0b3 /lib/Language/Elna/Glue.hs | |
| parent | 0850f0a8d66af028e32a79063cdad328b70db909 (diff) | |
| download | elna-582040e5d3f6a5fb5b9046964b6823891d2802dd.tar.gz | |
Implement comparison operators
Diffstat (limited to 'lib/Language/Elna/Glue.hs')
| -rw-r--r-- | lib/Language/Elna/Glue.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Language/Elna/Glue.hs b/lib/Language/Elna/Glue.hs index 6b883d7..094254a 100644 --- a/lib/Language/Elna/Glue.hs +++ b/lib/Language/Elna/Glue.hs @@ -157,7 +157,7 @@ condition localTable (AST.EqualCondition lhs rhs) = do ( lhsStatements <> rhsStatements , EqualQuadruple lhsOperand rhsOperand ) -{- condition localTable (AST.NonEqualCondition lhs rhs) = do +condition localTable (AST.NonEqualCondition lhs rhs) = do (lhsOperand, lhsStatements) <- expression localTable lhs (rhsOperand, rhsStatements) <- expression localTable rhs pure @@ -189,7 +189,7 @@ condition localTable (AST.GreaterOrEqualCondition lhs rhs) = do ( lhsStatements <> rhsStatements , GreaterOrEqualQuadruple lhsOperand rhsOperand ) --}{- +{- import Language.Elna.Types (Type(..)) import qualified Language.Elna.SymbolTable as SymbolTable |
