Currently the compiler uses exception to handle errors, which means only one error can be generated and no warning can be generated.
It may be interesting to continue compilation even after an error has been encountered (except for fatal errors), and also to produce warnings.