Dump Everything.
This commit is contained in:
parent
5f014fed8b
commit
84c5c9f4f2
|
@ -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, ";");
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user