about summary refs log tree commit diff
path: root/src/bootstrap/parser.pry
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap/parser.pry')
-rw-r--r--src/bootstrap/parser.pry6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/parser.pry b/src/bootstrap/parser.pry
index 155244f..cf3c233 100644
--- a/src/bootstrap/parser.pry
+++ b/src/bootstrap/parser.pry
@@ -814,6 +814,12 @@ let parser_parse_primary_expression = (p: *parser) => *Node {
 	printf("NO TOK\n");
 	    return cast(*Node, null); 
 	};
+	
+	if (*tok).type == TOKEN_NULL {
+	    let n = Node{};
+	    n.type = NODE_PRIMARY_EXPRESSION_NULL;
+	    return create_node(p, n);
+	};
 
 	if (*tok).type == TOKEN_IDENTIFIER {
 	    let d = cast(*NODE_PRIMARY_EXPRESSION_IDENTIFIER_DATA, arena_alloc((*p).arena, sizeof(NODE_PRIMARY_EXPRESSION_IDENTIFIER_DATA)));