scala.tools.nsc.interpreter

ReplTokens

abstract class ReplTokens extends AnyRef

This began as an attempt at a completely minimal pretty printer for a token stream, but as it turns out it's "minimal, pretty, scala: pick any two." So now it's an unattractive hybrid between minimalism and other things. Still, it's a big improvement on the way I was printing source in the repl, so in it goes.

Source
ReplTokens.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ReplTokens
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReplTokens()

Type Members

  1. trait Brackets extends ReplToken

  2. sealed abstract class Cozy extends AnyRef

  3. trait CozyWithLetters extends ReplToken

  4. case class Id(name: String) extends ReplToken with Product with Serializable

  5. trait InsistCozy extends ReplToken with InsistCozyLeft with InsistCozyRight

  6. trait InsistCozyLeft extends ReplToken

  7. trait InsistCozyRight extends ReplToken

  8. trait InsistSpaced extends ReplToken

  9. case class Lit[T](value: T) extends ReplToken with Product with Serializable

  10. sealed abstract class ReplToken extends AnyRef

  11. case class Token(value: Int, str: String) extends ReplToken with Product with Serializable

  12. class Tokenizer extends AnyRef

Abstract Value Members

  1. abstract val global: Global

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. object <*--| extends Cozy with Product with Serializable

  5. object <*> extends Cozy with Product with Serializable

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. object At extends ReplToken with InsistCozyRight with Product with Serializable

  9. object Colon extends ReplToken with Product with Serializable

  10. object Comma extends ReplToken with InsistCozyLeft with Product with Serializable

  11. object Cozy extends AnyRef

  12. object Dot extends ReplToken with InsistCozy with Product with Serializable

  13. object Eof extends ReplToken with Product with Serializable

  14. object ErrorToken extends ReplToken with Product with Serializable

  15. object False extends ReplToken with Product with Serializable

  16. object Import extends ReplToken with Product with Serializable

  17. object LBrace extends ReplToken with InsistSpaced with Product with Serializable

  18. object LBracket extends ReplToken with Brackets with Product with Serializable

  19. object LParen extends ReplToken with Product with Serializable

  20. object Newline extends ReplToken with InsistCozy with Product with Serializable

  21. object Newlines extends ReplToken with InsistCozy with Product with Serializable

  22. object Null extends ReplToken with Product with Serializable

  23. object RBrace extends ReplToken with InsistSpaced with Product with Serializable

  24. object RBracket extends ReplToken with Brackets with Product with Serializable

  25. object RParen extends ReplToken with Product with Serializable

  26. object Semi extends ReplToken with Product with Serializable

  27. object Subtype extends ReplToken with InsistSpaced with Product with Serializable

  28. object Supertype extends ReplToken with InsistSpaced with Product with Serializable

  29. object True extends ReplToken with Product with Serializable

  30. object ViewBound extends ReplToken with InsistSpaced with Product with Serializable

  31. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  32. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  35. def escape(text: String): String

  36. def escapedChar(ch: Char): String

    Annotations
    @switch()
  37. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  39. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  40. def isAlphaId(t: ReplToken): Boolean

  41. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  42. def isOperatorId(t: ReplToken): Boolean

  43. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  44. final def notify(): Unit

    Definition Classes
    AnyRef
  45. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  46. def prettyPrint(tokens: TraversableOnce[ReplToken]): Unit

  47. def prettyPrintRaw(tokens: TraversableOnce[ReplToken]): Unit

  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  49. def toString(): String

    Definition Classes
    AnyRef → Any
  50. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  51. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  52. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  53. def withRawTokens[T](body: ⇒ T): T

  54. object |--*--| extends Cozy with Product with Serializable

  55. object |--*> extends Cozy with Product with Serializable

Inherited from AnyRef

Inherited from Any