Skip to content

Quickstart

  • See quickstart for a quick demonstration of tstoml.
  • See ts_serialize_toml() to create TOML from R.
  • See ts_unserialize_toml() to parse TOML into R.
  • See ts_parse_toml(), ts_tree_select(), and ts_tree_unserialize() to parse parts of TOML into R.
  • See ts_parse_toml(), ts_tree_select(), ts_tree_format(), and ts_tree_write() to format parts of a TOML file or string and save it to a file.
  • See ts_parse_toml(), ts_read_toml(), ts_tree_select(), ts_tree_delete(), ts_tree_insert(), ts_tree_update(), and ts_tree_write() to edit a TOML file or string and save it to a file.

Parsing

ts_parse_toml() ts_read_toml()
Parse a TOML file or string into a ts_tree_toml object
ts_language_toml()
TODO
ts_tree_new()
Create tree-sitter tree from file or string (from ts)

Selection

ts_tree_select()
Select parts of a TOML tree-sitter tree.

Serialization

Formatting

ts_format_toml()
Format a TOML file

Utilities

toml_example_text()
Example TOML text

Options

tstoml_options
tstoml options