@Test public void testSearchCommandIgnoreSearchKeywordShouldPass() { ParseTree tree = new PPLSyntaxParser().analyzeSyntax("source=t a=1 b=2"); assertNotEquals(null, tree); }
public ParseTree analyzeSyntax(String query) { OpenDistroPPLParser parser = createParser(createLexer(query)); parser.addErrorListener(new SyntaxAnalysisErrorListener()); return parser.root(); }
PPLSyntaxParser { public ParseTree analyzeSyntax(String query) { OpenDistroPPLParser parser = createParser(createLexer(query)); parser.addErrorListener(new SyntaxAnalysisErrorListener()); return parser.root(); } }
PPLSyntaxParser { public ParseTree analyzeSyntax(String query) { OpenDistroPPLParser parser = createParser(createLexer(query)); parser.addErrorListener(new SyntaxAnalysisErrorListener()); return parser.root(); }  }
PPLSyntaxParser { public ParseTree analyzeSyntax(String query) { OpenDistroPPLParser parser = createParser(createLexer(query)); parser.addErrorListener(new SyntaxAnalysisErrorListener()); return parser.root(); }  ParseTree analyzeSyntax(String query); }
PPLSyntaxParser { public ParseTree analyzeSyntax(String query) { OpenDistroPPLParser parser = createParser(createLexer(query)); parser.addErrorListener(new SyntaxAnalysisErrorListener()); return parser.root(); }  ParseTree analyzeSyntax(String query);  }