Add debugging messages to help track down issue 1

This commit is contained in:
Curle 2020-09-12 02:52:51 +01:00
parent 84fbd5bd61
commit a3ca8e621b
Signed by: TheCurle
GPG Key ID: 2F2E62F0DA69A5AE

View File

@ -251,6 +251,8 @@ struct ASTNode* ParseIdentifier() {
VerifyToken(TY_IDENTIFIER, "ident"); VerifyToken(TY_IDENTIFIER, "ident");
printf("After parsing, the identifier name is %s, id %d in the symbol table.\n", CurrentIdentifier, FindSymbol(CurrentIdentifier));
if(CurrentToken.type == LI_LPARE) if(CurrentToken.type == LI_LPARE)
return CallFunction(); return CallFunction();