Generate a call to _divide_by_zero_error on RiscV

This commit is contained in:
2024-10-30 14:12:51 +01:00
parent 6b92e5059c
commit 43882a3a06
11 changed files with 89 additions and 29 deletions

View File

@@ -134,7 +134,7 @@ dataType environmentSymbolTable (AST.NamedType baseType) = do
| otherwise -> NameAnalysis $ throwE $ UnexpectedTypeInfoError baseInfo
_ -> NameAnalysis $ throwE $ UndefinedTypeError baseType
dataType environmentSymbolTable (AST.ArrayType arraySize baseType) =
dataType environmentSymbolTable baseType <&> ArrayType arraySize
dataType environmentSymbolTable baseType <&> ArrayType (fromIntegral arraySize)
checkSymbol :: SymbolTable -> Identifier -> NameAnalysis ()
checkSymbol globalTable identifier