edu.rice.cs.util.sexp
Class SExpParser

java.lang.Object
  extended by edu.rice.cs.util.sexp.SExpParser

public class SExpParser
extends java.lang.Object

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.

Author:
Jonathan Lugo, PLT Group

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

SExpParser

public SExpParser()
Method Detail

parse

public static java.util.List<SEList> parse(java.io.File f)
                                    throws SExpParseException,
                                           java.io.IOException
Throws:
SExpParseException
java.io.IOException

parse

public static java.util.List<SEList> parse(java.lang.String s)
                                    throws SExpParseException
Throws:
SExpParseException

parse

public static java.util.List<SEList> parse(java.io.Reader r)
                                    throws SExpParseException
Throws:
SExpParseException