make isArray a computed property by simply checking the datatype

This commit is contained in:
Irmen de Jong
2023-12-26 19:58:08 +01:00
parent 5179562fb2
commit 4bb2b8ca9b
13 changed files with 30 additions and 33 deletions

View File

@@ -174,7 +174,7 @@ class SymbolTableMaker(private val program: PtProgram, private val options: Comp
// }
// VarDeclType.MEMORY -> {
// val numElements =
// if(decl.datatype in ArrayDatatypes)
// if(decl.isArray)
// decl.arraysize!!.constIndex()
// else null
// val astNode = PtVariable(decl.name, decl.datatype, null, null, decl.position)