BaseRecognizerGetRuleMemoization Method |
Given a rule number and a start token index number, return
MEMO_RULE_UNKNOWN if the rule has not parsed input starting from
start index. If this rule has parsed input starting from the
start index before, then return where the rule stopped parsing.
It returns the index of the last token matched by the rule.
Namespace:
Stimulsoft.Data.Expressions.Antlr.Runtime
Assembly:
Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntaxpublic virtual int GetRuleMemoization(
int ruleIndex,
int ruleStartIndex
)
Public Overridable Function GetRuleMemoization (
ruleIndex As Integer,
ruleStartIndex As Integer
) As Integer
Parameters
- ruleIndex
- Type: SystemInt32
[Missing <param name="ruleIndex"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.GetRuleMemoization(System.Int32,System.Int32)"]
- ruleStartIndex
- Type: SystemInt32
[Missing <param name="ruleStartIndex"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.GetRuleMemoization(System.Int32,System.Int32)"]
Return Value
Type:
Int32[Missing <returns> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.GetRuleMemoization(System.Int32,System.Int32)"]
Remarks
For now we use a hashtable and just the slow Object-based one.
Later, we can make a special one for ints and also one that
tosses out data after we commit past input position i.
See Also