getTokens: Gets the terminal tokens

Description Usage Arguments

Description

Retrieve the terminal nodes from a parser object.

Usage

1
2
3
4
  getTokens(x,
    data = attr(x, "data")[attr(x, "data")[["terminal"]], ],
    encoding = attr(x, "encoding"), file = attr(x, "file"),
    sort = TRUE)

Arguments

x

the parser object.

data

the data attribute of x

encoding

The encoding used on the file

file

the file x came from.

sort

Does the data need to be sorted?


halpo/parser documentation built on May 17, 2019, 2:27 p.m.