{"id":21206669,"url":"https://github.com/oncomouse/lpeg-bibtex","last_synced_at":"2025-10-13T18:36:43.351Z","repository":{"id":149628241,"uuid":"532057103","full_name":"oncomouse/lpeg-bibtex","owner":"oncomouse","description":"BibTeX Parser in Lua using LPEG","archived":false,"fork":false,"pushed_at":"2022-09-14T18:38:15.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-21T15:48:47.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oncomouse.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-09-02T19:38:27.000Z","updated_at":"2024-02-23T19:06:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc150210-9e9b-40d7-860c-039ab13670f3","html_url":"https://github.com/oncomouse/lpeg-bibtex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Flpeg-bibtex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Flpeg-bibtex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Flpeg-bibtex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Flpeg-bibtex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oncomouse","download_url":"https://codeload.github.com/oncomouse/lpeg-bibtex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658746,"owners_count":20326554,"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":[],"created_at":"2024-11-20T20:56:28.861Z","updated_at":"2025-10-13T18:36:38.296Z","avatar_url":"https://github.com/oncomouse.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LPEG BibTeX\n\nThis is a very rudimentary (for now) PEG parser (using [LPEG](http://www.inf.puc-rio.br/~roberto/lpeg/) and Lua) for BibTeX files.\n\nIt is based on the grammar described at [aclements/biblib](https://github.com/aclements/biblib) and reproduced below:\n\n```\nbib_db = comment (command_or_entry comment)*\n\ncomment = [^@]*\n\nws = [ \\t\\n]*\n\nident = ![0-9] (![ \\t\"#%'(),={}] [\\x20-\\x7f])+\n\ncommand_or_entry = '@' ws (comment / preamble / string / entry)\n\ncomment = 'comment'\n\npreamble = 'preamble' ws ( '{' ws preamble_body ws '}'\n                         / '(' ws preamble_body ws ')' )\n\npreamble_body = value\n\nstring = 'string' ws ( '{' ws string_body ws '}'\n                     / '(' ws string_body ws ')' )\n\nstring_body = ident ws '=' ws value\n\nentry = ident ws ( '{' ws key ws entry_body? ws '}'\n                 / '(' ws key_paren ws entry_body? ws ')' )\n\nkey = [^, \\t}\\n]*\n\nkey_paren = [^, \\t\\n]*\n\nentry_body = (',' ws ident ws '=' ws value ws)* ','?\n\nvalue = piece (ws '#' ws piece)*\n\npiece\n    = [0-9]+\n    / '{' balanced* '}'\n    / '\"' (!'\"' balanced)* '\"'\n    / ident\n\nbalanced\n    = '{' balanced* '}'\n    / [^{}]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foncomouse%2Flpeg-bibtex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foncomouse%2Flpeg-bibtex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foncomouse%2Flpeg-bibtex/lists"}