{"id":16085536,"url":"https://github.com/astrochili/defold-lpeg","last_synced_at":"2025-10-06T01:15:07.499Z","repository":{"id":49440358,"uuid":"274359692","full_name":"astrochili/defold-lpeg","owner":"astrochili","description":"LPeg extension for the Defold game engine.","archived":false,"fork":false,"pushed_at":"2023-03-04T12:19:34.000Z","size":79,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-23T21:48:13.795Z","etag":null,"topics":["defold","lpeg","parsing"],"latest_commit_sha":null,"homepage":"","language":"C","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/astrochili.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,"zenodo":null}},"created_at":"2020-06-23T09:06:08.000Z","updated_at":"2024-07-18T18:18:28.000Z","dependencies_parsed_at":"2025-04-12T20:16:03.003Z","dependency_job_id":null,"html_url":"https://github.com/astrochili/defold-lpeg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/astrochili/defold-lpeg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrochili%2Fdefold-lpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrochili%2Fdefold-lpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrochili%2Fdefold-lpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrochili%2Fdefold-lpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astrochili","download_url":"https://codeload.github.com/astrochili/defold-lpeg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astrochili%2Fdefold-lpeg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278545049,"owners_count":26004384,"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-10-05T02:00:06.059Z","response_time":54,"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":["defold","lpeg","parsing"],"created_at":"2024-10-09T13:02:00.871Z","updated_at":"2025-10-06T01:15:07.473Z","avatar_url":"https://github.com/astrochili.png","language":"C","funding_links":[],"categories":["Libraries"],"sub_categories":["Programming Language"],"readme":"![LPeg for Defold](https://user-images.githubusercontent.com/4752473/85421686-6481f780-b57d-11ea-839b-fdb4634e7ff8.jpg)\n\n# LPeg for Defold\nLPeg extension for the Defold game engine. [LPeg](http://www.inf.puc-rio.br/~roberto/lpeg/) is a pattern-matching library by [Roberto Ierusalimschy](http://www.inf.puc-rio.br/~roberto/) for Lua.\n\nThe extension includes source code of LPeg 1.0.2 (MIT Licence).\n\n## Installation\n\nAdd the link to the latest [release zip-archive](https://github.com/astrochili/defold-lpeg/releases) as a [library dependency](http://www.defold.com/manuals/libraries/) in the Defold project configuration.\n\n## Usage\n\nAll operations are accessible through the global variable ```lpeg```.\n\n```lua\nlocal P = lpeg.P \n\nlocal pattern = P'a' * P'b' ^ 0\nlocal result = lpeg.match(pattern, 'abbc')\n\nprint(result) --\u003e 4\n```\n\n## Narrator\n\nThis library is used by [Narrator](https://github.com/astrochili/narrator) to parse the Ink language. You can check how its parser works [here](https://github.com/astrochili/narrator/blob/master/narrator/parser.lua).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrochili%2Fdefold-lpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrochili%2Fdefold-lpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrochili%2Fdefold-lpeg/lists"}