Merge pull request #106 from Servostar/89-implement-structs-for-parser
89 implement structs for parser
This commit is contained in:
commit
20d144acf5
|
@ -481,4 +481,17 @@ typedef struct Statement_t {
|
||||||
AST_NODE_PTR nodePtr;
|
AST_NODE_PTR nodePtr;
|
||||||
} Statement;
|
} 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_
|
#endif // SET_TYPES_H_
|
||||||
|
|
Loading…
Reference in New Issue