Registry / other / nu-parser

nu-parser

JSON →
library0.110.0rscratesunverified

Nushell's parser library for parsing shell commands and expressions.

# Cargo.toml [dependencies] nu-parser = "0.110.0"
INSTALL
IMPORT
SIG · NU-PARSER
N
nu-parser
otherrustv0.110.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse
use nu_parser::parse;

Parses a Nushell command string into an AST block.

use nu_parser::parse; use nu_protocol::engine::StateWorkingSet; fn main() { let engine_state = nu_protocol::engine::EngineState::new(); let mut working_set = StateWorkingSet::new(&engine_state); let (block, err) = parse( &mut working_set, None, b"ls -la", false, &[], ); println!("Parsed block: {:?}", block); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.110.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
Resources
nu-parser — cargo add nu-parser · libregistry