fix typechecking bug where identifiers weren't used

This commit is contained in:
ChUrl
2020-12-14 16:33:00 +01:00
parent fc9cade682
commit d0d0426345

View File

@ -53,6 +53,12 @@ public final class TypeChecker {
ASTNode centerChild = root.getChildren().get(1);
nodeTable.put(root, nodeTable.get(centerChild));
} else if ("IDENTIFIER".equals(root.getName())) {
// Nodedtable Eintrag fuer Identifier
String identifierType = table.getSymbolType(root.getValue());
nodeTable.put(root, identifierType);
}
if ("ASSIGNMENT".equals(root.getName())) {