Parse and Manipulate R Code


[Up] [Top]

Documentation for package ‘astgrepr’ version 0.1.0

Help Pages

ast_rule Build a rule
node-find Find node(s) matching a pattern
node-fix Change the code in the tree
node-get-match Get the match(es) from a meta-variable
node-info Get more precise information on a node
node-is Get information on nodes
node-range Get the start and end positions of a node
node-text Extract the code corresponding to one or several nodes
node-traversal Navigate the tree
node_ancestors Navigate the tree
node_child Navigate the tree
node_children Navigate the tree
node_find Find node(s) matching a pattern
node_find_all Find node(s) matching a pattern
node_follows Get more precise information on a node
node_get_match Get the match(es) from a meta-variable
node_get_multiple_matches Get the match(es) from a meta-variable
node_get_root Recover the tree root from a node
node_has Get more precise information on a node
node_inside Get more precise information on a node
node_is_leaf Get information on nodes
node_is_named Get information on nodes
node_is_named_leaf Get information on nodes
node_kind Find the kind of a node
node_matches Get more precise information on a node
node_next Navigate the tree
node_next_all Navigate the tree
node_parent Navigate the tree
node_precedes Get more precise information on a node
node_prev Navigate the tree
node_prev_all Navigate the tree
node_range Get the start and end positions of a node
node_range_all Get the start and end positions of a node
node_replace Change the code in the tree
node_replace_all Change the code in the tree
node_text Extract the code corresponding to one or several nodes
node_text_all Extract the code corresponding to one or several nodes
pattern_rule Build a pattern rule
relational_rule Build a relational rule
tree_new Create a syntax tree
tree_rewrite Rewrite the tree with a list of replacements
tree_root Get the root of the syntax tree