diff --git a/type.odin b/type.odin index 2cb2a17..56a1fd1 100644 --- a/type.odin +++ b/type.odin @@ -3,7 +3,6 @@ package main TypeKind :: enum { Integer, Float, - String, } Type :: struct { @@ -56,9 +55,3 @@ type_create_float :: proc(bit_size: u8) -> (ret: ^Type) { ret.is_signed = true return } - -type_create_string :: proc() -> (ret: ^Type) { - ret = new(Type) - ret.kind = .String - return -} diff --git a/type_checker.odin b/type_checker.odin index 2bba899..4bbd3d3 100644 --- a/type_checker.odin +++ b/type_checker.odin @@ -15,7 +15,7 @@ infer_type :: proc(parent: ^Node, child: ^Node) { #partial switch child.kind { case .Integer: child.return_type = type_create_integer(32, true) case .Float: child.return_type = type_create_float(32) - case .String: child.return_type = type_create_string() + case .String: panic("FIXME: Add support for arrays") case .Character: child.return_type = type_create_integer(32, false) } } else {