Added unary expressions to semcheck and codegen.
This commit is contained in:
@@ -420,7 +420,10 @@ emit_node :: (state : *Codegen_State, node : *AST_Node, indentation : int) {
|
||||
}
|
||||
}
|
||||
case .Unary; {
|
||||
assert(false, "Not implemented yet: unary");
|
||||
indent(*state.builder, indentation);
|
||||
|
||||
emit_operator(state, node.token.kind);
|
||||
emit_node(state, node.children[0], 0);
|
||||
}
|
||||
case .Expression_Statement; {
|
||||
emit_node(state, node.children[0], indentation);
|
||||
|
||||
Reference in New Issue
Block a user