hawkw / decaf

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

Add detection for undeclared named types #27

Closed hawkw closed 10 years ago

hawkw commented 10 years ago

From Dr. Jumadinova's handout:

*** No declaration for class ‘Cow’ found

This message is used to report undeclared identifiers. The only undeclared identifiers you have to catch for the checkpoint are use of undeclared named types in declarations, i.e. a named type used in a variable/function declaration, a class named in an extends clause, or an interface from a implements clause. This error message is also used for undeclared variables and functions, but checking for those is a task that is handled after the checkpoint.

hawkw commented 10 years ago

See bf54143