BaseRecognizerGetCurrentInputSymbol Method |
Match needs to return the current input symbol, which gets put
into the label for the associated token ref; e.g., x=ID. Token
and tree parsers need to return different objects. Rather than test
for input stream type or change the IntStream interface, I use
a simple method to ask the recognizer to tell me what the current
input symbol is.
Namespace:
Stimulsoft.Data.Expressions.Antlr.Runtime
Assembly:
Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntaxprotected virtual Object GetCurrentInputSymbol(
IIntStream input
)
Protected Overridable Function GetCurrentInputSymbol (
input As IIntStream
) As Object
Parameters
- input
- Type: Stimulsoft.Data.Expressions.Antlr.RuntimeIIntStream
[Missing <param name="input"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.GetCurrentInputSymbol(Stimulsoft.Data.Expressions.Antlr.Runtime.IIntStream)"]
Return Value
Type:
Object[Missing <returns> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.GetCurrentInputSymbol(Stimulsoft.Data.Expressions.Antlr.Runtime.IIntStream)"]
RemarksThis is ignored for lexers.
See Also