{"id":25778204,"url":"https://github.com/alandoherty/lua-lexer","last_synced_at":"2025-07-17T18:31:34.940Z","repository":{"id":12221009,"uuid":"14829255","full_name":"alandoherty/lua-lexer","owner":"alandoherty","description":"An Lua Lexer written in C#","archived":false,"fork":false,"pushed_at":"2013-12-17T12:27:59.000Z","size":136,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T09:50:12.290Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/alandoherty.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}},"created_at":"2013-11-30T22:10:57.000Z","updated_at":"2023-04-17T09:00:55.000Z","dependencies_parsed_at":"2022-09-23T04:51:38.282Z","dependency_job_id":null,"html_url":"https://github.com/alandoherty/lua-lexer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alandoherty/lua-lexer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alandoherty%2Flua-lexer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alandoherty%2Flua-lexer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alandoherty%2Flua-lexer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alandoherty%2Flua-lexer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alandoherty","download_url":"https://codeload.github.com/alandoherty/lua-lexer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alandoherty%2Flua-lexer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265645360,"owners_count":23804183,"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":"2025-02-27T06:29:57.966Z","updated_at":"2025-07-17T18:31:34.905Z","avatar_url":"https://github.com/alandoherty.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lua Lexer\n=========\n\nAn Lua Lexer written in C# designed for analysing but not interpreting Lua, also includes supports for lexing the != operator and C-like comment syntax.\n\nPerformance\n=========\n\nWhile primarily unfinished, the lexer can process the following code 1,000,000 times in 13ms:\n\n```lua\n-- globals.lua\n-- show all global variables\n\nlocal seen={}\n\nfunction dump(t,i)\n\tseen[t]=true\n\tlocal s={}\n\tlocal n=0\n\tfor k in pairs(t) do\n\t\tn=n+1 s[n]=k\n\tend\n\ttable.sort(s)\n\tfor k,v in ipairs(s) do\n\t\tprint(i,v)\n\t\tv=t[v]\n\t\tif type(v)==\"table\" and not seen[v] then\n\t\t\tdump(v,i..\"\\t\")\n\t\tend\n\tend\nend\n\ndump(_G,\"\")\n```\n\nCode taken from the Lua Demo at http://www.lua.org/cgi-bin/demo?globals\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falandoherty%2Flua-lexer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falandoherty%2Flua-lexer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falandoherty%2Flua-lexer/lists"}