add declaration with function support

This commit is contained in:
2025-06-04 23:12:03 +01:00
parent 2bd0384060
commit 7b76b0d888
10 changed files with 125 additions and 17 deletions

View File

@@ -16,6 +16,7 @@ int yywrap(void * unused_param) {
%%
"." { return TOKEN_DOT; }
"!" { return TOKEN_EXCLAMATION; }
"," { return TOKEN_COMMA; }
":" { return TOKEN_COLON; }

View File

@@ -71,6 +71,7 @@ typedef enum {
TOKEN_DOT,
TOKEN_COMMA,
TOKEN_COLON,
TOKEN_EXCLAMATION,
} TokenType;
typedef struct {