From e8d3448edd5484215c7a8fa6256d6e8c14f5001c Mon Sep 17 00:00:00 2001 From: James Orson Date: Thu, 29 Sep 2022 20:26:11 -0700 Subject: [PATCH] import AstNodeUnion definition --- std/compiler/parser/ast/ast_node.day | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/std/compiler/parser/ast/ast_node.day b/std/compiler/parser/ast/ast_node.day index 3bc0574c..c8255ea3 100644 --- a/std/compiler/parser/ast/ast_node.day +++ b/std/compiler/parser/ast/ast_node.day @@ -1,6 +1,4 @@ -type AstNodeUnion union is - -end +importc "parser/prelude.h" fun ast_new_node (kind: AstNodeKind value: AstNodeUnion) ptr do mut node: ptr <- new {AstNode @@ -8,4 +6,4 @@ fun ast_new_node (kind: AstNodeKind value: AstNodeUnion) ptr do value <- value } node -end \ No newline at end of file +end