Table of Contents

Class MusicNotationLexer

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

MusicNotationLexer(ICharStream)

public MusicNotationLexer(ICharStream input)

Parameters

input ICharStream

MusicNotationLexer(ICharStream, TextWriter, TextWriter)

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

Parameters

input ICharStream
output TextWriter
errorOutput TextWriter

Fields

APPOGGIATURA

public const int APPOGGIATURA = 38

Field Value

int

ARROW

public const int ARROW = 5

Field Value

int

AT

public const int AT = 4

Field Value

int

BAR

public const int BAR = 3

Field Value

int

BPM

public const int BPM = 25

Field Value

int

CHARACTER

public const int CHARACTER = 27

Field Value

int

COLON

public const int COLON = 2

Field Value

int

CRESC

public const int CRESC = 31

Field Value

int

DIM

public const int DIM = 32

Field Value

int

DOT

public const int DOT = 16

Field Value

int

DURATION_LETTER

public const int DURATION_LETTER = 21

Field Value

int

DYNAMICS

public const int DYNAMICS = 30

Field Value

int

DYNAMICS_LEVEL

public const int DYNAMICS_LEVEL = 34

Field Value

int

DefaultVocabulary

public static readonly IVocabulary DefaultVocabulary

Field Value

IVocabulary

EQUALS

public const int EQUALS = 6

Field Value

int

FLAT

public const int FLAT = 20

Field Value

int

IDENT

public const int IDENT = 39

Field Value

int

INT

public const int INT = 23

Field Value

int

LANGLE

public const int LANGLE = 14

Field Value

int

LBRACE

public const int LBRACE = 12

Field Value

int

LBRACKET

public const int LBRACKET = 8

Field Value

int

LPAREN

public const int LPAREN = 10

Field Value

int

MINUS

public const int MINUS = 7

Field Value

int

MORDENT

public const int MORDENT = 36

Field Value

int

PART

public const int PART = 29

Field Value

int

PITCH_NAME

public const int PITCH_NAME = 22

Field Value

int

RANGLE

public const int RANGLE = 15

Field Value

int

RBRACE

public const int RBRACE = 13

Field Value

int

RBRACKET

public const int RBRACKET = 9

Field Value

int

REST

public const int REST = 18

Field Value

int

RPAREN

public const int RPAREN = 11

Field Value

int

SECTION

public const int SECTION = 28

Field Value

int

SHARP

public const int SHARP = 19

Field Value

int

SLASH

public const int SLASH = 1

Field Value

int

STRING

public const int STRING = 24

Field Value

int

TEMPO

public const int TEMPO = 26

Field Value

int

TILDE

public const int TILDE = 17

Field Value

int

TO

public const int TO = 33

Field Value

int

TRILL

public const int TRILL = 35

Field Value

int

TURN

public const int TURN = 37

Field Value

int

WS

public const int WS = 40

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.