Antlr4.Runtime.Tree.Pattern.ParseTreePatternMatcher.ParseTreePatternMatcher C# (CSharp) Method

ParseTreePatternMatcher() public method

Constructs a ParseTreePatternMatcher or from a Antlr4.Runtime.Lexer and Antlr4.Runtime.Parser object. The lexer input stream is altered for tokenizing the tree patterns. The parser is used as a convenient mechanism to get the grammar name, plus token, rule names.
public ParseTreePatternMatcher ( Lexer lexer, Parser parser ) : System
lexer Lexer
parser Parser
return System
        public ParseTreePatternMatcher(Lexer lexer, Parser parser)
        {
            // e.g., \< and \> must escape BOTH!
            this.lexer = lexer;
            this.parser = parser;
        }