Package ca.phon.phontalk.parser
Class TalkBankCodeTreeBuilder
java.lang.Object
ca.phon.phontalk.parser.TalkBankCodeTreeBuilder
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an action element.void
addCaDelimiter
(org.antlr.runtime.tree.CommonTree parent, String data) void
addCaElement
(org.antlr.runtime.tree.CommonTree parent, String data) void
Add an error elementvoid
Add a 'ga' elementvoid
addGenericElement
(org.antlr.runtime.tree.CommonTree parent, String eleName, String eleData) Phon: (eleName,attr=val: data)void
addHappening
(org.antlr.runtime.tree.CommonTree parent, String data) Add a happening elementvoid
addInternalMedia
(org.antlr.runtime.tree.CommonTree parent, String data) void
void
Add a linker elementvoid
Add a markerelement void
addOverlap
(org.antlr.runtime.tree.CommonTree parent, String ovdata) Add an overlap elementvoid
addOverlapPoint
(org.antlr.runtime.tree.CommonTree parent, String data) void
Add a pause elementvoid
addRepetition
(org.antlr.runtime.tree.CommonTree parent, String times) Add a repetition elementvoid
addTagMarker
(org.antlr.runtime.tree.CommonTree parent, String data) void
addTextNode
(org.antlr.runtime.tree.CommonTree parent, String data) add a text nodevoid
addUnderline
(org.antlr.runtime.tree.CommonTree parent, String data) void
handleParentheticData
(org.antlr.runtime.tree.CommonTree tree, String d) Handle data in parenthesis.
-
Constructor Details
-
TalkBankCodeTreeBuilder
public TalkBankCodeTreeBuilder()
-
-
Method Details
-
handleParentheticData
Handle data in parenthesis. -
addHappening
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 benull
-
addOverlap
Add an overlap element -
addTagMarker
-
addError
Add an error element -
addUnderline
-
addItalic
-
addCaElement
-
addCaDelimiter
-
addInternalMedia
-
addAction
Add an action element. -
addLinker
Add a linker element -
addPause
Add a pause element -
addMarker
Add a markerelement -
addOverlapPoint
-
addGa
Add a 'ga' element -
addRepetition
Add a repetition element -
addTextNode
add a text node
-