Merge branch 'master' of https://github.com/brendanfh/onyx
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 17 Jul 2020 13:51:30 +0000 (08:51 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 17 Jul 2020 13:51:30 +0000 (08:51 -0500)
1  2 
include/onyxastnodes.h

index 829008b664fe8b8f812b4938a2a069c32d73a5bd,78f484c257805e667a3a0984ac4c9f5185882cac..9843f505bb3b0271711ca7057fc3f3be7cc33804
@@@ -171,14 -183,6 +168,15 @@@ struct AstIf 
      } true_block, false_block;
  };
  
 +// Type Nodes
 +// NOTE: This node is very similar to an AstNode, just
 +// without the 'next' member. This is because types
 +// can't be in expressions so a 'next' thing
 +// doesn't make sense.
 +#define AstType_members { AstKind kind; u32 flags; char* name; }
 +#define AstType_base struct AstType_members;
 +struct AstType AstType_members;
++
  struct AstBasicType     { AstType_base; Type* type; };
  struct AstPointerType   { AstType_base; AstType* elem; };
  struct AstFunctionType  { AstType_base; AstType* return_type; u64 param_count; AstType* params[]; };