hawkw / decaf

like Java, but less so
hawkweisman.me/decaf
Other
18 stars 4 forks source link

Add detection for invalid operands #31

Closed hawkw closed 9 years ago

hawkw commented 9 years ago

From Dr. Jumadinova's handout:

*** Incompatible operands: double * string
*** Incompatible operand: ! int[]

Used to report expressions with operands of inappropriate type. Assignment, arithmetic, relational, equality, and logical operators all use the same messages. The first is for binary operators, the second for unary.

hawkw commented 9 years ago

This was finished way back in 630fc23 and 70b4205.