BaseRecognizerAlreadyParsedRule Method |
Has this rule already parsed input at the current index in the
input stream? Return the stop token index or MEMO_RULE_UNKNOWN.
If we attempted but failed to parse properly before, return
MEMO_RULE_FAILED.
Namespace:
Stimulsoft.Data.Expressions.Antlr.Runtime
Assembly:
Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntaxpublic virtual bool AlreadyParsedRule(
IIntStream input,
int ruleIndex
)
Public Overridable Function AlreadyParsedRule (
input As IIntStream,
ruleIndex As Integer
) As Boolean
Parameters
- input
- Type: Stimulsoft.Data.Expressions.Antlr.RuntimeIIntStream
[Missing <param name="input"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.AlreadyParsedRule(Stimulsoft.Data.Expressions.Antlr.Runtime.IIntStream,System.Int32)"]
- ruleIndex
- Type: SystemInt32
[Missing <param name="ruleIndex"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.AlreadyParsedRule(Stimulsoft.Data.Expressions.Antlr.Runtime.IIntStream,System.Int32)"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.AlreadyParsedRule(Stimulsoft.Data.Expressions.Antlr.Runtime.IIntStream,System.Int32)"]
Remarks
This method has a side-effect: if we have seen this input for
this rule and successfully parsed before, then seek ahead to
1 past the stop token matched for this rule last time.
See Also