| Did you know ... | Search Documentation: |
| Packs (add-ons) for SWI-Prolog |
| 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 |
No reviews. Create the first review!.
| Version | SHA1 | #Downloads | URL |
|---|---|---|---|
| 0.1 | cec725db6a3bbf4a53c1a604ac35d790890062d2 | 1 | http://git.cf.ericsson.net/ehonlia/yaml.git |
| 815b7f55491eba3db210dfb2edea807dc160520e | 1 | http://git.cf.ericsson.net/5g-mgmt/yaml.git | |
| d4bc18e41b09e6c23afb284c311824c389d126d4 | 2 | http://git.cf.ericsson.net/5g-mgmt/yaml.git | |
| 8b82836752abd9fee1767458288fae3e08fb8079 | 3 | http://git.cf.ericsson.net/components/yaml.git | |
| 4edd59841890f6dee6c7c26bbca20780c76ea429 | 221 | https://github.com/honnix/yaml.git |
A YAML parser.
Using SWI-Prolog 7 or later.
?- pack_install('https://github.com/honnix/yaml.git').
Source code available and pull requests accepted here.
:- 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).
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.
Pack contains 13 files holding a total of 36.7K bytes.