make Parser implement Serializable
[sbp.git] / src / edu / berkeley / sbp / Parser.java
index 5f6e252..6b9bad7 100644 (file)
@@ -8,7 +8,7 @@ import java.io.*;
 import java.util.*;
 
 /** a parser which translates an Input<Token> into a Forest<NodeType> */
-public abstract class Parser<Token, NodeType> {
+public abstract class Parser<Token, NodeType> implements Serializable {
 
     final Table pt;
 
@@ -106,7 +106,7 @@ public abstract class Parser<Token, NodeType> {
     // Table //////////////////////////////////////////////////////////////////////////////
 
     /** an SLR(1) parse table which may contain conflicts */
-    class Table extends Grammar<Token> implements Serializable {
+    class Table implements Serializable {
 
         /** the start state */
         final State<Token>   start;