summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-10 23:16:58 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-10 23:16:58 -0500
commit2b3259e99d2dc75706aea4ce2112e0e1ec5aedf7 (patch)
treebd8ac918c1199533275e381eaba2de28bc226f96 /types.h
parent56a9ba5ea53a5d0b6268939d6a6e89837c2e4658 (diff)
realized i need to be able to export untyped expressions!
Diffstat (limited to 'types.h')
-rw-r--r--types.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/types.h b/types.h
index af14aa2..f9520a2 100644
--- a/types.h
+++ b/types.h
@@ -398,7 +398,7 @@ enum {
TYPE_IS_FLEXIBLE = 0x01,
TYPE_IS_RESOLVED = 0x02,
};
-typedef U16 TypeFlags;
+typedef U8 TypeFlags;
typedef struct Type {
Location where;
TypeKind kind;
@@ -521,8 +521,8 @@ typedef enum {
typedef struct CallExpr {
struct Expression *fn;
union {
- struct Argument *args;
- struct Expression *arg_exprs;
+ struct Argument *args; /* before typing */
+ struct Expression *arg_exprs; /* after typing */
};
struct Instance *instance; /* NULL = ordinary function, no compile time args */
struct {
@@ -633,7 +633,7 @@ typedef struct Expression {
Type type;
Location where;
ExprKind kind;
- U16 flags;
+ U8 flags;
union {
Floating floatl;
/* Floating floatl; */
@@ -667,8 +667,8 @@ typedef struct Expression {
Type type;
} del;
union {
- struct Expression *name_expr;
- Identifier name_ident;
+ struct Expression *name_expr; /* before typing */
+ Identifier name_ident; /* after typing */
} pkg;
IfExpr if_;
WhileExpr while_;