BugFix :  grammar file not generated on build error

Scanner, Parser, ParserTree were not Generated if the grammar file
contains build errors