fr.umlv.tatoo.cc.parser.lr
Class LR1ClosureComputer
java.lang.Object
fr.umlv.tatoo.cc.parser.lr.LR1ClosureComputer
- All Implemented Interfaces:
- NodeClosureComputer<LR1Item>
public class LR1ClosureComputer
- extends Object
- implements NodeClosureComputer<LR1Item>
- Author:
- jcervell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LR1ClosureComputer
public LR1ClosureComputer(Grammar grammar,
GrammarSets grammarSets,
TerminalDecl eof)
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