Package edu.rice.cs.util.sexp

Interface Summary
Atom There are different kinds of atoms: text, boolean, number.
SEListVisitor<Ret> The usual generically typed visitor for functional lists.
SExp SExp ::= Atom | SEList SEList ::= Empty | Cons(SExp, SEList) Atom ::= text | number | boolean text ::= string | symbol string ::= "non-quote-char*" symbol ::= non-special-char* non-quote-char ::= alphanumeric | escapes | white-sp-char | other escapes ::= \" | \\ white-sp-char ::= ascii chars from 0-32 boolean ::= true | false number ::= digit* {.
SExpVisitor<Ret> Just your every-day visitor.
Tokens A common namespace for the token classes.
 

Class Summary
BoolAtom  
Cons  
Empty  
Lexer  
NumberAtom  
QuotedTextAtom this type of text atom is mostly like its super class except its string representation includes the sourrounding quotes and the instances of the characters: \ " etc are turned into their corresponding escape character sequences.
SEList  
SExpParser This parser is not meant to be instantiated.
SExpParser.ParseHelper A new helper is instantiated for each time the user wants to parse data.
SExpParserTest A JUnit test case class.
TextAtom  
Tokens.BackSlashToken  
Tokens.BooleanToken Words include any text (including symbols) that is not a number, a backslash, or a quote character.
Tokens.LeftParenToken  
Tokens.NumberToken Numbers are string s of only digits (0-9)
Tokens.QuotedTextToken This token is handled as a unit by the lexer.
Tokens.RightParenToken  
Tokens.SExpToken These tokens are designed to be compared using the == operator with (, ), ", and \.
Tokens.WordToken Words include any text (including symbols) that is not a number, a backslash, or a quote character.
TokensTest Test class for Tokens.java in this package.
 

Exception Summary
LexingException This exception is used by the lexer.
SExpParseException  
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.