entries are working but not freeing memory so potential for leaks

This commit is contained in:
Partho Bhattacharya
2025-02-28 18:16:44 -05:00
parent 2695334db9
commit 63212a3d63
4 changed files with 18 additions and 14 deletions

View File

@ -12,6 +12,8 @@
#ifndef DEBUG
#define DEBUG 0
#endif
%}
STARCOM [^\*]|\*+[^\)\*]+
@ -79,7 +81,7 @@ SCHAR \\n|\\t|\\\"|[^\"\n\\]
"false" {if(DEBUG) {printf( "C_FALSE: %s (%d)\n", yytext, C_FALSE);} else {return C_FALSE;}}
"null" {if(DEBUG) {printf( "C_NULL: %s (%d)\n", yytext, C_NULL);} else {return C_NULL;}}
{ID} {if(DEBUG) {printf( "ID: %s (%d)\n", yytext, ID);} else {return ID;}}
{ID} {if(DEBUG) {printf( "ID: %s (%d)\n", yytext, ID);} else {yylval.words = strdup(yytext); return ID;}}
\n {line_number++; column_number = 1;}
\t {column_number++;}