Skip to content

Commit

Permalink
import AstNodeUnion definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaorson committed Sep 30, 2022
1 parent 49e9276 commit e8d3448
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions std/compiler/parser/ast/ast_node.day
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
type AstNodeUnion union is

end
importc "parser/prelude.h"

fun ast_new_node (kind: AstNodeKind value: AstNodeUnion) ptr<AstNode> do
mut node: ptr<AstNode> <- new {AstNode
kind <- kind
value <- value
}
node
end
end

0 comments on commit e8d3448

Please sign in to comment.