Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

pgj.gen.std
Class Grammar  view Grammar download Grammar.java

java.lang.Object
  extended bypgj.gen.std.Grammar

public class Grammar
extends java.lang.Object


Nested Class Summary
private  class Grammar.ClosureIteratorImpl
           
 
Field Summary
private  java.util.Map productionRules
           
private  ProductionRule start
           
private  int uniqueNumber
           
 
Constructor Summary
Grammar()
           
 
Method Summary
 void addProductionRule(ProductionRule rule)
           
private  void createParserStates(java.util.Set closureSet, Closure closure)
           
 ClosureIterator getClosureSet()
           
private  Closure getGoto(Closure closure, Symbol input)
           
private  void getOtherTerms(Closure closure, Term term)
           
 ProductionRuleIterator getProductionRules(Symbol nonterminal)
           
 ProductionRule getStart()
           
 void load(java.io.InputStream inStream)
           
 void load(java.io.Reader r)
           
 void setStart(ProductionRule start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uniqueNumber

private int uniqueNumber

start

private ProductionRule start

productionRules

private java.util.Map productionRules
Constructor Detail

Grammar

public Grammar()
Method Detail

setStart

public void setStart(ProductionRule start)

addProductionRule

public void addProductionRule(ProductionRule rule)

getProductionRules

public ProductionRuleIterator getProductionRules(Symbol nonterminal)

getClosureSet

public ClosureIterator getClosureSet()

getStart

public ProductionRule getStart()

load

public void load(java.io.InputStream inStream)
          throws java.io.IOException

load

public void load(java.io.Reader r)
          throws java.io.IOException

createParserStates

private void createParserStates(java.util.Set closureSet,
                                Closure closure)

getGoto

private Closure getGoto(Closure closure,
                        Symbol input)

getOtherTerms

private void getOtherTerms(Closure closure,
                           Term term)