it looks like this should work. t#29

This commit is contained in:
Meyer Simon
2025-02-21 14:30:14 -05:00
parent ad5da96857
commit fcb66c125d
7 changed files with 136 additions and 34 deletions

View File

@ -1,6 +1,7 @@
#include "symbol_table.h"
#include "symbol_table.c"
#include "runner.h"
int main(int argc, char *argv[]) {
char *check_input;
int token;
@ -84,3 +85,17 @@ int is_alpha_file(char *file, int file_len) {
return 0; //is alpha file
}
void enter_scope(int line, int column){
curr = CreateScope(curr, line, column);
}
void exit_scope() {
if(curr->Parent_Scope == NULL){
printf("Can't close top");
return;
}
curr = curr->Parent_Scope;
}