hawkw / decaf

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

Add detection for invalid function parameters #33

Closed hawkw closed 10 years ago

hawkw commented 10 years ago

From Dr. Jumadinova's handout:

*** Function ‘Winky’ expects 4 arguments but 3 given
*** Incompatible argument 2 : string given, string[] expected
*** Incompatible argument 3 : double given, int/bool/string expected

Used to report mismatches between actual and formal parameters in a function call. The last one is a special case message used for incorrect argument types to the Print builtin function.

hawkw commented 10 years ago

This appears to be mostly done? (see 718bf3e)

hawkw commented 10 years ago

Should be done as of 03b9fa1.