implementation of PARSER for MJava