theodore-norvell / PLAAY

Senior Design Project PLAAY (Programming Language for Adults And Youth)
2 stars 0 forks source link

Error reporting #13

Open theodore-norvell opened 7 years ago

theodore-norvell commented 7 years ago

Errors encountered during execution are not currently fed back to the user in a sensible way.

theodore-norvell commented 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.