private FilterTree stringPatternAST(string source) { try { ANTLRStringStream input = new ANTLRStringStream(source); StringPatternLexer lexer = new StringPatternLexer(input); CommonTokenStream tokens = new CommonTokenStream(lexer); StringPatternParser parser = new StringPatternParser(tokens); return(parser.parse().Tree); } catch { } return(null); }
private FilterTree stringPatternAST(string source) { try { ANTLRStringStream input = new ANTLRStringStream(source); StringPatternLexer lexer = new StringPatternLexer(input); CommonTokenStream tokens = new CommonTokenStream(lexer); StringPatternParser parser = new StringPatternParser(tokens); return parser.parse().Tree; } catch { } return null; }