nu_engine

Module command_prelude

Source

Re-exports§

Modules§

Macros§

Structs§

  • A potentially infinite, interruptible stream of bytes.
  • This is a HACK to help Command support both the old AST evaluator and the new IR evaluator at the same time. It should be removed once we are satisfied with the new evaluator.
  • Represents the potentially nested access to fields/cells of a container type
  • The core global engine state. This includes all global definitions as well as any global state that will persist for the whole session.
  • Signature information of a Command
  • Spans are a global offset across all seen files, which are cached in the engine’s state. The start and end offset together make the inclusive start/exclusive end pair for where to underline to highlight a given point of interest.
  • A spanned area of interest, generic over what kind of thing is of interest
  • A runtime value stack used during evaluation
  • A temporary extension to the global state. This handles bridging between the global state and the additional declarations and scope changes that are not yet part of the global scope.

Enums§

  • Optional type color for ByteStream, which determines type compatibility.
  • Command categories
  • The foundational abstraction for input and output to commands
  • The fundamental error type for the evaluation engine. These cases represent different kinds of errors the evaluator might face, along with helpful spans to label. An error renderer will take this error value and pass it into an error viewer to display to the user.
  • The syntactic shapes that describe how a sequence should be parsed.
  • Core structured values that pass through the pipeline in Nushell.

Traits§