net.cscott.sdr.calls.grm
Class EmitJava
java.lang.Object
net.cscott.sdr.calls.grm.GrmVisitor<String>
net.cscott.sdr.calls.grm.EmitJava
public class EmitJava
- extends GrmVisitor<String>
Emit Java representation of post-processed natural language grammar
for calls.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final EmitJava INSTANCE
EmitJava
public EmitJava()
collect
public void collect(Program program,
List<RuleAndAction> l)
num
public int num(Grm g)
emit
public String emit()
paren
protected String paren(Grm g1,
Grm g2)
visit
public String visit(Grm.Alt alt)
- Specified by:
visit
in class GrmVisitor<String>
visit
public String visit(Grm.Concat concat)
- Specified by:
visit
in class GrmVisitor<String>
visit
public String visit(Grm.Mult mult)
- Specified by:
visit
in class GrmVisitor<String>
visit
public String visit(Grm.Nonterminal nt)
- Specified by:
visit
in class GrmVisitor<String>
visit
public String visit(Grm.Terminal t)
- Specified by:
visit
in class GrmVisitor<String>
Copyright © 2006-2009 C. Scott Ananian