feat: execute break and continue in while loops
This commit is contained in:
@@ -30,6 +30,8 @@ Code :: enum {
|
||||
return_type_mismatch,
|
||||
condition_not_bool,
|
||||
invalid_assignment_target,
|
||||
break_outside_loop,
|
||||
continue_outside_loop,
|
||||
missing_entry,
|
||||
invalid_entry,
|
||||
literal_out_of_range,
|
||||
@@ -98,6 +100,8 @@ messages :: $enummap.init(Code, []u8, {
|
||||
return_type_mismatch = "return does not match the function result type",
|
||||
condition_not_bool = "condition must have type bool",
|
||||
invalid_assignment_target = "assignment requires a mutable local binding",
|
||||
break_outside_loop = "break requires an enclosing loop",
|
||||
continue_outside_loop = "continue requires an enclosing loop",
|
||||
missing_entry = "program requires a main function",
|
||||
invalid_entry = "main must be a function with no parameters",
|
||||
literal_out_of_range = "numeric literal is outside its runtime type's range",
|
||||
|
||||
Reference in New Issue
Block a user