rename edu.berkeley.sbp.Cache to Grammar
[sbp.git] / src / edu / berkeley / sbp / Parser.java
index 64ad67a..de96760 100644 (file)
@@ -24,7 +24,7 @@ public abstract class Parser<Token, NodeType> {
     public abstract Topology<Token> emptyTopology();
 
     public String toString() { return pt.toString(); }
-    Cache cache() { return pt; }
+    Grammar cache() { return pt; }
 
     /** parse <tt>input</tt>, and return the shared packed parse forest (or throw an exception) */
     public Forest<NodeType> parse(Input<Token> input) throws IOException, ParseFailed {
@@ -76,7 +76,7 @@ public abstract class Parser<Token, NodeType> {
     // Table //////////////////////////////////////////////////////////////////////////////
 
     /** an SLR(1) parse table which may contain conflicts */
-    class Table extends Cache<Token> {
+    class Table extends Grammar<Token> {
 
         /** the start state */
         final State<Token>   start;