Trait

org.bitbucket.inkytonik.kiama.util

REPL

Related Doc: package util

Permalink

trait REPL extends REPLBase[REPLConfig]

General support for applications that implement read-eval-print loops (REPLs).

Source
REPL.scala
Linear Supertypes
REPLBase[REPLConfig], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. REPL
  2. REPLBase
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def banner: String

    Permalink

    Banner message that is printed before the REPL starts.

    Banner message that is printed before the REPL starts.

    Definition Classes
    REPLBase
  2. abstract def processline(source: Source, console: Console, config: REPLConfig): Option[REPLConfig]

    Permalink

    Process user input from the given source.

    Process user input from the given source. The return value allows the processing to optionally return a new configuration that will be used in subsequent processing. A return value of None indicates that no more lines from the current console should be processed.

    Definition Classes
    REPLBase

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createAndInitConfig(args: Seq[String]): Either[String, REPLConfig]

    Permalink

    Create and initialise the configuration for a particular run of the REPL.

    Create and initialise the configuration for a particular run of the REPL. Default: call createConfig and then initialise the resulting configuration. Returns either the created configuration or an error message describing why the configuration couldn't be created.

    Definition Classes
    REPLBase
  7. def createConfig(args: Seq[String]): REPLConfig

    Permalink

    Create the configuration for a particular run of the REPL.

    Create the configuration for a particular run of the REPL. If supplied, use emitter instead of a standard output emitter.

    Definition Classes
    REPLREPLBase
  8. def driver(args: Seq[String]): Unit

    Permalink

    Driver for this REPL.

    Driver for this REPL. First, use the argument list to create a configuration for this execution. If the arguments parse ok, then print the REPL banner. Read lines from the console and pass non-null ones to processline. If ignoreWhitespaceLines is true, do not pass lines that contain just whitespace, otherwise do. Continue until processline returns false. Call prompt each time input is about to be read.

    Definition Classes
    REPLBase
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def main(args: Array[String]): Unit

    Permalink

    The entry point for this REPL.

    The entry point for this REPL.

    Definition Classes
    REPLBase
  16. val messaging: Messaging

    Permalink

    The messaging facilitiy used by this REPL.

    The messaging facilitiy used by this REPL.

    Definition Classes
    REPLBase
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val positions: Positions

    Permalink

    The position store used by this REPL.

    The position store used by this REPL.

    Definition Classes
    REPLBase
  21. final def processconsole(console: Console, prompt: String, config: REPLConfig): REPLConfig

    Permalink

    Process interactively entered lines, one by one, until end of file.

    Process interactively entered lines, one by one, until end of file.

    Definition Classes
    REPLBase
    Annotations
    @tailrec()
  22. def processfile(filename: String, config: REPLConfig): REPLConfig

    Permalink

    Process a file argument by passing its contents line-by-line to processline.

    Process a file argument by passing its contents line-by-line to processline.

    Definition Classes
    REPLBase
  23. final def processfiles(config: REPLConfig): REPLConfig

    Permalink

    Process the files one by one, allowing config to be updated each time and updated config to be used by the next file.

    Process the files one by one, allowing config to be updated each time and updated config to be used by the next file.

    Definition Classes
    REPLBase
  24. def processlines(config: REPLConfig): Unit

    Permalink

    Process interactively entered lines, one by one, until end of file.

    Process interactively entered lines, one by one, until end of file. Prompt with the given prompt.

    Definition Classes
    REPLBase
  25. val profiler: Profiler

    Permalink

    Profiler for this compiler.

    Profiler for this compiler.

    Definition Classes
    REPLBase
  26. def prompt: String

    Permalink

    Define the prompt (default: "> ").

    Define the prompt (default: "> ").

    Definition Classes
    REPLBase
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from REPLBase[REPLConfig]

Inherited from AnyRef

Inherited from Any

Ungrouped