edited while loops in grammar to not look for comparison to NULL. Undefined instead

This commit is contained in:
Partho
2025-03-31 20:42:17 -04:00
parent c61a87634c
commit 5e01b93af8

View File

@ -196,7 +196,7 @@ function_declaration:
idlist:
ID {
TableNode *entry = getFirstEntry(cur);
while (getName(entry) != NULL) {
while (strcmp(getName(entry),"undefined") != 0) {
entry = getNextEntry(entry);
}
if (getNextEntry(entry) == NULL) {
@ -207,7 +207,7 @@ idlist:
| ID {
TableNode *entry = getFirstEntry(cur);
while (getName(entry) != NULL) {
while (strcmp(getName(entry),"undefined") != 0) {
entry = getNextEntry(entry);
}
if (getNextEntry(entry) != NULL) {