fr.umlv.tatoo.cc.parser.lr
Class LR1ClosureComputer

java.lang.Object
  extended by fr.umlv.tatoo.cc.parser.lr.LR1ClosureComputer
All Implemented Interfaces:
NodeClosureComputer<LR1Item>

public class LR1ClosureComputer
extends Object
implements NodeClosureComputer<LR1Item>

Author:
jcervell

Constructor Summary
LR1ClosureComputer(Grammar grammar, GrammarSets grammarSets, TerminalDecl eof)
           
 
Method Summary
 Closure<LR1Item> getClosure(LR1Item p)
          Gives the closure of the dotted non terminal of item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LR1ClosureComputer

public LR1ClosureComputer(Grammar grammar,
                          GrammarSets grammarSets,
                          TerminalDecl eof)
Method Detail

getClosure

public Closure<LR1Item> getClosure(LR1Item p)
Description copied from interface: NodeClosureComputer
Gives the closure of the dotted non terminal of item

Specified by:
getClosure in interface NodeClosureComputer<LR1Item>
Parameters:
p - the item containing the non terminal
Returns:
the closure