edu.rice.cs.util.sexp
Class SExpParser

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

public class SExpParser
extends 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 List<SEList> parse(File f)
           
static List<SEList> parse(Reader r)
           
static List<SEList> parse(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 List<SEList> parse(File f)
                          throws SExpParseException,
                                 IOException
Throws:
SExpParseException
IOException

parse

public static List<SEList> parse(String s)
                          throws SExpParseException
Throws:
SExpParseException

parse

public static List<SEList> parse(Reader r)
                          throws SExpParseException
Throws:
SExpParseException