YAML - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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.

  

The long form, YAML:-command, is always available. The short form can be used after loading the package.

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

tablename=G Raymond,payment=50.71,date=2016/02/03

(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