Remove debug print statements
This commit is contained in:
parent
7478a0d29f
commit
47412f0587
7
ast.odin
7
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) {
|
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 = new(Node)
|
||||||
ret^ = {
|
ret^ = {
|
||||||
kind = .VariableDeclaration,
|
kind = .VariableDeclaration,
|
||||||
@ -206,12 +205,6 @@ node_create_variable :: proc(range: TextRange, name, type_, value: ^Node, is_con
|
|||||||
children = { name, type_, value },
|
children = { name, type_, value },
|
||||||
value = is_const,
|
value = is_const,
|
||||||
}
|
}
|
||||||
|
|
||||||
//if value != nil {
|
|
||||||
// fmt.printf("Appending value to variable declaration\n")
|
|
||||||
// append(&ret.children, value)
|
|
||||||
//}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,6 @@ parser_parse_definitions :: proc(parser: ^Parser, end := TokenKind.Semicolon) ->
|
|||||||
if uninitialized == false {
|
if uninitialized == false {
|
||||||
value = parser_parse_expression(parser)
|
value = parser_parse_expression(parser)
|
||||||
}
|
}
|
||||||
fmt.printf("value: {}\n", value)
|
|
||||||
name_node := node_create_value(.Identifier, range, names[i])
|
name_node := node_create_value(.Identifier, range, names[i])
|
||||||
append(&vars, node_create_variable(range, name_node, type, value, are_constants))
|
append(&vars, node_create_variable(range, name_node, type, value, are_constants))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user