edu.rice.cs.util.sexp
Interface SExp
- All Known Subinterfaces:
- Atom
- All Known Implementing Classes:
- BoolAtom, Cons, Empty, NumberAtom, SEList, TextAtom
public interface 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* {. digit*}
accept
<Ret> Ret accept(SExpVisitor<Ret> v)