Man pages for astgrepr
Parse and Manipulate R Code

ast_ruleBuild a rule
expect_snapshot'tinytest' helper
node-findFind node(s) matching a pattern
node-fixChange the code in the tree
node-get-matchGet the match(es) from a meta-variable
node_get_rootRecover the tree root from a node
node-infoGet more precise information on a node
node-isGet information on nodes
node_kindFind the kind of a node
node-rangeGet the start and end positions of a node
node-textExtract the code corresponding to one or several nodes
node-traversalNavigate the tree
pattern_ruleBuild a pattern rule
relational_ruleBuild a relational rule
tree_newCreate a syntax tree
tree_rewriteRewrite the tree with a list of replacements
tree_rootGet the root of the syntax tree
astgrepr documentation built on June 8, 2025, 11:05 a.m.