net.cscott.sdr.calls.grm
Class SimplifyGrm
java.lang.Object
net.cscott.sdr.calls.grm.GrmVisitor<Grm>
net.cscott.sdr.calls.grm.SimplifyGrm
public class SimplifyGrm
- extends GrmVisitor<Grm>
Basic optimizations for a grammar rule.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplifyGrm
public SimplifyGrm()
simplify
public static Grm simplify(Grm g)
visit
public Grm visit(Grm.Alt alt)
- Specified by:
visit
in class GrmVisitor<Grm>
visit
public Grm visit(Grm.Concat concat)
- Specified by:
visit
in class GrmVisitor<Grm>
visit
public Grm visit(Grm.Mult mult)
- Specified by:
visit
in class GrmVisitor<Grm>
visit
public Grm visit(Grm.Nonterminal nonterm)
- Specified by:
visit
in class GrmVisitor<Grm>
visit
public Grm visit(Grm.Terminal term)
- Specified by:
visit
in class GrmVisitor<Grm>
Copyright © 2006-2009 C. Scott Ananian