Open theodore-norvell opened 7 years ago
Any errors detected at run time should result in execution stopping and the error being reported to the user.
Errors include
variable lookup fails
wrong number of function arguments
type mismatch on a built-in operation
argument type is not assignable to the parameter type
value is not assignable to variable on assignment
non-Boolean on an if or while guard
This can be done by setting an error flag and an error message in the vms.
Errors encountered during execution are not currently fed back to the user in a sensible way.