Learn R Programming

⚠️There's a newer version (0.1.3) of this package.Take me there.

parsetools (version 0.1.1)

Parse Tools

Description

Tools and utilities for dealing with parse data. Parse data represents the parse tree as data with location and type information. This package provides functions for navigating the parse tree as a data frame.

Copy Link

Version

Install

install.packages('parsetools')

Monthly Downloads

23

Version

0.1.1

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Andrew Redd

Last Published

July 11th, 2019

Functions in parsetools (0.1.1)

calls

Call nodes
family-nodes

Family-wise Node Identification and Navigation.
extract_test_block

Extract testing blocks from the parse-data.
all_grouping_ids

get the grouping ids
all_root_nodes

Find all root node from parse data
function-nodes

Function Nodes
get_parse_data

Parse Data
get_family_pd

Get family of nodes.
pd_make_is_in_call

Create a function to test if an id is contained in a type
pd_is_grouping

test if an id is a grouping element
pd_class_definitions

Test for Class Definitions
pd_identify

Get the ID for an object
pd_is_comment

Is this a comment?
pd_all_tagged_iff_block_ids

Find all tagged if(FALSE) blocks.
if-statements

If Statement Nodes
iff-blocks

IFF Blocks
pd_get_closest_call_id

Get the closest call ID.
pd_get_relative_comment_associated_ids

Associate relative documentation comments
pd_get_comment_tag_content

Get the content of a tag
pd_get_iff_associated_name_id

Find the name that should be associated with an if(FALSE) block.
internal

Make a function operate internal to parsetools
pd_has_tag

Check if there is a documentation @ tag.
pd_get_tagged_comment_ids

Get tagged comment ids
n_children

Count the number of children
root

Root IDs
strip_doc_comment_leads

Remove the characters identifying a documentation comment.
pd_reconstitute

Reconstitute Expressions
strip_tag

Remove a tag that identified a line.
pd_text

Accessor functions
clean_tag_comments

clean tag comments
assignments

Assignment Node Navigation.
extract_test_blocks

extract tests from a file.