Documentation

Not logged in
Bounty program for improvements to Tcl and certain Tcl packages.


[ Home | Main Table Of Contents | Table Of Contents | Keyword Index ]

NAME

tclyaml - TclYAML - API

Table Of Contents

SYNOPSIS

package require Tcl 8.5
package require tclyaml ?0.5?

tclyaml type value
tclyaml version
tclyaml read channel chan
tclyaml read file path
tclyaml readTags channel chan
tclyaml readTags file path
tclyaml parse channel channel cmd...
tclyaml write channel spec chan value
tclyaml write file spec path value
tclyaml write string spec value
tclyaml write deftype name arguments body
tclyaml writeTags channel chan value
tclyaml writeTags file path value
tclyaml writeTags string value
string
scalar
bool
int
float
null
list
array
sequence
dict
object
mapping
writer alias anchor
writer sequence-start ?anchor? ?tag? ?implicit?
writer sequence-end
writer mapping-start ?anchor? ?tag? ?implicit?
writer mapping-end
writer scalar type value ?anchor? ?tag?
writer blockstyle style
writer scalarstyle style

DESCRIPTION

Welcome to TclYAML, a binding to the C-based libyaml parser library for YAML Ain't Markup Language.

This document is the reference manpage for the publicly visible API, i.e. the API a user will see, and use. This API falls into two big sections, for the generation of YAML from Tcl data structures on one side, and the parsing of YAML into Tcl structures on the other.

Introspection

Parsing YAML

Generating YAML

Standard converters for YAML generation

The package provides the following pre-defined conversion commands for use in structure specifications taken by the tclyaml write commands.

The Writer Object API

This section is only relevant to users wishing to write their own type conversions. See the command tclyaml write deftype above, also.

Here we are documenting the instance API of the low-level object holding the YAML structures we wish to generate. Construction and destruction of these instances is done internally by the package as needed and the relevant APIs are not documented. Neither are the instance methods reserved for use by the package internals.

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such at the TclYAML Tracker. Please also report any ideas for enhancements you may have for either package and/or documentation.

KEYWORDS

YAML, markup language, serialization

CATEGORY

3rd party library binding

COPYRIGHT

Copyright © 2012-2014, 2021 Andreas Kupries
Copyright © 2012-2014, 2021 Documentation, Andreas Kupries