summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index e8e557a..3aad657 100644
--- a/parse.c
+++ b/parse.c
@@ -1,3 +1,4 @@
+/* TODO: stmt_parse -> parse_stmt, etc. */
typedef enum {
TYPE_VOID,
TYPE_BUILTIN
@@ -41,6 +42,7 @@ typedef struct {
Array params;
Type ret_type;
Block body;
+ unsigned long id; /* this is used to keep track of local vs global/other local functions (there might be multiple functions called "foo") */
} FnExpr; /* an expression such as fn(x: int) int {return 2 * x;} */
typedef enum {