summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/parser/ast.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/parser/ast.h b/include/parser/ast.h
index d4baf92..e8052c6 100644
--- a/include/parser/ast.h
+++ b/include/parser/ast.h
@@ -38,7 +38,8 @@ enum ast_node_kind {
NOK_UNKNOWN,
NOK_FUNCTION,
- NOK_VARIABLE
+ NOK_VARIABLE,
+ NOK_PARAMETER
};
struct ast_node {
@@ -46,11 +47,14 @@ struct ast_node {
enum ast_node_kind kind;
+ /* Function, variable, parameter */
const char *name;
size_t name_len;
-
struct type *type;
int ptr_levels;
+
+ /* Function */
+ struct hashmap params;
};
#endif /* !_PARSER_AST_H */