sdr 0.7

net.cscott.sdr.calls.grm
Class SimplifyGrm

java.lang.Object
  extended by net.cscott.sdr.calls.grm.GrmVisitor<Grm>
      extended by net.cscott.sdr.calls.grm.SimplifyGrm

public class SimplifyGrm
extends GrmVisitor<Grm>

Basic optimizations for a grammar rule.


Constructor Summary
SimplifyGrm()
           
 
Method Summary
static Grm simplify(Grm g)
           
 Grm visit(Grm.Alt alt)
           
 Grm visit(Grm.Concat concat)
           
 Grm visit(Grm.Mult mult)
           
 Grm visit(Grm.Nonterminal nonterm)
           
 Grm visit(Grm.Terminal term)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplifyGrm

public SimplifyGrm()
Method Detail

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>

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian