* This hooks a particular string to the lexer. From there it creates a parser
* that can be started from different entities. The lexer and language are
* case sensitive.
*/
static FlumeShellParser getShellCmdParser(String s) {
FlumeShellLexer lexer = new FlumeShellLexer(new ANTLRStringStream(s));
CommonTokenStream tokens = new CommonTokenStream(lexer);
return new FlumeShellParser(tokens);
}