fr.umlv.tatoo.cc.parser.table
Class GrammarAugmenter

java.lang.Object
  extended by fr.umlv.tatoo.cc.parser.table.GrammarAugmenter
Direct Known Subclasses:
LRGrammarAugmenter, SLRGrammarAugmenter

public abstract class GrammarAugmenter
extends Object


Constructor Summary
GrammarAugmenter()
           
 
Method Summary
static Grammar buildGrammar(Collection<? extends ProductionDecl> productions, Set<? extends NonTerminalDecl> starts, TerminalDecl eof, GrammarAugmenter factory)
           
abstract  ProductionDecl getAugmentingProduction(NonTerminalDecl start, TerminalDecl eof)
           
 NonTerminalDecl getNewRoot()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrammarAugmenter

public GrammarAugmenter()
Method Detail

getAugmentingProduction

public abstract ProductionDecl getAugmentingProduction(NonTerminalDecl start,
                                                       TerminalDecl eof)

buildGrammar

public static Grammar buildGrammar(Collection<? extends ProductionDecl> productions,
                                   Set<? extends NonTerminalDecl> starts,
                                   TerminalDecl eof,
                                   GrammarAugmenter factory)

getNewRoot

public NonTerminalDecl getNewRoot()