{"id":16202265,"url":"https://github.com/dingyi222666/lua-parser","last_synced_at":"2025-03-19T06:31:48.584Z","repository":{"id":65705495,"uuid":"596136546","full_name":"dingyi222666/lua-parser","owner":"dingyi222666","description":"A Lua 5.3 / 5.4 Lexer \u0026 Parser written in pure Kotlin.","archived":false,"fork":false,"pushed_at":"2024-12-04T17:49:29.000Z","size":794,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T04:21:26.027Z","etag":null,"topics":["ast","kotlin","kotlin-library","kotlin-multiplatform","lexer","lua","lua-lexer","lua-parser","luaparse","parser"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dingyi222666.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":"2023-02-01T14:45:18.000Z","updated_at":"2025-03-05T17:01:10.000Z","dependencies_parsed_at":"2024-10-27T20:19:58.002Z","dependency_job_id":"980f3833-a6f1-49df-8e04-d2052d655b96","html_url":"https://github.com/dingyi222666/lua-parser","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dingyi222666%2Flua-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dingyi222666%2Flua-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dingyi222666%2Flua-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dingyi222666%2Flua-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dingyi222666","download_url":"https://codeload.github.com/dingyi222666/lua-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244371399,"owners_count":20442361,"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":["ast","kotlin","kotlin-library","kotlin-multiplatform","lexer","lua","lua-lexer","lua-parser","luaparse","parser"],"created_at":"2024-10-10T09:46:44.121Z","updated_at":"2025-03-19T06:31:43.570Z","avatar_url":"https://github.com/dingyi222666.png","language":"Kotlin","readme":"# lua-parser\n\n## _work in progress_\n\nA Lua 5.3 Lexer \u0026 Parser written in pure Kotlin.\n\n## Features\n\n- [X] Kotlin Multiplatform support (JVM / JS / Native)\n- [x] Parse source to AST\n- [x] Transform AST to source code\n- [ ] Semantic analysis. Provide type information (Work in progress)\n\n## Usage\n\n- Add the dependency to your gradle file\n\n```kotlin\nimplementation(\"io.github.dingyi222666:luaparser:1.0.3\")\n```\n\nOk. Use it like this:\n\n```kotlin\nval lexer = LuaLexer(\"print('hello world')\")\nval parser = LuaParser()\n\nval root = parser.parse(lexer)\n\nprintln(AST2Lua().asCode(root))\n```\n\nMore usage coming soon.\n\n## Special thanks\n\n[GavinHigham/lpil53](https://github.com/GavinHigham/lpil53)\n\n[fstirlitz/luaparse](https://github.com/fstirlitz/luaparse)\n\n[Rosemose/sora-editor](https://github.com/Rosemoe/sora-editor/blob/main/language-java/src/main/java/io/github/rosemoe/sora/langs/java/JavaTextTokenizer.java)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdingyi222666%2Flua-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdingyi222666%2Flua-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdingyi222666%2Flua-parser/lists"}