YAML - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Web Features : MathML : YAML Package : YAML

YAML

Tools for parsing and generating data in YAML format

 

Calling Sequence

Description

Accessing YAML Package Commands

List of YAML Package Commands

Examples

Compatibility

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.

null

ParseFile

ParseString

ToString

• 

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 }");

tablepayment=50.71,date=2016/02/03,name=G Raymond

(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.

• 

For more information on Maple 2017 changes, see Updates in Maple 2017.

See Also

XMLTools