Class NCalcLexer
[CLSCompliant(false)]
public class NCalcLexer : Lexer, IRecognizer, ITokenSource
- Inheritance
-
LexerNCalcLexer
- Implements
-
IRecognizerITokenSource
- Inherited Members
-
Lexer.DEFAULT_MODELexer.DefaultTokenChannelLexer.HiddenLexer.MinCharValueLexer.MaxCharValueLexer.OutputLexer.ErrorOutputLexer.Reset()Lexer.NextToken()Lexer.Skip()Lexer.More()Lexer.PopMode()Lexer.SetInputStream(ICharStream)Lexer.Emit(IToken)Lexer.Emit()Lexer.EmitEOF()Lexer.GetAllTokens()Lexer.Recover(LexerNoViableAltException)Lexer.NotifyListeners(LexerNoViableAltException)Lexer.Recover(RecognitionException)Lexer.TokenFactoryLexer.SourceNameLexer.InputStreamLexer.LineLexer.ColumnLexer.CharIndexLexer.TokenStartCharIndexLexer.TokenStartLineLexer.TokenStartColumnLexer.TextLexer.TokenLexer.TypeLexer.ChannelLexer.ModeStackLexer.CurrentModeLexer.HitEOFRecognizer<int, LexerATNSimulator>.EofRecognizer<int, LexerATNSimulator>.CreateTokenTypeMap(IVocabulary)Recognizer<int, LexerATNSimulator>.GetErrorHeader(RecognitionException)Recognizer<int, LexerATNSimulator>.GetTokenErrorDisplay(IToken)Recognizer<int, LexerATNSimulator>.AddErrorListener(IAntlrErrorListener<int>)Recognizer<int, LexerATNSimulator>.RemoveErrorListener(IAntlrErrorListener<int>)Recognizer<int, LexerATNSimulator>.RemoveErrorListeners()Recognizer<int, LexerATNSimulator>.RuleNamesRecognizer<int, LexerATNSimulator>.VocabularyRecognizer<int, LexerATNSimulator>.TokenTypeMapRecognizer<int, LexerATNSimulator>.RuleIndexMapRecognizer<int, LexerATNSimulator>.SerializedAtnRecognizer<int, LexerATNSimulator>.GrammarFileNameRecognizer<int, LexerATNSimulator>.AtnRecognizer<int, LexerATNSimulator>.InterpreterRecognizer<int, LexerATNSimulator>.ParseInfoRecognizer<int, LexerATNSimulator>.ErrorListenersRecognizer<int, LexerATNSimulator>.ErrorListenerDispatchRecognizer<int, LexerATNSimulator>.StateRecognizer<int, LexerATNSimulator>.InputStream
Constructors
NCalcLexer(ICharStream)
public NCalcLexer(ICharStream input)
Parameters
input
ICharStream
NCalcLexer(ICharStream, TextWriter, TextWriter)
public NCalcLexer(ICharStream input, TextWriter output, TextWriter errorOutput)
Parameters
input
ICharStreamoutput
TextWritererrorOutput
TextWriter
Fields
AND
public const int AND = 31
Field Value
DATETIME
public const int DATETIME = 38
Field Value
DefaultVocabulary
public static readonly IVocabulary DefaultVocabulary
Field Value
- IVocabulary
EXPONENT
public const int EXPONENT = 40
Field Value
FALSE
public const int FALSE = 30
Field Value
FLOAT
public const int FLOAT = 36
Field Value
ID
public const int ID = 34
Field Value
INTEGER
public const int INTEGER = 35
Field Value
NAME
public const int NAME = 39
Field Value
NOT
public const int NOT = 33
Field Value
OR
public const int OR = 32
Field Value
STRING
public const int STRING = 37
Field Value
TRUE
public const int TRUE = 29
Field Value
T__0
public const int T__0 = 1
Field Value
T__1
public const int T__1 = 2
Field Value
T__10
public const int T__10 = 11
Field Value
T__11
public const int T__11 = 12
Field Value
T__12
public const int T__12 = 13
Field Value
T__13
public const int T__13 = 14
Field Value
T__14
public const int T__14 = 15
Field Value
T__15
public const int T__15 = 16
Field Value
T__16
public const int T__16 = 17
Field Value
T__17
public const int T__17 = 18
Field Value
T__18
public const int T__18 = 19
Field Value
T__19
public const int T__19 = 20
Field Value
T__2
public const int T__2 = 3
Field Value
T__20
public const int T__20 = 21
Field Value
T__21
public const int T__21 = 22
Field Value
T__22
public const int T__22 = 23
Field Value
T__23
public const int T__23 = 24
Field Value
T__24
public const int T__24 = 25
Field Value
T__25
public const int T__25 = 26
Field Value
T__26
public const int T__26 = 27
Field Value
T__27
public const int T__27 = 28
Field Value
T__3
public const int T__3 = 4
Field Value
T__4
public const int T__4 = 5
Field Value
T__5
public const int T__5 = 6
Field Value
T__6
public const int T__6 = 7
Field Value
T__7
public const int T__7 = 8
Field Value
T__8
public const int T__8 = 9
Field Value
T__9
public const int T__9 = 10
Field Value
UseDecimal
public bool UseDecimal
Field Value
WS
public const int WS = 41
Field Value
_ATN
public static readonly ATN _ATN
Field Value
- ATN
channelNames
public static string[] channelNames
Field Value
- string[]
decisionToDFA
protected static DFA[] decisionToDFA
Field Value
- DFA[]
modeNames
public static string[] modeNames
Field Value
- string[]
ruleNames
public static readonly string[] ruleNames
Field Value
- string[]
sharedContextCache
protected static PredictionContextCache sharedContextCache
Field Value
- PredictionContextCache
Properties
ChannelNames
public override string[] ChannelNames { get; }
Property Value
- string[]
GrammarFileName
For debugging and other purposes, might want the grammar name.
public override string GrammarFileName { get; }
Property Value
Remarks
For debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method.
ModeNames
public override string[] ModeNames { get; }
Property Value
- string[]
RuleNames
Used to print out token names like ID during debugging and error reporting.
public override string[] RuleNames { get; }
Property Value
- string[]
Remarks
Used to print out token names like ID during debugging and error reporting. The generated parsers implement a method that overrides this to point to their String[] tokenNames.
SerializedAtn
If this recognizer was generated, it will have a serialized ATN representation of the grammar.
public override int[] SerializedAtn { get; }
Property Value
- int[]
Remarks
If this recognizer was generated, it will have a serialized ATN representation of the grammar.
For interpreters, we don't know their serialized ATN despite having created the interpreter from it.
Vocabulary
Get the vocabulary used by the recognizer.
[NotNull]
public override IVocabulary Vocabulary { get; }
Property Value
- IVocabulary
A Antlr4.Runtime.IVocabulary instance providing information about the vocabulary used by the grammar.
Remarks
Get the vocabulary used by the recognizer.