Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nest_parse_data

Nest a flat parse table


Description

nest_parse_data groups pd_flat into a parse table with tokens that are a parent to other tokens (called internal) and such that are not (called child). Then, the token in child are joined to their parents in internal and all token information of the children is nested into a column "child". This is done recursively until we are only left with a nested tibble that contains one row: The nested parse table.

Usage

nest_parse_data(pd_flat)

Arguments

pd_flat

A flat parse table including both terminals and non-terminals.

Value

A nested parse table.

See Also


styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.