Commit 0ea05beb authored by Alexandru Dura's avatar Alexandru Dura
Browse files

Expose the inner rule in an ItemLabel

parent d7933430
......@@ -20,4 +20,8 @@ public class Category {
public boolean isTerminal() {
return isTerminal;
}
public String getName() {
return name;
}
}
......@@ -25,4 +25,12 @@ public class ItemLabel extends NodeLabel {
public DottedRule getDottedRule() {
return item;
}
public Rule getRule(Grammar g) {
return g.getRule(item.r);
}
public int getDotPosition() {
return item.dot;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment