{"id":21379242,"url":"https://github.com/craigbarnes/ltcn","last_synced_at":"2025-07-13T11:32:31.922Z","repository":{"id":68322387,"uuid":"74754611","full_name":"craigbarnes/ltcn","owner":"craigbarnes","description":"Moved to https://gitlab.com/craigbarnes/ltcn","archived":false,"fork":false,"pushed_at":"2024-11-04T20:48:13.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-04T21:33:34.593Z","etag":null,"topics":["deserialization","deserialization-library","escape-sequences","json","lpeg","lua","parsing","serialization","table"],"latest_commit_sha":null,"homepage":"https://gitlab.com/craigbarnes/ltcn","language":"Lua","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craigbarnes.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}},"created_at":"2016-11-25T11:54:17.000Z","updated_at":"2024-11-04T20:48:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"56e87401-20db-40a0-9e57-aa9d72a1225d","html_url":"https://github.com/craigbarnes/ltcn","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/craigbarnes%2Fltcn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigbarnes%2Fltcn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigbarnes%2Fltcn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigbarnes%2Fltcn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craigbarnes","download_url":"https://codeload.github.com/craigbarnes/ltcn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225878133,"owners_count":17538405,"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":["deserialization","deserialization-library","escape-sequences","json","lpeg","lua","parsing","serialization","table"],"created_at":"2024-11-22T10:18:08.880Z","updated_at":"2024-11-22T10:18:09.326Z","avatar_url":"https://github.com/craigbarnes.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"LTCN\n====\n\nLTCN or \"Lua Table Constructor Notation\" is a Lua library for parsing\nand deserializing Lua table syntax via an [LPeg] grammar. It's intended\nto parse a safe subset of the Lua language and to replace many common\nuse cases of the [`load`] function for reading data and configuration\nfiles.\n\nFeatures\n--------\n\n* Parses any Lua table constructor that consists of string, number or\n  boolean *keys* and string, number, boolean or table *values*.\n* Handles unescaping of escape sequences in string literals.\n* Discards single-line comments and long comments.\n* Permits a single `return` keyword before the outermost opening brace,\n  to enable drop-in replacement of the [`load`] function.\n* Provides useful error messages for syntax errors, including line and\n  column numbers.\n\nRequirements\n------------\n\n* [Lua] \u003e= 5.1 or [LuaJIT] \u003e= 2.0\n* [LPeg] \u003e= 0.12\n\nInstallation\n------------\n\nThere's no versioned release yet, but for now the SCM [rock] can be\ninstalled with:\n\n    luarocks --server=https://luarocks.org/dev install ltcn\n\nFeatures Not Implemented\n------------------------\n\n### Lua 5.2+ features\n\nThe following are features that were added to Lua after version 5.1 and\nare deliberately not supported to simplify cross-version compatibility:\n\n* Hexadecimal floating point literals (e.g. `0x1.5p-3`).\n* Hexadecimal escape sequences in strings (e.g. `\"\\xFF\"`)\n* Whitespace escape sequences in strings (e.g. `\"\\z\"`)\n* Unicode escape sequences in strings (e.g. `\"\\u{1F311}\"`)\n\n### Beyond the scope of LTCN\n\nThe following are syntactical constructs of Lua that could theoretically\nbe supported, but are considered beyond the scope of the project:\n\n* Tables as keys (not useful without considerable extra functionality).\n* Tables that require more than a simple constructor to initialize\n  (e.g. those with self references, shared references etc.).\n* Expression evaluation.\n* Metatables, functions, conditionals, etc. (just use the Lua\n  [`load`] function for this).\n\nLicense\n-------\n\nISC [License][] (SPDX: [`ISC`]).\n\n\n[`load`]: https://www.lua.org/manual/5.3/manual.html#pdf-load\n[Lua]: https://www.lua.org/\n[LuaJIT]: https://luajit.org/\n[LPeg]: https://www.inf.puc-rio.br/~roberto/lpeg/\n[rock]: https://luarocks.org/modules/craigb/ltcn\n[License]: LICENSE\n[`ISC`]: https://spdx.org/licenses/ISC.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigbarnes%2Fltcn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraigbarnes%2Fltcn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigbarnes%2Fltcn/lists"}