fr.umlv.tatoo.cc.parser.slr
Class LR0ClosureComputer
java.lang.Object
fr.umlv.tatoo.cc.parser.slr.LR0ClosureComputer
- All Implemented Interfaces:
- NodeClosureComputer<LR0Item>
public class LR0ClosureComputer
- extends Object
- implements NodeClosureComputer<LR0Item>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LR0ClosureComputer
public LR0ClosureComputer(Grammar grammar)
getClosure
public Closure<LR0Item> getClosure(LR0Item t)
- Description copied from interface:
NodeClosureComputer
- Gives the closure of the dotted non terminal of item
- Specified by:
getClosure
in interface NodeClosureComputer<LR0Item>
- Parameters:
t
- the item containing the non terminal
- Returns:
- the closure