A parser object

A parser object

Methods

Public methods


Method new()

Create a new parser object

Usage

rts_parser$new(language)

Arguments

language

The language to parse

Returns

A new rts_parser object


Method print()

Usage

rts_parser$print(...)

Arguments

...

Additional parameters ignored.


Method parse()

Usage

rts_parser$parse(text)

Arguments

text

The text to parse.


Method field_id_for_name()

Get the numerical id for the given field name string.

Usage

rts_parser$field_id_for_name(name)

Arguments

name

The name to lookup

Returns

An integer double of the ID, or NULL if no field by that name exists. The ID can be passed to rts_node$child_by_field_id().


Method clone()

The objects of this class are cloneable with this method.

Usage

rts_parser$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.