Package

ammonite

interpreter

Permalink

package interpreter

Visibility
  1. Public
  2. All

Type Members

  1. class AmmonitePlugin extends Plugin

    Permalink

    Used to capture the names in scope after every execution, reporting them to the output function.

    Used to capture the names in scope after every execution, reporting them to the output function. Needs to be a compiler plugin so we can hook in immediately after the typer

  2. case class Catching(handler: PartialFunction[Throwable, Failing]) extends Product with Serializable

    Permalink

    Fake for-comprehension generator to catch errors and turn them into Res.Failures

  3. case class Colors(prompt: Ref[String], ident: Ref[String], type: Ref[String], literal: Ref[String], prefix: Ref[String], comment: Ref[String], keyword: Ref[String], selected: Ref[String], error: Ref[String], reset: Ref[String]) extends Product with Serializable

    Permalink

    A set of colors used to highlight the miscellanious bits of the REPL.

    A set of colors used to highlight the miscellanious bits of the REPL. Re-used all over the place in PPrint, TPrint, syntax highlighting, command-echoes, etc. in order to keep things consistent

    prompt

    The command prompt

    ident

    Definition of top-level identifiers

    literal

    Strings, integers and other literal expressions

    prefix

    The Seq/Foo when printing a Seq(...) or case class Foo(...)

    selected

    The color of text selected in the line-editor

    error

    The color used to print error messages of all kinds

    reset

    Whatever is necessary to get rid of residual coloring

  4. trait Compiler extends AnyRef

    Permalink

    Encapsulates (almost) all the ickiness of Scalac so it doesn't leak into the rest of the codebase.

    Encapsulates (almost) all the ickiness of Scalac so it doesn't leak into the rest of the codebase. Makes use of a good amount of mutable state for things like the log-output-forwarder or compiler-plugin-output because These things are hard-coded into Scalac and can't be passed in from run to run.

    Turns source-strings into the bytes of classfiles, possibly more than one classfile per source-string (e.g. inner classes, or lambdas). Also lets you query source strings using an in-built presentation compiler

  5. class Imports extends api.Imports

    Permalink
  6. trait Pressy extends AnyRef

    Permalink

    Nice wrapper for the presentation compiler.

  7. trait Ref[T] extends StableRef[T]

    Permalink
  8. sealed abstract class Res[+T] extends AnyRef

    Permalink

    The result of a single pass through the ammonite REPL.

  9. trait StableRef[T] extends AnyRef

    Permalink

    Encapsulates a read-write cell that can be passed around

  10. class SyntaxError extends Exception

    Permalink

Value Members

  1. object AmmonitePlugin

    Permalink
  2. object Colors extends Serializable

    Permalink
  3. object Compiler

    Permalink
  4. object CompilerCompatibility

    Permalink
  5. object Ex

    Permalink

    Nice pattern matching for chained exceptions

  6. object NamesFor

    Permalink
  7. object Parsers

    Permalink
  8. object Preprocessor

    Permalink
  9. object Pressy

    Permalink
  10. object Ref

    Permalink
  11. object Res

    Permalink
  12. object SyntaxError extends Serializable

    Permalink
  13. object Util

    Permalink

Ungrouped