Click or drag to resize

BaseRecognizerMatch Method

Match current input symbol against ttype. Attempt single token insertion or deletion error recovery. If that fails, throw MismatchedTokenException.

Namespace:  Stimulsoft.Data.Expressions.Antlr.Runtime
Assembly:  Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntax
public virtual Object Match(
	IIntStream input,
	int ttype,
	BitSet follow
)

Parameters

input
Type: Stimulsoft.Data.Expressions.Antlr.RuntimeIIntStream

[Missing <param name="input"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.Match(Stimulsoft.Data.Expressions.Antlr.Runtime.IIntStream,System.Int32,Stimulsoft.Data.Expressions.Antlr.Runtime.BitSet)"]

ttype
Type: SystemInt32

[Missing <param name="ttype"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.Match(Stimulsoft.Data.Expressions.Antlr.Runtime.IIntStream,System.Int32,Stimulsoft.Data.Expressions.Antlr.Runtime.BitSet)"]

follow
Type: Stimulsoft.Data.Expressions.Antlr.RuntimeBitSet

[Missing <param name="follow"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.Match(Stimulsoft.Data.Expressions.Antlr.Runtime.IIntStream,System.Int32,Stimulsoft.Data.Expressions.Antlr.Runtime.BitSet)"]

Return Value

Type: Object

[Missing <returns> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.Match(Stimulsoft.Data.Expressions.Antlr.Runtime.IIntStream,System.Int32,Stimulsoft.Data.Expressions.Antlr.Runtime.BitSet)"]

Remarks
To turn off single token insertion or deletion error recovery, override recoverFromMismatchedToken() and have it throw an exception. See TreeParser.recoverFromMismatchedToken(). This way any error in a rule will cause an exception and immediate exit from rule. Rule would recover by resynchronizing to the set of symbols that can follow rule ref.
See Also