Table of Contents

Class ChordSymbolLexer

Namespace
Celeritas.Core.Grammar
Assembly
Celeritas.dll
[CLSCompliant(false)]
public class ChordSymbolLexer : Lexer, IRecognizer, ITokenSource
Inheritance
Recognizer<int, LexerATNSimulator>
Lexer
ChordSymbolLexer
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

ChordSymbolLexer(ICharStream)

public ChordSymbolLexer(ICharStream input)

Parameters

input ICharStream

ChordSymbolLexer(ICharStream, TextWriter, TextWriter)

public ChordSymbolLexer(ICharStream input, TextWriter output, TextWriter errorOutput)

Parameters

input ICharStream
output TextWriter
errorOutput TextWriter

Fields

ADD

public const int ADD = 9

Field Value

int

ALT

public const int ALT = 19

Field Value

int

AUG

public const int AUG = 15

Field Value

int

COMMA

public const int COMMA = 5

Field Value

int

DELTA

public const int DELTA = 18

Field Value

int

DIM

public const int DIM = 14

Field Value

int

DefaultVocabulary

public static readonly IVocabulary DefaultVocabulary

Field Value

IVocabulary

FLAT

public const int FLAT = 7

Field Value

int

HALF_DIM

public const int HALF_DIM = 17

Field Value

int

INT

public const int INT = 23

Field Value

int

LPAREN

public const int LPAREN = 3

Field Value

int

MAJ

public const int MAJ = 12

Field Value

int

MIN

public const int MIN = 13

Field Value

int

MINUS

public const int MINUS = 8

Field Value

int

NO

public const int NO = 10

Field Value

int

OMIT

public const int OMIT = 11

Field Value

int

PITCH_NAME

public const int PITCH_NAME = 22

Field Value

int

POLYSEP

public const int POLYSEP = 1

Field Value

int

POWER

public const int POWER = 20

Field Value

int

RPAREN

public const int RPAREN = 4

Field Value

int

SHARP

public const int SHARP = 6

Field Value

int

SIX_NINE

public const int SIX_NINE = 21

Field Value

int

SLASH

public const int SLASH = 2

Field Value

int

SUS

public const int SUS = 16

Field Value

int

WS

public const int WS = 24

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.