Property | Type | Description | |
---|---|---|---|
escape | string | ||
start | string | ||
stop | string |
Property | Type | Description | |
---|---|---|---|
Match | |||
MatchImpl | IParseTree | ||
Split | IList |
Method | Description | |
---|---|---|
Compile ( string pattern, int patternRuleIndex ) : |
For repeated use of a tree pattern, compile it to a ParseTreePattern using this method.
|
|
Match ( IParseTree tree, string pattern, int patternRuleIndex ) : |
Compare pattern matched as rule patternRuleIndex against tree and return a ParseTreeMatch object that contains the matched elements, or the node at which the match failed.
|
|
Matches ( IParseTree tree, |
Does pattern matched as rule patternRuleIndex match tree? Pass in a compiled pattern instead of a string representation of a tree pattern.
|
|
Matches ( IParseTree tree, string pattern, int patternRuleIndex ) : bool |
Does pattern matched as rule patternRuleIndex match tree ?
|
|
ParseTreePatternMatcher ( Lexer lexer, Parser parser ) : System |
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.
|
|
SetDelimiters ( string start, string stop, string escapeLeft ) : void |
Set the delimiters used for marking rule and token tags within concrete syntax used by the tree pattern parser. Set the delimiters used for marking rule and token tags within concrete syntax used by the tree pattern parser. |
|
Tokenize ( string pattern ) : IList |
Method | Description | |
---|---|---|
GetRuleTagToken ( IParseTree t ) : |
Is t
|
Method | Description | |
---|---|---|
Match ( IParseTree tree, |
||
MatchImpl ( IParseTree tree, IParseTree patternTree, IParseTree>.MultiMap |
||
Split ( string pattern ) : IList |
Split
|
public Compile ( string pattern, int patternRuleIndex ) : |
||
pattern | string | |
patternRuleIndex | int | |
return |
protected GetRuleTagToken ( IParseTree t ) : |
||
t | IParseTree | |
return |
public Match ( IParseTree tree, string pattern, int patternRuleIndex ) : |
||
tree | IParseTree | |
pattern | string | |
patternRuleIndex | int | |
return |
public Matches ( IParseTree tree, |
||
tree | IParseTree | |
pattern | ||
return | bool |
public Matches ( IParseTree tree, string pattern, int patternRuleIndex ) : bool | ||
tree | IParseTree | |
pattern | string | |
patternRuleIndex | int | |
return | bool |
public ParseTreePatternMatcher ( Lexer lexer, Parser parser ) : System | ||
lexer | Lexer | |
parser | Parser | |
return | System |
public SetDelimiters ( string start, string stop, string escapeLeft ) : void | ||
start | string | The start delimiter. |
stop | string | The stop delimiter. |
escapeLeft | string | The escape sequence to use for escaping a start or stop delimiter. |
return | void |