{"id":20704606,"url":"https://github.com/egison/egison-pattern-src","last_synced_at":"2025-04-23T01:25:30.328Z","repository":{"id":56513896,"uuid":"239985223","full_name":"egison/egison-pattern-src","owner":"egison","description":"Manipulating Egison patterns: abstract syntax, parser, and pretty-printer","archived":false,"fork":false,"pushed_at":"2020-11-03T05:44:55.000Z","size":226,"stargazers_count":5,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-18T22:20:25.426Z","etag":null,"topics":["egison","parser","pattern","pretty-printer","programming-language","syntax-tree"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/egison-pattern-src","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egison.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":"2020-02-12T10:28:13.000Z","updated_at":"2021-09-11T09:12:05.000Z","dependencies_parsed_at":"2022-08-15T20:10:29.952Z","dependency_job_id":null,"html_url":"https://github.com/egison/egison-pattern-src","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egison%2Fegison-pattern-src","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egison%2Fegison-pattern-src/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egison%2Fegison-pattern-src/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egison%2Fegison-pattern-src/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egison","download_url":"https://codeload.github.com/egison/egison-pattern-src/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250350545,"owners_count":21416146,"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":["egison","parser","pattern","pretty-printer","programming-language","syntax-tree"],"created_at":"2024-11-17T01:13:05.091Z","updated_at":"2025-04-23T01:25:30.308Z","avatar_url":"https://github.com/egison.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Egison Pattern Source\n\n[![Actions Status](https://github.com/egison/egison-pattern-src/workflows/latest/badge.svg)](https://github.com/egison/egison-pattern-src/actions?workflow=latest)\n[![Actions Status](https://github.com/egison/egison-pattern-src/workflows/release/badge.svg)](https://github.com/egison/egison-pattern-src/actions?workflow=release)\n[![Hackage](https://img.shields.io/hackage/v/egison-pattern-src.svg)](https://hackage.haskell.org/package/egison-pattern-src)\n[![Hackage Deps](https://img.shields.io/hackage-deps/v/egison-pattern-src.svg)](http://packdeps.haskellers.com/reverse/egison-pattern-src)\n\nThe [egison-pattern-src](https://hackage.haskell.org/package/egison-pattern-src) provides a standalone syntax definition for patterns in [the Egison programming language](https://www.egison.org/).\nThis package enables you to embed Egison's patterns in your parser (pretty-printer) by supplying expression and name parsers (printers) externally.\nFor the uses in Haskell source code, such adaptors for [haskell-src-exts](https://hackage.haskell.org/package/haskell-src-exts) and [template-haskell](https://hackage.haskell.org/package/template-haskell) are also available as [egison-pattern-src-haskell-mode](https://hackage.haskell.org/package/egison-pattern-src-haskell-mode) and [egison-pattern-src-th-mode](https://hackage.haskell.org/package/egison-pattern-src-th-mode), respectively.\n\n## Syntax\n\nThe following is a simplified syntax of pattern expressions where `v`, `c`, `op` and `e` are meta-variables for variable names, constructor names, user-defined infix operators, and expressions in host language, respectively.\n\n```\np ::= _                     (wildcard pattern)\n    | $v                    (pattern variable)\n    | #e                    (value pattern)\n    | ?e                    (predicate pattern)\n    | (p_1, p_2, ..., p_n)  (tuple pattern)\n    | [p_1, p_2, ..., p_n]  (collection pattern)\n    | p \u0026 p                 (and-pattern)\n    | p | p                 (or-pattern)\n    | !p                    (not-pattern)\n    | p op p                (user-defined infix pattern)\n    | c p_1 p_2 ... p_n     (constructor pattern)\n```\n\n## Development\n\nTo build and test `egison-pattern-src` locally, run:\n\n```\n$ make test    # or just `cabal new-test all`\n```\n\nYou can use `make watch` to watch for file changes and re-run tests.\n\n## License\n\n[egison-pattern-src](https://hackage.haskell.org/package/egison-pattern-src) is distributed as open source software under the terms of the 3 clause BSD License. See [LICENSE](/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegison%2Fegison-pattern-src","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegison%2Fegison-pattern-src","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegison%2Fegison-pattern-src/lists"}