ParseTreePatternMatcher constructor

ParseTreePatternMatcher(
  1. Lexer lexer,
  2. Parser parser
)

Constructs a ParseTreePatternMatcher or from a Lexer and 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.

Implementation

ParseTreePatternMatcher(this.lexer, this.parser);