// lexer.setTokenFactory(factory);
CommonTokenStream tokens = new CommonTokenStream(lexer);
MsonParser parser = new MsonParser(tokens);
// parser.setTokenFactory(factory);
parser.addErrorListener(new DiagnosticErrorListener());
parser.getInterpreter().setPredictionMode(
PredictionMode.LL_EXACT_AMBIG_DETECTION);
parser.setBuildParseTree(true);
ParseTree tree = parser.mson();
// show tree in text form