Skip to content

yeb

YAML easyconfig format (.yeb) Useful: http://www.yaml.org/spec/1.2/spec.html

Authors:

  • Caroline De Brouwer (Ghent University)
  • Kenneth Hoste (Ghent University)

FormatYeb

Bases: EasyConfigFormat

Support for easyconfig YAML format

__init__()

FormatYeb constructor

dump(ecfg, default_values, templ_const, templ_val, toolchain_hierarchy=None)

Dump parsed easyconfig in .yeb format

extract_comments(txt)

Extract comments from easyconfig file

get_config_dict()

Return parsed easyconfig as a dictionary, based on specified arguments.

parse(txt)

Process YAML file

validate()

Format validation

is_yeb_format(filename, rawcontent)

Determine whether easyconfig is in .yeb format. If filename is None, rawcontent will be used to check the format.

quote_yaml_special_chars(val)

Single-quote values that contain special characters, specifically to be used in YAML context (.yeb files) Single quotes inside the string are escaped by doubling them. (see: http://symfony.com/doc/current/components/yaml/yaml_format.html#strings)

yaml_join(loader, node)

defines custom YAML join function. see http://stackoverflow.com/questions/5484016/ how-can-i-do-string-concatenation-or-string-replacement-in-yaml/23212524#23212524

PARAMETER DESCRIPTION
loader

the YAML Loader

node

the YAML (sequence) node