m-lopez / jack

Exploring a minimal language for minimal computers.
MIT License
2 stars 0 forks source link

Add compiler flags to support exhaustive case checking. #4

Closed m-lopez closed 7 years ago

m-lopez commented 7 years ago

Many of the bugs caught so far have originated from non-exhaustive cases. The compiler should be checking for this at compile-time. There are probably more bugs caused from non-exhaustive case clauses. Moreover, as the language evolves, the compiler should inform us when semantics for the language have not yet been implemented in an instructive way.

m-lopez commented 7 years ago

Ideally, the flags -Wall and -Werror should be used. Until a linter hook is setup, -fwarn-tabs should also be used.

m-lopez commented 7 years ago

Added the flags.