checkpoint
[sbp.git] / src / edu / berkeley / sbp / Element.java
1 package edu.berkeley.sbp;
2 import edu.berkeley.sbp.util.*;
3 import edu.berkeley.sbp.*;
4 import edu.berkeley.sbp.*;
5 import java.io.*;
6 import java.util.*;
7 import java.lang.reflect.*;
8 import java.lang.ref.*;
9
10 /** the root superclass for all components of the grammar (terminals, nonterminals, literals, etc) */
11 public abstract class Element {
12
13     abstract StringBuffer toString(StringBuffer sb);
14
15     /** if this element always matches exactly one token, return a topology covering exactly those possible tokens, otherwise <tt>null</tt> */
16     Forest epsilonForm() { return null; }
17
18 }