Table of Contents

Class NCalcLexer

Namespace
NCalc.Antlr
Assembly
NCalc.Antlr.dll
[CLSCompliant(false)]
public class NCalcLexer : Lexer, IRecognizer, ITokenSource
Inheritance
Recognizer<int, LexerATNSimulator>
Lexer
NCalcLexer
Implements
IRecognizer
ITokenSource
Inherited Members
Lexer.DEFAULT_MODE
Lexer.DefaultTokenChannel
Lexer.Hidden
Lexer.MinCharValue
Lexer.MaxCharValue
Lexer.Output
Lexer.ErrorOutput
Lexer.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.TokenFactory
Lexer.SourceName
Lexer.InputStream
Lexer.Line
Lexer.Column
Lexer.CharIndex
Lexer.TokenStartCharIndex
Lexer.TokenStartLine
Lexer.TokenStartColumn
Lexer.Text
Lexer.Token
Lexer.Type
Lexer.Channel
Lexer.ModeStack
Lexer.CurrentMode
Lexer.HitEOF
Recognizer<int, LexerATNSimulator>.Eof
Recognizer<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>.RuleNames
Recognizer<int, LexerATNSimulator>.Vocabulary
Recognizer<int, LexerATNSimulator>.TokenTypeMap
Recognizer<int, LexerATNSimulator>.RuleIndexMap
Recognizer<int, LexerATNSimulator>.SerializedAtn
Recognizer<int, LexerATNSimulator>.GrammarFileName
Recognizer<int, LexerATNSimulator>.Atn
Recognizer<int, LexerATNSimulator>.Interpreter
Recognizer<int, LexerATNSimulator>.ParseInfo
Recognizer<int, LexerATNSimulator>.ErrorListeners
Recognizer<int, LexerATNSimulator>.ErrorListenerDispatch
Recognizer<int, LexerATNSimulator>.State
Recognizer<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 ICharStream
output TextWriter
errorOutput TextWriter

Fields

AND

public const int AND = 31

Field Value

int

DATETIME

public const int DATETIME = 38

Field Value

int

DefaultVocabulary

public static readonly IVocabulary DefaultVocabulary

Field Value

IVocabulary

EXPONENT

public const int EXPONENT = 40

Field Value

int

FALSE

public const int FALSE = 30

Field Value

int

FLOAT

public const int FLOAT = 36

Field Value

int

ID

public const int ID = 34

Field Value

int

INTEGER

public const int INTEGER = 35

Field Value

int

NAME

public const int NAME = 39

Field Value

int

NOT

public const int NOT = 33

Field Value

int

OR

public const int OR = 32

Field Value

int

STRING

public const int STRING = 37

Field Value

int

TRUE

public const int TRUE = 29

Field Value

int

T__0

public const int T__0 = 1

Field Value

int

T__1

public const int T__1 = 2

Field Value

int

T__10

public const int T__10 = 11

Field Value

int

T__11

public const int T__11 = 12

Field Value

int

T__12

public const int T__12 = 13

Field Value

int

T__13

public const int T__13 = 14

Field Value

int

T__14

public const int T__14 = 15

Field Value

int

T__15

public const int T__15 = 16

Field Value

int

T__16

public const int T__16 = 17

Field Value

int

T__17

public const int T__17 = 18

Field Value

int

T__18

public const int T__18 = 19

Field Value

int

T__19

public const int T__19 = 20

Field Value

int

T__2

public const int T__2 = 3

Field Value

int

T__20

public const int T__20 = 21

Field Value

int

T__21

public const int T__21 = 22

Field Value

int

T__22

public const int T__22 = 23

Field Value

int

T__23

public const int T__23 = 24

Field Value

int

T__24

public const int T__24 = 25

Field Value

int

T__25

public const int T__25 = 26

Field Value

int

T__26

public const int T__26 = 27

Field Value

int

T__27

public const int T__27 = 28

Field Value

int

T__3

public const int T__3 = 4

Field Value

int

T__4

public const int T__4 = 5

Field Value

int

T__5

public const int T__5 = 6

Field Value

int

T__6

public const int T__6 = 7

Field Value

int

T__7

public const int T__7 = 8

Field Value

int

T__8

public const int T__8 = 9

Field Value

int

T__9

public const int T__9 = 10

Field Value

int

UseDecimal

public bool UseDecimal

Field Value

bool

WS

public const int WS = 41

Field Value

int

_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

string

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.