{"id":24289278,"url":"https://github.com/rla/prolog-yamltiny","last_synced_at":"2025-07-27T00:09:49.967Z","repository":{"id":6610312,"uuid":"7853728","full_name":"rla/prolog-yamltiny","owner":"rla","description":"A YAML subset parser for Prolog","archived":false,"fork":false,"pushed_at":"2013-01-27T15:31:30.000Z","size":108,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T20:11:14.077Z","etag":null,"topics":["swi-prolog","yaml","yaml-parser"],"latest_commit_sha":null,"homepage":null,"language":"Prolog","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-27T15:23:46.000Z","updated_at":"2024-10-10T14:18:17.000Z","dependencies_parsed_at":"2022-09-11T14:40:18.608Z","dependency_job_id":null,"html_url":"https://github.com/rla/prolog-yamltiny","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rla/prolog-yamltiny","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fprolog-yamltiny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fprolog-yamltiny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fprolog-yamltiny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fprolog-yamltiny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rla","download_url":"https://codeload.github.com/rla/prolog-yamltiny/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fprolog-yamltiny/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267273311,"owners_count":24062571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["swi-prolog","yaml","yaml-parser"],"created_at":"2025-01-16T10:51:47.548Z","updated_at":"2025-07-27T00:09:49.891Z","avatar_url":"https://github.com/rla.png","language":"Prolog","funding_links":[],"categories":[],"sub_categories":[],"readme":"Prolog-yamltiny\n===============\n\nA YAML subset parser for Prolog. The subset of YAML was partially\ntaken from http://search.cpan.org/~adamk/YAML-Tiny-1.51/lib/YAML/Tiny.pm#YAML_TINY_SPECIFICATION\n\nThis implementation, however, supports no directives. Single/double block\nliterals are not supported. At the moment, writing YAML documents is\nnot supported. No types are supported, all primitive values are atoms.\n\nDependencies\n------------\n\nThe code has been tested on Swi-Prolog. It uses DCG's to implement\nthe lexer and the parser. For IO it depends on `library(readutil)`,\nfor various other predicates it depends on `library(apply)`.\n\nUnit tests\n----------\n\nUnit tests cover most features. The tests are in the file `src/tests.pl`\nand can be ran with the command `make test` or by loading the file\nmanually into Swi-Prolog and calling `run_tests`.\n\nExample usage\n-------------\n\nPredicates:\n\n* `yamltiny_parse(+Codes:list, -Documents:list) is det`.\n* `yamltiny_read(+Filename:atom, -Documents:list) is det`.\n\nComplete Prolog program:\n\n    :- use_module(library(yamltiny)).\n    \n    main:-\n        yamltiny_read('file.yml', Documents),\n        writeln(Documents).\n\nInput file:\n\n    - a\n    - b\n    - c\n\nProlog term (contains one documents):\n\n    [ array([a, b, c]) ]\n    \nInput file:\n\n    a: hello\n    b: world\n    \nProlog term:\n    \n    [ hash(a-hello, b-world) ]\n\nInstallation\n------------\n\nAssuming you have Swi-Prolog installed, run `make install`. You should\nfirst make sure that unit tests run without errors. \n\nLicense\n-------\n\nThe MIT license. See LICENSE file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frla%2Fprolog-yamltiny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frla%2Fprolog-yamltiny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frla%2Fprolog-yamltiny/lists"}