it looks like this should work. t#29
This commit is contained in:
17
runner.c
17
runner.c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user