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
?fooor?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