Package ca.phon.phontalk.parser
Class OrthographyTreeBuilder
- All Implemented Interfaces:
Visitor<OrthoElement>
Build contents of phonetic group tree from
phon Orthography
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTerminator
(org.antlr.runtime.tree.CommonTree parent, String type) Add a terminatorvoid
buildTree
(Stack<org.antlr.runtime.tree.CommonTree> uttNodeStack, org.antlr.runtime.tree.CommonTree parent, Orthography ortho) void
Generic, i.e., fallback, processing method.org.antlr.runtime.tree.CommonTree
void
visitComment
(OrthoComment comment) void
visitEvent
(OrthoEvent event) void
visitPunct
(OrthoPunct punct) void
void
visitWordnet
(OrthoWordnet wordnet) Methods inherited from class ca.phon.visitor.VisitorAdapter
visit
-
Constructor Details
-
OrthographyTreeBuilder
public OrthographyTreeBuilder()
-
-
Method Details
-
buildTree
public void buildTree(Stack<org.antlr.runtime.tree.CommonTree> uttNodeStack, org.antlr.runtime.tree.CommonTree parent, Orthography ortho) -
fallbackVisit
Description copied from class:VisitorAdapter
Generic, i.e., fallback, processing method.- Specified by:
fallbackVisit
in classVisitorAdapter<OrthoElement>
-
visitWordnet
-
visitWord
-
visitEvent
-
visitComment
-
visitPunct
-
getTerminator
public org.antlr.runtime.tree.CommonTree getTerminator() -
addTerminator
Add a terminator
-