wrote up symbol table structure. Have to correct code and then add type checking grammar rules

This commit is contained in:
Partho Bhattacharya
2025-03-14 05:32:24 -04:00
parent f0e03b2724
commit 392a4b3ba5
3 changed files with 109 additions and 19 deletions

View File

@ -75,7 +75,7 @@ fprintf(tok_flag, "%d %d %3d \"%s\"\n", line_number, column_number,tok, yytext);
}
int run(FILE *alpha) {
int token;
top = cur = CreateScope(NULL, 1, 1);
top = cur = init(CreateScope(NULL, 1, 1));
// If file is not found
if (alpha == NULL) {