// ExprLexer lexer = new ExprLexer(new ANTLRStringStream("2+2"));
CommonTokenStream tokens = new CommonTokenStream(lexer);
ExprParser parser = new ExprParser(tokens);
parser.setRegistry(new FunctionRegistry(DrillConfig.create()));
parse_return ret = parser.parse();
LogicalExpression e = ret.e;
ObjectMapper mapper = new ObjectMapper();
mapper.enable(SerializationFeature.INDENT_OUTPUT);
System.out.println(mapper.writeValueAsString(e));