check command in CLI

Adds a `check` command to check for syntax without
compiling nor creating a .class file.

This can be useful for IDE that wants to check the
validity of the code without all the compilation
machinery