public class BalanceChecker extends AbstractBalancingVisitor
NonTerminal
in the Grammar
.marked
Constructor and Description |
---|
BalanceChecker(ParenthesisModel model) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Grammar g) |
Integer |
c(NonTerminal n)
Returns the value of the c function for the nonterminal n.
|
Integer |
d(NonTerminal d) |
int |
d0(NonTerminal n) |
int |
dSample(NonTerminal n) |
void |
setC(NonTerminal n,
Integer c) |
void |
setD(NonTerminal n,
Integer d)
Sets the d value for the non terminal n to d
|
c, c, c, d, d, d
public BalanceChecker(ParenthesisModel model)
public void apply(Grammar g)
apply
in interface GrammarEntityVisitor
apply
in class AbstractGrammarEntityVisitor
public Integer c(NonTerminal n)
AbstractBalancingVisitor
c
in class AbstractBalancingVisitor
public Integer d(NonTerminal d)
d
in class AbstractBalancingVisitor
public int d0(NonTerminal n)
public int dSample(NonTerminal n)
public void setC(NonTerminal n, Integer c)
setC
in class AbstractBalancingVisitor
public void setD(NonTerminal n, Integer d)
AbstractBalancingVisitor
setD
in class AbstractBalancingVisitor
Copyright © 2008-2013 Mathias Schwarz.