{"id":13415843,"url":"https://github.com/alexrp/ex_parsec","last_synced_at":"2025-03-14T23:31:08.693Z","repository":{"id":19758103,"uuid":"23015536","full_name":"alexrp/ex_parsec","owner":"alexrp","description":"A parser combinator library inspired by Parsec.","archived":true,"fork":false,"pushed_at":"2015-08-04T20:46:54.000Z","size":576,"stargazers_count":30,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T12:59:25.241Z","etag":null,"topics":["elixir","erlang","parsing"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/ex_parsec","language":"Elixir","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"flame/libflame","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexrp.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":"2014-08-16T10:12:29.000Z","updated_at":"2024-05-31T15:46:43.000Z","dependencies_parsed_at":"2022-08-25T05:12:07.443Z","dependency_job_id":null,"html_url":"https://github.com/alexrp/ex_parsec","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrp%2Fex_parsec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrp%2Fex_parsec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrp%2Fex_parsec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrp%2Fex_parsec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexrp","download_url":"https://codeload.github.com/alexrp/ex_parsec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243663456,"owners_count":20327299,"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":["elixir","erlang","parsing"],"created_at":"2024-07-30T21:00:52.491Z","updated_at":"2025-03-14T23:31:08.349Z","avatar_url":"https://github.com/alexrp.png","language":"Elixir","funding_links":[],"categories":["Elixir"],"sub_categories":[],"readme":"# ExParsec\n\n[![Build Status](https://travis-ci.org/alexrp/ex_parsec.png?branch=master)](https://travis-ci.org/alexrp/ex_parsec)\n[![Hex Version](https://img.shields.io/hexpm/v/ex_parsec.svg)](https://hex.pm/packages/ex_parsec)\n[![Hex Downloads](https://img.shields.io/hexpm/dt/ex_parsec.svg)](https://hex.pm/packages/ex_parsec)\n\nA parser combinator library inspired by Parsec.\n\n## Usage\n\nAdd ExParsec as a dependency in your `mix.exs` file:\n\n```elixir\ndef deps do\n  [ {:ex_parsec, \"~\u003e x.y.z\"} ]\nend\n```\n\nReplace `x.y.z` with whatever released version you would like to depend on.\n\nAfter you are done, run `mix deps.get` in your shell to fetch and compile\nExParsec. Start an interactive Elixir shell with `iex -S mix`.\n\n```iex\niex\u003e import ExParsec.Base; import ExParsec.Text\nnil\niex\u003e ExParsec.parse_value \"foo\", many(any_char())\n{:ok, nil, [\"f\", \"o\", \"o\"]}\niex\u003e ExParsec.parse_value \"[x]\", between(char(\"[\"), char(\"x\"), char(\"]\"))\n{:ok, nil, \"x\"}\niex\u003e ExParsec.parse_value \"  spa ces  \",\n                          sequence([skip(spaces),\n                                    times(any_char(), 3),\n                                    skip(space),\n                                    times(any_char(), 3),\n                                    skip(spaces),\n                                    eof])\n{:ok, nil, [nil, [\"s\", \"p\", \"a\"], nil, [\"c\", \"e\", \"s\"], nil, nil]}\n```\n\n## Features\n\n* Can parse context-sensitive grammars.\n* High-quality, customizable error messages.\n* Full UTF-8 string support.\n* Non-text input such as binary data and tokens.\n* Support for theoretically infinitely large files.\n* Monadic parse blocks based on Elixir macros.\n* Simple, extensible API surface.\n\n## Examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexrp%2Fex_parsec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexrp%2Fex_parsec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexrp%2Fex_parsec/lists"}