Package ca.phon.ipa.parser
Class IPAParser
java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.Parser
ca.phon.ipa.parser.IPAParser
public class IPAParser
extends org.antlr.runtime.Parser
Grammar for parsing IPA transcriptions encoded in UTF-8.
Return value is a list of (un-syllabified) ca.phon.phone.Phone objects.
This class is meant to be used with a custom PhoneLexer which acts
as a TokenSource for this parser.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected class
protected class
protected class
protected class
protected class
protected class
protected static class
protected static class
protected static class
static class
protected static class
protected static class
protected static class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
protected Stack<IPAParser.base_phone_scope>
static final int
static final int
static final int
static final int
static final int
static final int
protected IPAParser.DFA13
protected IPAParser.DFA16
protected IPAParser.DFA17
protected IPAParser.DFA23
protected IPAParser.DFA29
protected IPAParser.DFA7
static final int
static final int
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final org.antlr.runtime.BitSet
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected Stack<IPAParser.phonex_matcher_ref_scope>
static final int
static final int
protected Stack<IPAParser.prefix_diacritic_scope>
protected Stack<IPAParser.prefix_section_scope>
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected Stack<IPAParser.suffix_diacritic_scope>
protected Stack<IPAParser.suffix_section_scope>
static final String[]
static final int
protected Stack<IPAParser.transcription_scope>
static final int
protected Stack<IPAParser.word_scope>
Fields inherited from class org.antlr.runtime.Parser
input
Fields inherited from class org.antlr.runtime.BaseRecognizer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Phone
org.antlr.runtime.Parser[]
String[]
final IntraWordPause
final Pause
pause()
final PauseLength
final IPAElement
phone()
final IPAElement
final Diacritic
void
reportError
(org.antlr.runtime.RecognitionException e) final IPAParser.sctype_return
sctype()
final Phone
final StressMarker
stress()
final Diacritic
final IPAElement
final IPATranscript
final IPATranscript
word()
final IPAElement
final IPAElement
final IPAElement
Methods inherited from class org.antlr.runtime.Parser
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOut
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, failed, getBacktrackingLevel, getErrorHeader, getErrorMessage, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, setBacktrackingLevel, toStrings, traceIn, traceOut
-
Field Details
-
tokenNames
-
EOF
public static final int EOF- See Also:
-
ALIGNMENT
public static final int ALIGNMENT- See Also:
-
BACKSLASH
public static final int BACKSLASH- See Also:
-
CLOSE_BRACE
public static final int CLOSE_BRACE- See Also:
-
CLOSE_PAREN
public static final int CLOSE_PAREN- See Also:
-
COLON
public static final int COLON- See Also:
-
COMBINING_DIACRITIC
public static final int COMBINING_DIACRITIC- See Also:
-
CONSONANT
public static final int CONSONANT- See Also:
-
COVER_SYMBOL
public static final int COVER_SYMBOL- See Also:
-
DIGIT
public static final int DIGIT- See Also:
-
GLIDE
public static final int GLIDE- See Also:
-
GROUP_NAME
public static final int GROUP_NAME- See Also:
-
HALF_LONG
public static final int HALF_LONG- See Also:
-
INTRA_WORD_PAUSE
public static final int INTRA_WORD_PAUSE- See Also:
-
LIGATURE
public static final int LIGATURE- See Also:
-
LONG
public static final int LONG- See Also:
-
MAJOR_GROUP
public static final int MAJOR_GROUP- See Also:
-
MINOR_GROUP
public static final int MINOR_GROUP- See Also:
-
OPEN_BRACE
public static final int OPEN_BRACE- See Also:
-
OPEN_PAREN
public static final int OPEN_PAREN- See Also:
-
PERIOD
public static final int PERIOD- See Also:
-
PLUS
public static final int PLUS- See Also:
-
PREFIX_DIACRITIC
public static final int PREFIX_DIACRITIC- See Also:
-
PRIMARY_STRESS
public static final int PRIMARY_STRESS- See Also:
-
ROLE_REVERSAL
public static final int ROLE_REVERSAL- See Also:
-
SANDHI
public static final int SANDHI- See Also:
-
SCTYPE
public static final int SCTYPE- See Also:
-
SECONDARY_STRESS
public static final int SECONDARY_STRESS- See Also:
-
SPACE
public static final int SPACE- See Also:
-
SUFFIX_DIACRITIC
public static final int SUFFIX_DIACRITIC- See Also:
-
TONE_NUMBER
public static final int TONE_NUMBER- See Also:
-
VOWEL
public static final int VOWEL- See Also:
-
transcription_stack
-
word_stack
-
phonex_matcher_ref_stack
-
base_phone_stack
-
prefix_section_stack
-
prefix_diacritic_stack
-
suffix_section_stack
-
suffix_diacritic_stack
-
dfa7
-
dfa17
-
dfa13
-
dfa16
-
dfa23
-
dfa29
-
FOLLOW_word_in_transcription50
public static final org.antlr.runtime.BitSet FOLLOW_word_in_transcription50 -
FOLLOW_word_boundary_in_transcription59
public static final org.antlr.runtime.BitSet FOLLOW_word_boundary_in_transcription59 -
FOLLOW_word_in_transcription74
public static final org.antlr.runtime.BitSet FOLLOW_word_in_transcription74 -
FOLLOW_word_element_in_word119
public static final org.antlr.runtime.BitSet FOLLOW_word_element_in_word119 -
FOLLOW_COLON_in_word128
public static final org.antlr.runtime.BitSet FOLLOW_COLON_in_word128 -
FOLLOW_sctype_in_word132
public static final org.antlr.runtime.BitSet FOLLOW_sctype_in_word132 -
FOLLOW_pause_in_word150
public static final org.antlr.runtime.BitSet FOLLOW_pause_in_word150 -
FOLLOW_stress_in_word_element183
public static final org.antlr.runtime.BitSet FOLLOW_stress_in_word_element183 -
FOLLOW_phone_in_word_element191
public static final org.antlr.runtime.BitSet FOLLOW_phone_in_word_element191 -
FOLLOW_syllable_boundary_in_word_element199
public static final org.antlr.runtime.BitSet FOLLOW_syllable_boundary_in_word_element199 -
FOLLOW_word_net_marker_in_word_element207
public static final org.antlr.runtime.BitSet FOLLOW_word_net_marker_in_word_element207 -
FOLLOW_intra_word_pause_in_word_element215
public static final org.antlr.runtime.BitSet FOLLOW_intra_word_pause_in_word_element215 -
FOLLOW_phonex_matcher_ref_in_word_element223
public static final org.antlr.runtime.BitSet FOLLOW_phonex_matcher_ref_in_word_element223 -
FOLLOW_PRIMARY_STRESS_in_stress251
public static final org.antlr.runtime.BitSet FOLLOW_PRIMARY_STRESS_in_stress251 -
FOLLOW_SECONDARY_STRESS_in_stress259
public static final org.antlr.runtime.BitSet FOLLOW_SECONDARY_STRESS_in_stress259 -
FOLLOW_INTRA_WORD_PAUSE_in_intra_word_pause277
public static final org.antlr.runtime.BitSet FOLLOW_INTRA_WORD_PAUSE_in_intra_word_pause277 -
FOLLOW_PERIOD_in_syllable_boundary295
public static final org.antlr.runtime.BitSet FOLLOW_PERIOD_in_syllable_boundary295 -
FOLLOW_MINOR_GROUP_in_syllable_boundary303
public static final org.antlr.runtime.BitSet FOLLOW_MINOR_GROUP_in_syllable_boundary303 -
FOLLOW_MAJOR_GROUP_in_syllable_boundary311
public static final org.antlr.runtime.BitSet FOLLOW_MAJOR_GROUP_in_syllable_boundary311 -
FOLLOW_PLUS_in_word_net_marker329
public static final org.antlr.runtime.BitSet FOLLOW_PLUS_in_word_net_marker329 -
FOLLOW_SANDHI_in_word_net_marker337
public static final org.antlr.runtime.BitSet FOLLOW_SANDHI_in_word_net_marker337 -
FOLLOW_prefix_section_in_phonex_matcher_ref367
public static final org.antlr.runtime.BitSet FOLLOW_prefix_section_in_phonex_matcher_ref367 -
FOLLOW_BACKSLASH_in_phonex_matcher_ref370
public static final org.antlr.runtime.BitSet FOLLOW_BACKSLASH_in_phonex_matcher_ref370 -
FOLLOW_DIGIT_in_phonex_matcher_ref372
public static final org.antlr.runtime.BitSet FOLLOW_DIGIT_in_phonex_matcher_ref372 -
FOLLOW_COMBINING_DIACRITIC_in_phonex_matcher_ref377
public static final org.antlr.runtime.BitSet FOLLOW_COMBINING_DIACRITIC_in_phonex_matcher_ref377 -
FOLLOW_suffix_section_in_phonex_matcher_ref385
public static final org.antlr.runtime.BitSet FOLLOW_suffix_section_in_phonex_matcher_ref385 -
FOLLOW_prefix_section_in_phonex_matcher_ref396
public static final org.antlr.runtime.BitSet FOLLOW_prefix_section_in_phonex_matcher_ref396 -
FOLLOW_BACKSLASH_in_phonex_matcher_ref399
public static final org.antlr.runtime.BitSet FOLLOW_BACKSLASH_in_phonex_matcher_ref399 -
FOLLOW_OPEN_BRACE_in_phonex_matcher_ref401
public static final org.antlr.runtime.BitSet FOLLOW_OPEN_BRACE_in_phonex_matcher_ref401 -
FOLLOW_GROUP_NAME_in_phonex_matcher_ref403
public static final org.antlr.runtime.BitSet FOLLOW_GROUP_NAME_in_phonex_matcher_ref403 -
FOLLOW_CLOSE_BRACE_in_phonex_matcher_ref405
public static final org.antlr.runtime.BitSet FOLLOW_CLOSE_BRACE_in_phonex_matcher_ref405 -
FOLLOW_COMBINING_DIACRITIC_in_phonex_matcher_ref410
public static final org.antlr.runtime.BitSet FOLLOW_COMBINING_DIACRITIC_in_phonex_matcher_ref410 -
FOLLOW_suffix_section_in_phonex_matcher_ref418
public static final org.antlr.runtime.BitSet FOLLOW_suffix_section_in_phonex_matcher_ref418 -
FOLLOW_SPACE_in_word_boundary444
public static final org.antlr.runtime.BitSet FOLLOW_SPACE_in_word_boundary444 -
FOLLOW_ALIGNMENT_in_word_boundary452
public static final org.antlr.runtime.BitSet FOLLOW_ALIGNMENT_in_word_boundary452 -
FOLLOW_OPEN_PAREN_in_pause472
public static final org.antlr.runtime.BitSet FOLLOW_OPEN_PAREN_in_pause472 -
FOLLOW_pause_length_in_pause476
public static final org.antlr.runtime.BitSet FOLLOW_pause_length_in_pause476 -
FOLLOW_CLOSE_PAREN_in_pause478
public static final org.antlr.runtime.BitSet FOLLOW_CLOSE_PAREN_in_pause478 -
FOLLOW_PERIOD_in_pause_length498
public static final org.antlr.runtime.BitSet FOLLOW_PERIOD_in_pause_length498 -
FOLLOW_PERIOD_in_pause_length506
public static final org.antlr.runtime.BitSet FOLLOW_PERIOD_in_pause_length506 -
FOLLOW_PERIOD_in_pause_length508
public static final org.antlr.runtime.BitSet FOLLOW_PERIOD_in_pause_length508 -
FOLLOW_PERIOD_in_pause_length516
public static final org.antlr.runtime.BitSet FOLLOW_PERIOD_in_pause_length516 -
FOLLOW_PERIOD_in_pause_length518
public static final org.antlr.runtime.BitSet FOLLOW_PERIOD_in_pause_length518 -
FOLLOW_PERIOD_in_pause_length520
public static final org.antlr.runtime.BitSet FOLLOW_PERIOD_in_pause_length520 -
FOLLOW_single_phone_in_phone542
public static final org.antlr.runtime.BitSet FOLLOW_single_phone_in_phone542 -
FOLLOW_set_in_base_phone571
public static final org.antlr.runtime.BitSet FOLLOW_set_in_base_phone571 -
FOLLOW_COMBINING_DIACRITIC_in_base_phone584
public static final org.antlr.runtime.BitSet FOLLOW_COMBINING_DIACRITIC_in_base_phone584 -
FOLLOW_prefix_section_in_single_phone627
public static final org.antlr.runtime.BitSet FOLLOW_prefix_section_in_single_phone627 -
FOLLOW_base_phone_in_single_phone632
public static final org.antlr.runtime.BitSet FOLLOW_base_phone_in_single_phone632 -
FOLLOW_LIGATURE_in_single_phone637
public static final org.antlr.runtime.BitSet FOLLOW_LIGATURE_in_single_phone637 -
FOLLOW_base_phone_in_single_phone641
public static final org.antlr.runtime.BitSet FOLLOW_base_phone_in_single_phone641 -
FOLLOW_suffix_section_in_single_phone648
public static final org.antlr.runtime.BitSet FOLLOW_suffix_section_in_single_phone648 -
FOLLOW_prefix_diacritic_in_prefix_section686
public static final org.antlr.runtime.BitSet FOLLOW_prefix_diacritic_in_prefix_section686 -
FOLLOW_PREFIX_DIACRITIC_in_prefix_diacritic719
public static final org.antlr.runtime.BitSet FOLLOW_PREFIX_DIACRITIC_in_prefix_diacritic719 -
FOLLOW_COMBINING_DIACRITIC_in_prefix_diacritic724
public static final org.antlr.runtime.BitSet FOLLOW_COMBINING_DIACRITIC_in_prefix_diacritic724 -
FOLLOW_LIGATURE_in_prefix_diacritic732
public static final org.antlr.runtime.BitSet FOLLOW_LIGATURE_in_prefix_diacritic732 -
FOLLOW_SUFFIX_DIACRITIC_in_prefix_diacritic743
public static final org.antlr.runtime.BitSet FOLLOW_SUFFIX_DIACRITIC_in_prefix_diacritic743 -
FOLLOW_COMBINING_DIACRITIC_in_prefix_diacritic748
public static final org.antlr.runtime.BitSet FOLLOW_COMBINING_DIACRITIC_in_prefix_diacritic748 -
FOLLOW_set_in_prefix_diacritic756
public static final org.antlr.runtime.BitSet FOLLOW_set_in_prefix_diacritic756 -
FOLLOW_suffix_diacritic_in_suffix_section799
public static final org.antlr.runtime.BitSet FOLLOW_suffix_diacritic_in_suffix_section799 -
FOLLOW_LIGATURE_in_suffix_diacritic839
public static final org.antlr.runtime.BitSet FOLLOW_LIGATURE_in_suffix_diacritic839 -
FOLLOW_SUFFIX_DIACRITIC_in_suffix_diacritic844
public static final org.antlr.runtime.BitSet FOLLOW_SUFFIX_DIACRITIC_in_suffix_diacritic844 -
FOLLOW_COMBINING_DIACRITIC_in_suffix_diacritic849
public static final org.antlr.runtime.BitSet FOLLOW_COMBINING_DIACRITIC_in_suffix_diacritic849 -
FOLLOW_LIGATURE_in_suffix_diacritic863
public static final org.antlr.runtime.BitSet FOLLOW_LIGATURE_in_suffix_diacritic863 -
FOLLOW_PREFIX_DIACRITIC_in_suffix_diacritic867
public static final org.antlr.runtime.BitSet FOLLOW_PREFIX_DIACRITIC_in_suffix_diacritic867 -
FOLLOW_COMBINING_DIACRITIC_in_suffix_diacritic872
public static final org.antlr.runtime.BitSet FOLLOW_COMBINING_DIACRITIC_in_suffix_diacritic872 -
FOLLOW_PREFIX_DIACRITIC_in_suffix_diacritic886
public static final org.antlr.runtime.BitSet FOLLOW_PREFIX_DIACRITIC_in_suffix_diacritic886 -
FOLLOW_ROLE_REVERSAL_in_suffix_diacritic890
public static final org.antlr.runtime.BitSet FOLLOW_ROLE_REVERSAL_in_suffix_diacritic890 -
FOLLOW_COMBINING_DIACRITIC_in_suffix_diacritic895
public static final org.antlr.runtime.BitSet FOLLOW_COMBINING_DIACRITIC_in_suffix_diacritic895 -
FOLLOW_TONE_NUMBER_in_suffix_diacritic909
public static final org.antlr.runtime.BitSet FOLLOW_TONE_NUMBER_in_suffix_diacritic909 -
FOLLOW_COMBINING_DIACRITIC_in_suffix_diacritic914
public static final org.antlr.runtime.BitSet FOLLOW_COMBINING_DIACRITIC_in_suffix_diacritic914 -
FOLLOW_LONG_in_suffix_diacritic928
public static final org.antlr.runtime.BitSet FOLLOW_LONG_in_suffix_diacritic928 -
FOLLOW_HALF_LONG_in_suffix_diacritic938
public static final org.antlr.runtime.BitSet FOLLOW_HALF_LONG_in_suffix_diacritic938 -
FOLLOW_SCTYPE_in_sctype963
public static final org.antlr.runtime.BitSet FOLLOW_SCTYPE_in_sctype963
-
-
Constructor Details
-
IPAParser
public IPAParser(org.antlr.runtime.TokenStream input)
-
-
Method Details
-
getDelegates
public org.antlr.runtime.Parser[] getDelegates() -
getTokenNames
- Overrides:
getTokenNames
in classorg.antlr.runtime.BaseRecognizer
-
getGrammarFileName
- Overrides:
getGrammarFileName
in classorg.antlr.runtime.BaseRecognizer
-
reportError
public void reportError(org.antlr.runtime.RecognitionException e) - Overrides:
reportError
in classorg.antlr.runtime.BaseRecognizer
-
transcription
- Throws:
org.antlr.runtime.RecognitionException
-
word
- Throws:
org.antlr.runtime.RecognitionException
-
word_element
- Throws:
org.antlr.runtime.RecognitionException
-
stress
- Throws:
org.antlr.runtime.RecognitionException
-
intra_word_pause
- Throws:
org.antlr.runtime.RecognitionException
-
syllable_boundary
- Throws:
org.antlr.runtime.RecognitionException
-
word_net_marker
- Throws:
org.antlr.runtime.RecognitionException
-
phonex_matcher_ref
- Throws:
org.antlr.runtime.RecognitionException
-
word_boundary
- Throws:
org.antlr.runtime.RecognitionException
-
pause
- Throws:
org.antlr.runtime.RecognitionException
-
pause_length
- Throws:
org.antlr.runtime.RecognitionException
-
phone
- Throws:
org.antlr.runtime.RecognitionException
-
base_phone
- Throws:
org.antlr.runtime.RecognitionException
-
single_phone
- Throws:
org.antlr.runtime.RecognitionException
-
prefix_section
- Throws:
org.antlr.runtime.RecognitionException
-
prefix_diacritic
- Throws:
org.antlr.runtime.RecognitionException
-
suffix_section
- Throws:
org.antlr.runtime.RecognitionException
-
suffix_diacritic
- Throws:
org.antlr.runtime.RecognitionException
-
sctype
- Throws:
org.antlr.runtime.RecognitionException
-