YAML - Maple Programming Help

YAML

Tools for parsing and generating data in YAML format

 Calling Sequence YAML[command](arguments) command(arguments)

Description

 • YAML (YAML Ain't Markup Language) is a lightweight data-interchange format.
 • The YAML package is a collection of commands for parsing YAML data into Maple expressions, and for encoding Maple expressions into YAML format.

Accessing YAML Package Commands

 • Each command in the YAML package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
 • Because the underlying implementation of the YAML package is a module, it is possible to use the form YAML:-command to access a command from the package. For more information, see Module Members.

List of YAML Package Commands

 • The following is a list of commands available in the YAML package.

 • To display the help page for a particular YAML command, see Getting Help with a Command in a Package.

Examples

 > with(YAML):
 > ParseString("{ name: G Raymond, date: 2016/02/03, payment: 50.71 }");
 ${table}{}\left(\left[{"payment"}{=}{50.71}{,}{"date"}{=}{"2016/02/03"}{,}{"name"}{=}{"G Raymond"}\right]\right)$ (1)
 > ToString( table([ "a"=[2,3,4,5], "b"=3 ]) );
 ${"--- a: - 2 - 3 - 4 - 5 b: 3"}$ (2)

Compatibility

 • The YAML package was introduced in Maple 2017.