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.
  • Field Details

    • tokenNames

      public static final String[] 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

      protected Stack<IPAParser.transcription_scope> transcription_stack
    • word_stack

      protected Stack<IPAParser.word_scope> word_stack
    • phonex_matcher_ref_stack

      protected Stack<IPAParser.phonex_matcher_ref_scope> phonex_matcher_ref_stack
    • base_phone_stack

      protected Stack<IPAParser.base_phone_scope> base_phone_stack
    • prefix_section_stack

      protected Stack<IPAParser.prefix_section_scope> prefix_section_stack
    • prefix_diacritic_stack

      protected Stack<IPAParser.prefix_diacritic_scope> prefix_diacritic_stack
    • suffix_section_stack

      protected Stack<IPAParser.suffix_section_scope> suffix_section_stack
    • suffix_diacritic_stack

      protected Stack<IPAParser.suffix_diacritic_scope> suffix_diacritic_stack
    • dfa7

      protected IPAParser.DFA7 dfa7
    • dfa17

      protected IPAParser.DFA17 dfa17
    • dfa13

      protected IPAParser.DFA13 dfa13
    • dfa16

      protected IPAParser.DFA16 dfa16
    • dfa23

      protected IPAParser.DFA23 dfa23
    • dfa29

      protected IPAParser.DFA29 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)
    • IPAParser

      public IPAParser(org.antlr.runtime.TokenStream input, org.antlr.runtime.RecognizerSharedState state)
  • Method Details

    • getDelegates

      public org.antlr.runtime.Parser[] getDelegates()
    • getTokenNames

      public String[] getTokenNames()
      Overrides:
      getTokenNames in class org.antlr.runtime.BaseRecognizer
    • getGrammarFileName

      public String getGrammarFileName()
      Overrides:
      getGrammarFileName in class org.antlr.runtime.BaseRecognizer
    • reportError

      public void reportError(org.antlr.runtime.RecognitionException e)
      Overrides:
      reportError in class org.antlr.runtime.BaseRecognizer
    • transcription

      public final IPATranscript transcription() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • word

      public final IPATranscript word() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • word_element

      public final IPAElement word_element() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • stress

      public final StressMarker stress() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • intra_word_pause

      public final IntraWordPause intra_word_pause() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • syllable_boundary

      public final IPAElement syllable_boundary() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • word_net_marker

      public final IPAElement word_net_marker() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • phonex_matcher_ref

      public final IPAElement phonex_matcher_ref() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • word_boundary

      public final IPAElement word_boundary() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • pause

      public final Pause pause() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • pause_length

      public final PauseLength pause_length() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • phone

      public final IPAElement phone() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • base_phone

      public final Phone base_phone() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • single_phone

      public final Phone single_phone() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • prefix_section

      public final List<Diacritic> prefix_section() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • prefix_diacritic

      public final Diacritic prefix_diacritic() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • suffix_section

      public final List<Diacritic> suffix_section() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • suffix_diacritic

      public final Diacritic suffix_diacritic() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • sctype

      public final IPAParser.sctype_return sctype() throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException