changed parser and sem check so that main method must have return type void