Class MusicNotationParser
[CLSCompliant(false)]
public class MusicNotationParser : Parser, IRecognizer
- Inheritance
-
Recognizer<IToken, ParserATNSimulator>ParserMusicNotationParser
- Implements
-
IRecognizer
- Inherited Members
-
Parser.OutputParser.ErrorOutputParser.Reset()Parser.MatchWildcard()Parser.AddParseListener(IParseTreeListener)Parser.RemoveParseListener(IParseTreeListener)Parser.RemoveParseListeners()Parser.TriggerEnterRuleEvent()Parser.TriggerExitRuleEvent()Parser.GetATNWithBypassAlts()Parser.Consume()Parser.AddContextToParseTree()Parser.ExitRule()Parser.UnrollRecursionContexts(ParserRuleContext)Parser.GetExpectedTokens()Parser.GetExpectedTokensWithinCurrentRule()Parser.GetRuleInvocationStack()Parser.GetRuleInvocationStackAsString()Parser.GetRuleInvocationStack(RuleContext)Parser.GetDFAStrings()Parser.DumpDFA()Parser.BuildParseTreeParser.TrimParseTreeParser.ParseListenersParser.NumberOfSyntaxErrorsParser.TokenFactoryParser.ErrorHandlerParser.InputStreamParser.TokenStreamParser.CurrentTokenParser.PrecedenceParser.ContextParser.ErrorListenerDispatchParser.RuleContextParser.SourceNameParser.ParseInfoParser.ProfileParser.TraceRecognizer<IToken, ParserATNSimulator>.EofRecognizer<IToken, ParserATNSimulator>.CreateTokenTypeMap(IVocabulary)Recognizer<IToken, ParserATNSimulator>.GetErrorHeader(RecognitionException)Recognizer<IToken, ParserATNSimulator>.GetTokenErrorDisplay(IToken)Recognizer<IToken, ParserATNSimulator>.AddErrorListener(IAntlrErrorListener<IToken>)Recognizer<IToken, ParserATNSimulator>.RemoveErrorListener(IAntlrErrorListener<IToken>)Recognizer<IToken, ParserATNSimulator>.RemoveErrorListeners()Recognizer<IToken, ParserATNSimulator>.RuleNamesRecognizer<IToken, ParserATNSimulator>.VocabularyRecognizer<IToken, ParserATNSimulator>.TokenTypeMapRecognizer<IToken, ParserATNSimulator>.RuleIndexMapRecognizer<IToken, ParserATNSimulator>.SerializedAtnRecognizer<IToken, ParserATNSimulator>.GrammarFileNameRecognizer<IToken, ParserATNSimulator>.AtnRecognizer<IToken, ParserATNSimulator>.InterpreterRecognizer<IToken, ParserATNSimulator>.ParseInfoRecognizer<IToken, ParserATNSimulator>.ErrorListenersRecognizer<IToken, ParserATNSimulator>.ErrorListenerDispatchRecognizer<IToken, ParserATNSimulator>.StateRecognizer<IToken, ParserATNSimulator>.InputStream
Constructors
MusicNotationParser(ITokenStream)
public MusicNotationParser(ITokenStream input)
Parameters
inputITokenStream
MusicNotationParser(ITokenStream, TextWriter, TextWriter)
public MusicNotationParser(ITokenStream input, TextWriter output, TextWriter errorOutput)
Parameters
inputITokenStreamoutputTextWritererrorOutputTextWriter
Fields
APPOGGIATURA
public const int APPOGGIATURA = 38
Field Value
ARROW
public const int ARROW = 5
Field Value
AT
public const int AT = 4
Field Value
BAR
public const int BAR = 3
Field Value
BPM
public const int BPM = 25
Field Value
CHARACTER
public const int CHARACTER = 27
Field Value
COLON
public const int COLON = 2
Field Value
CRESC
public const int CRESC = 31
Field Value
DIM
public const int DIM = 32
Field Value
DOT
public const int DOT = 16
Field Value
DURATION_LETTER
public const int DURATION_LETTER = 21
Field Value
DYNAMICS
public const int DYNAMICS = 30
Field Value
DYNAMICS_LEVEL
public const int DYNAMICS_LEVEL = 34
Field Value
DefaultVocabulary
public static readonly IVocabulary DefaultVocabulary
Field Value
- IVocabulary
EQUALS
public const int EQUALS = 6
Field Value
FLAT
public const int FLAT = 20
Field Value
IDENT
public const int IDENT = 39
Field Value
INT
public const int INT = 23
Field Value
LANGLE
public const int LANGLE = 14
Field Value
LBRACE
public const int LBRACE = 12
Field Value
LBRACKET
public const int LBRACKET = 8
Field Value
LPAREN
public const int LPAREN = 10
Field Value
MINUS
public const int MINUS = 7
Field Value
MORDENT
public const int MORDENT = 36
Field Value
PART
public const int PART = 29
Field Value
PITCH_NAME
public const int PITCH_NAME = 22
Field Value
RANGLE
public const int RANGLE = 15
Field Value
RBRACE
public const int RBRACE = 13
Field Value
RBRACKET
public const int RBRACKET = 9
Field Value
REST
public const int REST = 18
Field Value
RPAREN
public const int RPAREN = 11
Field Value
RULE_accidental
public const int RULE_accidental = 20
Field Value
RULE_bpmDirective
public const int RULE_bpmDirective = 6
Field Value
RULE_characterDirective
public const int RULE_characterDirective = 9
Field Value
RULE_chord
public const int RULE_chord = 16
Field Value
RULE_directive
public const int RULE_directive = 5
Field Value
RULE_directiveValue
public const int RULE_directiveValue = 14
Field Value
RULE_duration
public const int RULE_duration = 22
Field Value
RULE_durationValue
public const int RULE_durationValue = 23
Field Value
RULE_dynamicsDirective
public const int RULE_dynamicsDirective = 12
Field Value
RULE_dynamicsValue
public const int RULE_dynamicsValue = 13
Field Value
RULE_element
public const int RULE_element = 3
Field Value
RULE_note
public const int RULE_note = 15
Field Value
RULE_noteInChord
public const int RULE_noteInChord = 17
Field Value
RULE_octave
public const int RULE_octave = 21
Field Value
RULE_ornament
public const int RULE_ornament = 25
Field Value
RULE_ornamentParams
public const int RULE_ornamentParams = 27
Field Value
RULE_ornamentType
public const int RULE_ornamentType = 26
Field Value
RULE_partDirective
public const int RULE_partDirective = 11
Field Value
RULE_pitch
public const int RULE_pitch = 19
Field Value
RULE_polyphonicBlock
public const int RULE_polyphonicBlock = 4
Field Value
RULE_rampDuration
public const int RULE_rampDuration = 7
Field Value
RULE_rest
public const int RULE_rest = 18
Field Value
RULE_sectionDirective
public const int RULE_sectionDirective = 10
Field Value
RULE_sequence
public const int RULE_sequence = 0
Field Value
RULE_tempoDirective
public const int RULE_tempoDirective = 8
Field Value
RULE_tie
public const int RULE_tie = 24
Field Value
RULE_timeSignature
public const int RULE_timeSignature = 1
Field Value
RULE_voice
public const int RULE_voice = 2
Field Value
SECTION
public const int SECTION = 28
Field Value
SHARP
public const int SHARP = 19
Field Value
SLASH
public const int SLASH = 1
Field Value
STRING
public const int STRING = 24
Field Value
TEMPO
public const int TEMPO = 26
Field Value
TILDE
public const int TILDE = 17
Field Value
TO
public const int TO = 33
Field Value
TRILL
public const int TRILL = 35
Field Value
TURN
public const int TURN = 37
Field Value
WS
public const int WS = 40
Field Value
_ATN
public static readonly ATN _ATN
Field Value
- ATN
decisionToDFA
protected static DFA[] decisionToDFA
Field Value
- DFA[]
ruleNames
public static readonly string[] ruleNames
Field Value
- string[]
sharedContextCache
protected static PredictionContextCache sharedContextCache
Field Value
- PredictionContextCache
Properties
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.
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.
Methods
accidental()
[RuleVersion(0)]
public MusicNotationParser.AccidentalContext accidental()
Returns
bpmDirective()
[RuleVersion(0)]
public MusicNotationParser.BpmDirectiveContext bpmDirective()
Returns
characterDirective()
[RuleVersion(0)]
public MusicNotationParser.CharacterDirectiveContext characterDirective()
Returns
chord()
[RuleVersion(0)]
public MusicNotationParser.ChordContext chord()
Returns
directive()
[RuleVersion(0)]
public MusicNotationParser.DirectiveContext directive()
Returns
directiveValue()
[RuleVersion(0)]
public MusicNotationParser.DirectiveValueContext directiveValue()
Returns
duration()
[RuleVersion(0)]
public MusicNotationParser.DurationContext duration()
Returns
durationValue()
[RuleVersion(0)]
public MusicNotationParser.DurationValueContext durationValue()
Returns
dynamicsDirective()
[RuleVersion(0)]
public MusicNotationParser.DynamicsDirectiveContext dynamicsDirective()
Returns
dynamicsValue()
[RuleVersion(0)]
public MusicNotationParser.DynamicsValueContext dynamicsValue()
Returns
element()
[RuleVersion(0)]
public MusicNotationParser.ElementContext element()
Returns
note()
[RuleVersion(0)]
public MusicNotationParser.NoteContext note()
Returns
noteInChord()
[RuleVersion(0)]
public MusicNotationParser.NoteInChordContext noteInChord()
Returns
octave()
[RuleVersion(0)]
public MusicNotationParser.OctaveContext octave()
Returns
ornament()
[RuleVersion(0)]
public MusicNotationParser.OrnamentContext ornament()
Returns
ornamentParams()
[RuleVersion(0)]
public MusicNotationParser.OrnamentParamsContext ornamentParams()
Returns
ornamentType()
[RuleVersion(0)]
public MusicNotationParser.OrnamentTypeContext ornamentType()
Returns
partDirective()
[RuleVersion(0)]
public MusicNotationParser.PartDirectiveContext partDirective()
Returns
pitch()
[RuleVersion(0)]
public MusicNotationParser.PitchContext pitch()
Returns
polyphonicBlock()
[RuleVersion(0)]
public MusicNotationParser.PolyphonicBlockContext polyphonicBlock()
Returns
rampDuration()
[RuleVersion(0)]
public MusicNotationParser.RampDurationContext rampDuration()
Returns
rest()
[RuleVersion(0)]
public MusicNotationParser.RestContext rest()
Returns
sectionDirective()
[RuleVersion(0)]
public MusicNotationParser.SectionDirectiveContext sectionDirective()
Returns
sequence()
[RuleVersion(0)]
public MusicNotationParser.SequenceContext sequence()
Returns
tempoDirective()
[RuleVersion(0)]
public MusicNotationParser.TempoDirectiveContext tempoDirective()
Returns
tie()
[RuleVersion(0)]
public MusicNotationParser.TieContext tie()
Returns
timeSignature()
[RuleVersion(0)]
public MusicNotationParser.TimeSignatureContext timeSignature()
Returns
voice()
[RuleVersion(0)]
public MusicNotationParser.VoiceContext voice()