|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.util.sexp.SExpParser
public class SExpParser
This parser is not meant to be instantiated. It has static methods that do all the work for you. These parse methods take in the data that is to be parsed and simply returns an s-expression abstract syntax.
| Nested Class Summary | |
|---|---|
private static class |
SExpParser.ParseHelper
A new helper is instantiated for each time the user wants to parse data. |
private static class |
SExpParser.PrivateParseException
This runtime exception makes it easier to write the parser since the methods of the helper class won't need to constantly declare the SExpParseException to be thrown. |
| Constructor Summary | |
|---|---|
SExpParser()
|
|
| Method Summary | |
|---|---|
static java.util.List<SEList> |
parse(java.io.File f)
|
static java.util.List<SEList> |
parse(java.io.Reader r)
|
static java.util.List<SEList> |
parse(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SExpParser()
| Method Detail |
|---|
public static java.util.List<SEList> parse(java.io.File f)
throws SExpParseException,
java.io.IOException
SExpParseException
java.io.IOException
public static java.util.List<SEList> parse(java.lang.String s)
throws SExpParseException
SExpParseException
public static java.util.List<SEList> parse(java.io.Reader r)
throws SExpParseException
SExpParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||