Merge pull request #105 from Servostar/89-implement-structs-for-parser

89 implement structs for parser
This commit is contained in:
servostar 2024-05-26 15:14:00 +00:00 committed by GitHub
commit 932e1fa961
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -481,4 +481,17 @@ typedef struct Statement_t {
AST_NODE_PTR nodePtr;
} Statement;
// .------------------------------------------------.
// | Module |
// '------------------------------------------------'
typedef struct Module_t {
GHashTable* boxes;
GHashTable* types;
GHashTable* functions;
GHashTable* variables;
// to be resolved after the module has been parsed completely
GArray* imports;
} Module;
#endif // SET_TYPES_H_