Class ChordSymbolParser
[CLSCompliant(false)]
public class ChordSymbolParser : Parser, IRecognizer
- Inheritance
-
Recognizer<IToken, ParserATNSimulator>ParserChordSymbolParser
- 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
ChordSymbolParser(ITokenStream)
public ChordSymbolParser(ITokenStream input)
Parameters
inputITokenStream
ChordSymbolParser(ITokenStream, TextWriter, TextWriter)
public ChordSymbolParser(ITokenStream input, TextWriter output, TextWriter errorOutput)
Parameters
inputITokenStreamoutputTextWritererrorOutputTextWriter
Fields
ADD
public const int ADD = 9
Field Value
ALT
public const int ALT = 19
Field Value
AUG
public const int AUG = 15
Field Value
COMMA
public const int COMMA = 5
Field Value
DELTA
public const int DELTA = 18
Field Value
DIM
public const int DIM = 14
Field Value
DefaultVocabulary
public static readonly IVocabulary DefaultVocabulary
Field Value
- IVocabulary
FLAT
public const int FLAT = 7
Field Value
HALF_DIM
public const int HALF_DIM = 17
Field Value
INT
public const int INT = 23
Field Value
LPAREN
public const int LPAREN = 3
Field Value
MAJ
public const int MAJ = 12
Field Value
MIN
public const int MIN = 13
Field Value
MINUS
public const int MINUS = 8
Field Value
NO
public const int NO = 10
Field Value
OMIT
public const int OMIT = 11
Field Value
PITCH_NAME
public const int PITCH_NAME = 22
Field Value
POLYSEP
public const int POLYSEP = 1
Field Value
POWER
public const int POWER = 20
Field Value
RPAREN
public const int RPAREN = 4
Field Value
RULE_accidental
public const int RULE_accidental = 14
Field Value
RULE_addTone
public const int RULE_addTone = 9
Field Value
RULE_alteration
public const int RULE_alteration = 11
Field Value
RULE_chord
public const int RULE_chord = 2
Field Value
RULE_chordSuffix
public const int RULE_chordSuffix = 4
Field Value
RULE_extension
public const int RULE_extension = 8
Field Value
RULE_group
public const int RULE_group = 5
Field Value
RULE_groupItem
public const int RULE_groupItem = 6
Field Value
RULE_modifier
public const int RULE_modifier = 12
Field Value
RULE_note
public const int RULE_note = 13
Field Value
RULE_omitTone
public const int RULE_omitTone = 10
Field Value
RULE_polychord
public const int RULE_polychord = 1
Field Value
RULE_quality
public const int RULE_quality = 7
Field Value
RULE_slashBass
public const int RULE_slashBass = 3
Field Value
RULE_symbol
public const int RULE_symbol = 0
Field Value
SHARP
public const int SHARP = 6
Field Value
SIX_NINE
public const int SIX_NINE = 21
Field Value
SLASH
public const int SLASH = 2
Field Value
SUS
public const int SUS = 16
Field Value
WS
public const int WS = 24
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 ChordSymbolParser.AccidentalContext accidental()
Returns
addTone()
[RuleVersion(0)]
public ChordSymbolParser.AddToneContext addTone()
Returns
alteration()
[RuleVersion(0)]
public ChordSymbolParser.AlterationContext alteration()
Returns
chord()
[RuleVersion(0)]
public ChordSymbolParser.ChordContext chord()
Returns
chordSuffix()
[RuleVersion(0)]
public ChordSymbolParser.ChordSuffixContext chordSuffix()
Returns
extension()
[RuleVersion(0)]
public ChordSymbolParser.ExtensionContext extension()
Returns
group()
[RuleVersion(0)]
public ChordSymbolParser.GroupContext group()
Returns
groupItem()
[RuleVersion(0)]
public ChordSymbolParser.GroupItemContext groupItem()
Returns
modifier()
[RuleVersion(0)]
public ChordSymbolParser.ModifierContext modifier()
Returns
note()
[RuleVersion(0)]
public ChordSymbolParser.NoteContext note()
Returns
omitTone()
[RuleVersion(0)]
public ChordSymbolParser.OmitToneContext omitTone()
Returns
polychord()
[RuleVersion(0)]
public ChordSymbolParser.PolychordContext polychord()
Returns
quality()
[RuleVersion(0)]
public ChordSymbolParser.QualityContext quality()
Returns
slashBass()
[RuleVersion(0)]
public ChordSymbolParser.SlashBassContext slashBass()
Returns
symbol()
[RuleVersion(0)]
public ChordSymbolParser.SymbolContext symbol()