Skip to main content

Module builder

Module builder 

Source
Expand description

AST builder functions โ€” converts pest Pairs into Expr nodes.

Functionsยง

build_arg_list ๐Ÿ”’
build_arg_or_sub ๐Ÿ”’
Shared logic for both call args and index args โ€” structurally identical.
build_assign_eq ๐Ÿ”’
build_assign_left ๐Ÿ”’
build_assign_right ๐Ÿ”’
build_binary_left ๐Ÿ”’
build_block ๐Ÿ”’
build_colon ๐Ÿ”’
build_expr ๐Ÿ”’
build_for ๐Ÿ”’
build_formula ๐Ÿ”’
build_function ๐Ÿ”’
build_help ๐Ÿ”’
build_if ๐Ÿ”’
build_named_arg ๐Ÿ”’
build_namespace_expr ๐Ÿ”’
build_not ๐Ÿ”’
build_param_list ๐Ÿ”’
build_postfix_expr ๐Ÿ”’
build_postfix_suffix ๐Ÿ”’
build_power ๐Ÿ”’
build_primary ๐Ÿ”’
build_program ๐Ÿ”’
build_special_pipe ๐Ÿ”’
build_sub_list ๐Ÿ”’
build_unary ๐Ÿ”’
build_walrus ๐Ÿ”’
build_while ๐Ÿ”’
extract_help_topic ๐Ÿ”’
Extract the topic name from a help expression for ?foo or ?foo(...). Strips leading ?, then extracts the function name from call expressions (e.g. plot(1:10) โ†’ plot).
map_tilde_op ๐Ÿ”’
parse_ident_or_string ๐Ÿ”’
parse_ident_str ๐Ÿ”’
unescape_backtick_ident ๐Ÿ”’