added more symbol table functions

This commit is contained in:
Partho Bhattacharya
2025-02-26 11:58:46 -05:00
parent 987a086dae
commit 38b73bd551
7 changed files with 40 additions and 7 deletions

View File

@ -4,6 +4,7 @@
// Prologue
%{
#include <stdio.h>
#include "symbol_table.c"
%}
%token ID 101
@ -53,7 +54,7 @@
%token RELEASE 614
%token COMMENT 700
%%
B : '{' E '}'; //Braced Expressions can have braces removed to get regular expressions
B : '{'{CreateScope(cur,line,column)} E '}'; //Braced Expressions can have braces removed to get regular expressions
D : '[' l ']'; //Declaration Lists Brackets can be taken out to get a list of Declarations
E : Maybe_D U; //An expression can start with an optional D followed by an undeclared segment
Maybe_D : D