Merge remote-tracking branch 'origin/89-implement-structs-for-parser' into 89-implement-structs-for-parser
This commit is contained in:
commit
2ba48e904e
|
@ -96,6 +96,8 @@ typedef struct BoxAccess_t {
|
||||||
// list of recursive box accesses
|
// list of recursive box accesses
|
||||||
// contains a list of BoxMembers (each specifying their own type, name and box type)
|
// contains a list of BoxMembers (each specifying their own type, name and box type)
|
||||||
GArray* member;
|
GArray* member;
|
||||||
|
// box variable to access
|
||||||
|
Variable* variable;
|
||||||
AST_NODE_PTR nodePtr;
|
AST_NODE_PTR nodePtr;
|
||||||
} BoxAccess;
|
} BoxAccess;
|
||||||
|
|
||||||
|
@ -265,7 +267,7 @@ typedef struct Variable_t {
|
||||||
union VariableImplementation {
|
union VariableImplementation {
|
||||||
VariableDeclaration declaration;
|
VariableDeclaration declaration;
|
||||||
VariableDefiniton definiton;
|
VariableDefiniton definiton;
|
||||||
BoxMember member;
|
BoxAccess member;
|
||||||
} impl;
|
} impl;
|
||||||
AST_NODE_PTR nodePtr;
|
AST_NODE_PTR nodePtr;
|
||||||
} Variable;
|
} Variable;
|
||||||
|
@ -503,6 +505,7 @@ typedef enum StatementKind_t {
|
||||||
} StatementKind;
|
} StatementKind;
|
||||||
|
|
||||||
typedef struct Statement_t {
|
typedef struct Statement_t {
|
||||||
|
StatementKind kind;
|
||||||
union StatementImplementation {
|
union StatementImplementation {
|
||||||
FunctionCall call;
|
FunctionCall call;
|
||||||
FunctionBoxCall boxCall;
|
FunctionBoxCall boxCall;
|
||||||
|
|
Loading…
Reference in New Issue