{"id":20533072,"url":"https://github.com/refreezed/dumbluaparser","last_synced_at":"2025-04-14T06:32:33.186Z","repository":{"id":37558196,"uuid":"277293455","full_name":"ReFreezed/DumbLuaParser","owner":"ReFreezed","description":"Lua parsing library capable of optimizing and minifying code.","archived":false,"fork":false,"pushed_at":"2022-06-23T18:21:54.000Z","size":646,"stargazers_count":34,"open_issues_count":5,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T20:14:06.620Z","etag":null,"topics":["abstract-syntax-tree","library","lua","lua-module","lua51","lua52","lua53","lua54","luajit","minifier","obfuscation","optimizer","parser","pure-lua","single-file","tokenizer"],"latest_commit_sha":null,"homepage":"http://refreezed.com/luaparser/","language":"Lua","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/ReFreezed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-05T12:00:37.000Z","updated_at":"2024-10-04T11:44:58.000Z","dependencies_parsed_at":"2022-09-24T18:22:55.763Z","dependency_job_id":null,"html_url":"https://github.com/ReFreezed/DumbLuaParser","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReFreezed%2FDumbLuaParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReFreezed%2FDumbLuaParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReFreezed%2FDumbLuaParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReFreezed%2FDumbLuaParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReFreezed","download_url":"https://codeload.github.com/ReFreezed/DumbLuaParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248834093,"owners_count":21168955,"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":["abstract-syntax-tree","library","lua","lua-module","lua51","lua52","lua53","lua54","luajit","minifier","obfuscation","optimizer","parser","pure-lua","single-file","tokenizer"],"created_at":"2024-11-16T00:18:33.501Z","updated_at":"2025-04-14T06:32:33.134Z","avatar_url":"https://github.com/ReFreezed.png","language":"Lua","readme":"# Dumb Lua Parser\n\n*Dumb Lua Parser* is a library for tokenizing Lua code or creating ASTs (Abstract Syntax Trees) and converting the data back to Lua.\nIt can also optimize and minify code.\n\nThe library is a [single Lua file](dumbParser.lua) with no dependencies other than Lua itself.\nIt works with Lua 5.1, 5.2, 5.3 and 5.4. LuaJIT should work too.\nMIT license.\n\nDownload the latest stable release [here](https://github.com/ReFreezed/DumbLuaParser/releases/latest)\nor, if you're cloning the repository, checkout the last commit with a version tag.\nAlso available on [LuaRocks](https://luarocks.org/modules/refreezed/dumbluaparser).\n\n\n## Basic usage\n\n```lua\nlocal parser = require(\"dumbParser\")\n\nlocal tokens = parser.tokenizeFile(\"cool.lua\")\nlocal ast    = parser.parse(tokens)\n\nparser.simplify(ast)\nparser.printTree(ast)\n\nlocal lua = parser.toLua(ast, true)\nprint(lua)\n```\n\nCheck out [examples.lua](examples.lua) for some examples.\n\n\n## Documentation\n\nSee the [website](http://refreezed.com/luaparser/docs/) or the top of the [source file](dumbParser.lua).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefreezed%2Fdumbluaparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefreezed%2Fdumbluaparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefreezed%2Fdumbluaparser/lists"}