{"id":16228531,"url":"https://github.com/poppa/pike-toml","last_synced_at":"2026-01-20T07:32:41.959Z","repository":{"id":66864664,"uuid":"127036807","full_name":"poppa/pike-toml","owner":"poppa","description":"TOML parser for Pike","archived":false,"fork":false,"pushed_at":"2020-11-10T19:01:09.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T04:44:46.684Z","etag":null,"topics":["lexer","parser","pike","tokenizer","toml","toml-parser"],"latest_commit_sha":null,"homepage":"","language":"Pike","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/poppa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-27T19:35:20.000Z","updated_at":"2020-11-10T19:01:12.000Z","dependencies_parsed_at":"2023-04-20T12:18:51.338Z","dependency_job_id":null,"html_url":"https://github.com/poppa/pike-toml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/poppa/pike-toml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poppa%2Fpike-toml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poppa%2Fpike-toml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poppa%2Fpike-toml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poppa%2Fpike-toml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poppa","download_url":"https://codeload.github.com/poppa/pike-toml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poppa%2Fpike-toml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28598157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["lexer","parser","pike","tokenizer","toml","toml-parser"],"created_at":"2024-10-10T12:55:42.150Z","updated_at":"2026-01-20T07:32:41.944Z","avatar_url":"https://github.com/poppa.png","language":"Pike","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TOML parser for [Pike](https://pike.lysator.liu.se)\n\nA [TOML](https://github.com/toml-lang/toml) parser trying to comply to the\nv0.5 spec.\n\n## Examle\n\n```toml\n# config.toml\n\nname = \"Global Server Config\"\nsupport = [\"email@support.com\", \"055-5555\"]\nlast-updated = 2020-11-10T12:13:14+01:00\n\n[server.dev]\n  host = \"dev.host.com\"\n  port = 1337\n  tls = false\n  os.platform = \"CentOS\"\n  os.version = \"6.5\"\n\n[server.prod]\n  host = \"host.com\"\n  port = 80\n  tls = true\n  # This is the same as in `server.dev`\n  os = { platform = \"CentOS\", version = \"7.6\" }\n\n[[regex]]\ndot = '\\.'\n\n[[regex]]\ndot = '\\.\\.'\n```\n\nPass this file to `Parser.TOML.parse_file()` like so:\n\n```pike\nmapping res = Parser.TOML.parse_file(\"config.toml\");\n```\n\nand expect `res` to contain the following content:\n\n```pike\n([\n  \"last-updated\": Second(Tue 10 Nov 2020 12:13:14 UTC+1),\n  \"name\": \"Global Server Config\",\n  \"regex\": ({\n    ([ \"dot\": \"\\\\.\" ]),\n    ([ \"dot\": \"\\\\.\\\\.\" ])\n  }),\n  \"server\": ([\n    \"dev\": ([\n      \"host\": \"dev.host.com\",\n      \"os\": ([\n        \"platform\": \"CentOS\",\n        \"version\": \"6.5\"\n      ]),\n      \"port\": 1337,\n      \"tls\": Val.false\n    ]),\n    \"prod\": ([\n      \"host\": \"host.com\",\n      \"os\": ([\n        \"platform\": \"CentOS\",\n        \"version\": \"7.6\"\n      ]),\n      \"port\": 80,\n      \"tls\": Val.true\n    ])\n  ]),\n  \"support\": ({\n    \"email@support.com\",\n    \"055-5555\"\n  })\n])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoppa%2Fpike-toml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoppa%2Fpike-toml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoppa%2Fpike-toml/lists"}