{"id":17061059,"url":"https://github.com/chalcolith/kiuatan","last_synced_at":"2025-07-01T06:33:22.003Z","repository":{"id":63098555,"uuid":"64897302","full_name":"chalcolith/kiuatan","owner":"chalcolith","description":"A parser library for Pony.","archived":false,"fork":false,"pushed_at":"2025-02-20T19:32:00.000Z","size":281,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-20T20:31:12.604Z","etag":null,"topics":["parser","parser-generator","parser-library","parsing-expression-grammar","peg","pony","pony-language","ponylang"],"latest_commit_sha":null,"homepage":"","language":"Pony","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/chalcolith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2016-08-04T02:58:23.000Z","updated_at":"2025-02-20T19:32:05.000Z","dependencies_parsed_at":"2023-07-14T08:31:56.519Z","dependency_job_id":"793168a6-d9ad-455b-bf5f-d55fdb43df87","html_url":"https://github.com/chalcolith/kiuatan","commit_stats":null,"previous_names":["chalcolith/kiuatan"],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalcolith%2Fkiuatan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalcolith%2Fkiuatan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalcolith%2Fkiuatan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalcolith%2Fkiuatan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chalcolith","download_url":"https://codeload.github.com/chalcolith/kiuatan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245072266,"owners_count":20556353,"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","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":["parser","parser-generator","parser-library","parsing-expression-grammar","peg","pony","pony-language","ponylang"],"created_at":"2024-10-14T10:45:57.064Z","updated_at":"2025-03-23T08:15:46.889Z","avatar_url":"https://github.com/chalcolith.png","language":"Pony","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kiuatan\n\n![CI](https://github.com/chalcolith/kiuatan/actions/workflows/main-push-build-and-test.yml/badge.svg?branch=main\u0026event=push)\n\nKiuatan (\"horse\" or \"pony\" in [Chinook Jargon](https://en.wikipedia.org/wiki/Chinook_Jargon#Chinook_Jargon_words_used_by_English-language_speakers)) is a library for building and running parsers in the [Pony](https://www.ponylang.org) programming language.\n\n- Kiuatan uses [Parsing Expression Grammar](https://en.wikipedia.org/wiki/Parsing_expression_grammar) semantics, which means:\n- Choices are ordered, i.e. the parser will always try to parse alternatives in the order they are declared.\n  - Sequences are greedy, i.e. the parser will not backtrack from the end of a sequence.\n  - You can use positive and negative lookahead that does not advance the match position to constrain greedy sequences.\n  - Parsers do not backtrack from successful choices.\n- Kiuatan parsers are \"packrat\" parsers; they memoize intermediate results, resulting in linear-time parsing.\n- Parsers use Mederios et al's [algorithm](https://arxiv.org/abs/1207.0443) to handle unlimited left-recursion.\n\nFurther [documentation is here](https://chalcolith.github.io/kiuatan/kiuatan--index/).\n\n## Obtaining Kiuatan\n\n### Corral\n\nThe easiest way to incorporate Kiuatan into your Pony project is to use Pony [Corral](https://github.com/ponylang/corral).  Once you have it installed, `cd` to your project's directory and type:\n\n```bash\ncorral add github chalcolith/kiuatan\n```\n\nThis will add the library to your project.  You can then build your project with something like:\n\n```bash\ncorral fetch\ncorral run -- ponyc .\n```\n\n### Git\n\nYou can clone and build Kiuatan directly from GitHub:\n\n```bash\ngit clone https://github.com/chalcolith/kiuatan.git\ncd kiuatan\nmake test\n```\n\nTo use Kiuatan in a project you will need to add `kiuatan/kiuatan` to your `PONYPATH` environment variable.\n\n## Documentation\n\n[Documentation is here](https://chalcolith.github.io/kiuatan/kiuatan--index/).\n\n## Example\n\nSee the [calc example](https://github.com/chalcolith/kiuatan/blob/main/examples/calc/calc) for a sample of how to define and use a grammar for Kiuatan.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalcolith%2Fkiuatan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchalcolith%2Fkiuatan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalcolith%2Fkiuatan/lists"}