diff --git a/src/Parser.c b/src/Parser.c index 9593761..a110dc4 100644 --- a/src/Parser.c +++ b/src/Parser.c @@ -438,6 +438,7 @@ struct ASTNode* ParseStatement(void) { VerifyToken(LI_RBRAC, "}"); return Node; case TY_IDENTIFIER: + DumpAllLists(); if (FindAlias(CurrentIdentifier) != NULL) { Node = ParsePrecedenceASTNode(0); VerifyToken(LI_SEMIC, ";"); diff --git a/src/Symbols.c b/src/Symbols.c index 51ea0fd..a47ae3c 100644 --- a/src/Symbols.c +++ b/src/Symbols.c @@ -22,6 +22,16 @@ void DumpAllLists() { DumpList(Params); printf("\nStructs:\n"); DumpList(Structs); + printf("\nComposite Members:\n"); + DumpList(CompositeMembers); + printf("\nEnum Members:\n"); + DumpList(EnumMembers); + printf("\nUnions:\n"); + DumpList(Unions); + printf("\nEnums:\n"); + DumpList(Enums); + printf("\nTypes:\n"); + DumpList(Types); printf("\n\nDump over.\n"); } @@ -145,7 +155,7 @@ struct SymbolTableEntry* FindEnumMember(char* Symbol) { /* * An override for FindSymbol. - * Searches only the defined enum members. + * Searches only the defined type names. * @param Symbol: The string name of the symbol to search for. * @return a pointer to the node if found, else NULL *