Packages

case class SExpPair(car: SExp, cdr: SExp, pos: Position) extends SExp with Product with Serializable

An s-expression is made of pairs, e.g., (foo bar) is represented as the pair with identifier foo as car and another pair -- with identifier bar as car and value nil as cdr -- as cdr. Pairs are pretty-printed when converted to string. i.e., (foo bar) is stringified as (foo bar) and not (foo . (bar . ()))

Linear Supertypes
Serializable, Serializable, SExp, MemoHashCode, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SExpPair
  2. Serializable
  3. Serializable
  4. SExp
  5. MemoHashCode
  6. Product
  7. Equals
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SExpPair(car: SExp, cdr: SExp, pos: Position)

Value Members

  1. val car: SExp
  2. val cdr: SExp
  3. def hashCode(): Int

    Memoized default hash code

    Memoized default hash code

    Definition Classes
    MemoHashCode → AnyRef → Any
  4. val pos: Position
    Definition Classes
    SExpPairSExp
  5. def toString(): String
    Definition Classes
    SExpPair → AnyRef → Any
  6. def toStringRest: String