public DeclarationList parseMString(String code) { context = Context.newGlobalsContext(); MCleverParser parser = new MCleverParser(code); parser.ErrorHandler = new FatalErrorStrategy(); return(parser.parse_declaration_list()); }
public DeclarationList parseMResource(String resourceName) { context = Context.newGlobalsContext(); Stream input = OpenResource(resourceName); try { MCleverParser parser = new MCleverParser(input); return(parser.parse_declaration_list()); } finally { input.Close(); } }