Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "yaml"

Title:YAML parser
Rating:Not rated. Create the first rating!
Latest version:0.1
SHA1 sum:d4bc18e41b09e6c23afb284c311824c389d126d4
Author:Hongxin Liang <hongxin.liang@ericsson.com>
Maintainer:Hongxin Liang <hongxin.liang@ericsson.com>
Packager:Hongxin Liang <hongxin.liang@ericsson.com>
Home page:http://git.cf.ericsson.net/5g-mgmt/yaml

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.1cec725db6a3bbf4a53c1a604ac35d790890062d21http://git.cf.ericsson.net/ehonlia/yaml.git
815b7f55491eba3db210dfb2edea807dc160520e1http://git.cf.ericsson.net/5g-mgmt/yaml.git
d4bc18e41b09e6c23afb284c311824c389d126d42http://git.cf.ericsson.net/5g-mgmt/yaml.git
8b82836752abd9fee1767458288fae3e08fb80793http://git.cf.ericsson.net/components/yaml.git
4edd59841890f6dee6c7c26bbca20780c76ea429212https://github.com/honnix/yaml.git

yaml

A YAML parser.

Installation

Using SWI-Prolog 7 or later.

?- pack_install('https://github.com/honnix/yaml.git').

Source code available and pull requests accepted here.

author
- Hongxin Liang <hxliang1982@gmail.com>
license
- Apache License Version 2.0

Examples

:- module(ex, []).

:- use_module(library(yaml/parser)).
:- use_module(library(yaml/util)).
:- use_module(library(yaml/serializer)).

ex1 :-
    read_yaml('ex1.yaml', YAML),
    parse(YAML, PL),
    print_term(PL, []),
    serialize(PL, YAML1),
    write(YAML1),
    write_yaml('ex1_gen.yaml', YAML1).

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contents of pack "yaml"

Pack contains 13 files holding a total of 36.7K bytes.