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§
pub use column::get_columns;
pub use documentation::get_full_help;
pub use env::*;
Modules§
Structs§
- Closure
Eval ClosureEval
is used to repeatedly evaluate a closure with different values/inputs.- Closure
Eval Once ClosureEvalOnce
is used to evaluate a closure a single time.
Traits§
Functions§
- compile
- Compile Nushell pipeline abstract syntax tree (AST) to internal representation (IR) instructions for evaluation.
- eval_
block - eval_
block_ with_ early_ return - eval_
call - eval_
expression - eval_
expression_ with_ input - 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
- eval_
ir_ block - Evaluate the compiled representation of a
Block
. - eval_
subexpression - eval_
variable - get_
eval_ block - Helper function to fetch
eval_block()
with the correct type parameter based on whether engine_state is configured with or without a debugger. - get_
eval_ block_ with_ early_ return - 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. - get_
eval_ expression - Helper function to fetch
eval_expression()
with the correct type parameter based on whether engine_state is configured with or without a debugger. - get_
eval_ expression_ with_ input - 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. - get_
eval_ ir_ block - Helper function to fetch
eval_ir_block()
with the correct type parameter based on whether engine_state is configured with or without a debugger. - get_
eval_ subexpression - Helper function to fetch
eval_subexpression()
with the correct type parameter based on whether engine_state is configured with or without a debugger. - glob_
from - This function is like
nu_glob::glob
from theglob
crate, except it is relative to a given cwd. - redirect_
env - Redirect the environment from callee to the caller.
Type Aliases§
- Eval
Block Fn - Type of eval_block() function
- Eval
Block With Early Return Fn - Type of eval_block_with_early_return() function
- Eval
Expression Fn - Type of eval_expression() function
- Eval
Expression With Input Fn - Type of eval_expression_with_input() function
- Eval
IrBlock Fn - Type of eval_ir_block() function
- Eval
Subexpression Fn - Type of eval_subexpression() function