nushell/crates/nu-parser/src/lib.rs

29 lines
776 B
Rust
Raw Normal View History

mod deparse;
2021-08-10 20:51:08 +02:00
mod errors;
mod eval;
2021-08-10 20:51:08 +02:00
mod flatten;
mod known_external;
2021-08-10 20:51:08 +02:00
mod lex;
2022-12-22 12:41:44 +01:00
mod lite_parser;
2021-09-26 20:39:19 +02:00
mod parse_keywords;
2021-08-10 20:51:08 +02:00
mod parser;
mod type_check;
pub use deparse::{escape_for_script_arg, escape_quote_string};
2021-08-17 01:00:00 +02:00
pub use errors::ParseError;
pub use flatten::{
flatten_block, flatten_expression, flatten_pipeline, flatten_pipeline_element, FlatShape,
};
pub use known_external::KnownExternal;
2021-08-10 20:51:08 +02:00
pub use lex::{lex, Token, TokenContents};
2022-12-22 12:41:44 +01:00
pub use lite_parser::{lite_parse, LiteBlock, LiteElement};
pub use parse_keywords::*;
pub use parser::{
2022-12-22 12:41:44 +01:00
is_math_expression_like, parse, parse_block, parse_duration_bytes, parse_expression,
parse_external_call, trim_quotes, trim_quotes_str, unescape_unquote_string,
};
2021-11-02 21:56:00 +01:00
#[cfg(feature = "plugin")]
pub use parse_keywords::parse_register;