Crate nu_engine

Source
Expand description

This crate primarily drives the evaluation of expressions.

(Some overlap with nu-protocol)

  • Provides CallExt

§Internal Nushell crate

This crate implements components of Nushell and is not designed to support plugin authors or other users directly.

Re-exports§

Modules§

Structs§

Traits§

Functions§

  • Compile Nushell pipeline abstract syntax tree (AST) to internal representation (IR) instructions for evaluation.
  • Checks the expression to see if it’s a internal or external call. If so, passes the input into the call and gets out the result Otherwise, invokes the expression
  • Evaluate the compiled representation of a Block.
  • Helper function to fetch eval_block() with the correct type parameter based on whether engine_state is configured with or without a debugger.
  • Helper function to fetch eval_block_with_early_return() with the correct type parameter based on whether engine_state is configured with or without a debugger.
  • Helper function to fetch eval_expression() with the correct type parameter based on whether engine_state is configured with or without a debugger.
  • Helper function to fetch eval_expression_with_input() with the correct type parameter based on whether engine_state is configured with or without a debugger.
  • Helper function to fetch eval_ir_block() with the correct type parameter based on whether engine_state is configured with or without a debugger.
  • Helper function to fetch eval_subexpression() with the correct type parameter based on whether engine_state is configured with or without a debugger.
  • This function is like nu_glob::glob from the glob crate, except it is relative to a given cwd.
  • Redirect the environment from callee to the caller.

Type Aliases§