Packages

abstract class Pasted extends AnyRef

If it looks like they're pasting in a scala interpreter transcript, remove all the formatting we inserted so we can make some sense of it.

Most of the interesting code in here is due to my goal of "paste idempotence" i.e. the transcript resulting from pasting a transcript should itself be pasteable and should achieve the same result.

Source
Pasted.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Pasted
  2. AnyRef
  3. 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 Pasted(prompt: String)

Abstract Value Members

  1. abstract def echo(message: String): Unit
  2. abstract def interpret(line: String): Result

Concrete Value Members

  1. val AltPromptString: String
  2. val ContinuePrompt: String
  3. val ContinueString: String
  4. val PromptString: String
  5. val anyPrompt: Regex
  6. def apply(lines: TraversableOnce[String]): Option[String]

    Commands start on lines beginning with "scala>" and each successive line which begins with the continuation string is appended to that command.

    Commands start on lines beginning with "scala>" and each successive line which begins with the continuation string is appended to that command. Everything else is discarded. When the end of the transcript is spotted, all the commands are replayed.

  7. def isPromptOnly(line: String): Boolean
  8. def isPrompted(line: String): Boolean
  9. def matchesContinue(line: String): Boolean
  10. def matchesPrompt(line: String): Boolean
  11. def running: Boolean
  12. def transcript(lines: TraversableOnce[String]): Option[String]
  13. def unapply(line: String): Boolean