Class TalkBankCodeTreeBuilder

java.lang.Object
ca.phon.phontalk.parser.TalkBankCodeTreeBuilder

public class TalkBankCodeTreeBuilder extends Object
Builds ANTLR trees for various CHAT codes which have been enclosed inside parenthesis within the Orthography, Markers, Errors, and Repetition tiers of the record. This includes the elements k, error, and r for TalkBank.
  • Constructor Details

    • TalkBankCodeTreeBuilder

      public TalkBankCodeTreeBuilder()
  • Method Details

    • handleParentheticData

      public void handleParentheticData(org.antlr.runtime.tree.CommonTree tree, String d)
      Handle data in parenthesis.
    • addHappening

      public void addHappening(org.antlr.runtime.tree.CommonTree parent, String data)
      Add a happening element
    • addGenericElement

      public void addGenericElement(org.antlr.runtime.tree.CommonTree parent, String eleName, String eleData)
      Phon: (eleName,attr=val: data)
      Parameters:
      parent -
      eleName -
      eleData - may be null
    • addOverlap

      public void addOverlap(org.antlr.runtime.tree.CommonTree parent, String ovdata)
      Add an overlap element
    • addTagMarker

      public void addTagMarker(org.antlr.runtime.tree.CommonTree parent, String data)
    • addError

      public void addError(org.antlr.runtime.tree.CommonTree parent, String data)
      Add an error element
    • addUnderline

      public void addUnderline(org.antlr.runtime.tree.CommonTree parent, String data)
    • addItalic

      public void addItalic(org.antlr.runtime.tree.CommonTree parent, String data)
    • addCaElement

      public void addCaElement(org.antlr.runtime.tree.CommonTree parent, String data)
    • addCaDelimiter

      public void addCaDelimiter(org.antlr.runtime.tree.CommonTree parent, String data)
    • addInternalMedia

      public void addInternalMedia(org.antlr.runtime.tree.CommonTree parent, String data)
    • addAction

      public void addAction(org.antlr.runtime.tree.CommonTree parent, String data)
      Add an action element.
    • addLinker

      public void addLinker(org.antlr.runtime.tree.CommonTree parent, String lkType)
      Add a linker element
    • addPause

      public void addPause(org.antlr.runtime.tree.CommonTree parent, String data)
      Add a pause element
    • addMarker

      public void addMarker(org.antlr.runtime.tree.CommonTree parent, String data)
      Add a marker element
    • addOverlapPoint

      public void addOverlapPoint(org.antlr.runtime.tree.CommonTree parent, String data)
    • addGa

      public void addGa(org.antlr.runtime.tree.CommonTree parent, String type, String data)
      Add a 'ga' element
    • addRepetition

      public void addRepetition(org.antlr.runtime.tree.CommonTree parent, String times)
      Add a repetition element
    • addTextNode

      public void addTextNode(org.antlr.runtime.tree.CommonTree parent, String data)
      add a text node