diff --git a/ast.odin b/ast.odin index b871840..72a8dd2 100644 --- a/ast.odin +++ b/ast.odin @@ -198,7 +198,6 @@ node_create_if :: proc(range: TextRange, condition, then, else_: ^Node) -> (ret: } node_create_variable :: proc(range: TextRange, name, type_, value: ^Node, is_const: bool) -> (ret: ^Node) { - fmt.printf("Creating variable declaration for {} with value {}\n", name.value.([dynamic]u8), value) ret = new(Node) ret^ = { kind = .VariableDeclaration, @@ -206,12 +205,6 @@ node_create_variable :: proc(range: TextRange, name, type_, value: ^Node, is_con children = { name, type_, value }, value = is_const, } - - //if value != nil { - // fmt.printf("Appending value to variable declaration\n") - // append(&ret.children, value) - //} - return } diff --git a/parser.odin b/parser.odin index 07c5098..11c01a6 100644 --- a/parser.odin +++ b/parser.odin @@ -142,7 +142,6 @@ parser_parse_definitions :: proc(parser: ^Parser, end := TokenKind.Semicolon) -> if uninitialized == false { value = parser_parse_expression(parser) } - fmt.printf("value: {}\n", value) name_node := node_create_value(.Identifier, range, names[i]) append(&vars, node_create_variable(range, name_node, type, value, are_constants)) }