GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ReFreezed/DumbLuaParser: Lua parsing library capable of optimizing and minifying code.

BranchesTags
Open more actions menu

Latest commit

 

History

113 Commits
113 Commits

Folders and files

NameName
Last commit message
Last commit date
.extras
.extras
 
 
.gitignore
.gitignore
 
 
CHANGELOG.txt
CHANGELOG.txt
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
dumbParser.lua
dumbParser.lua
 
 
examples.lua
examples.lua
 
 
test.lua
test.lua
 
 
testsuite.lua
testsuite.lua
 
 

Repository files navigation

Dumb Lua Parser

Dumb Lua Parser is a library for tokenizing Lua code or creating ASTs (Abstract Syntax Trees) and converting the data back to Lua. It can also optimize and minify code.

The library is a single Lua file with no dependencies other than Lua itself. It works with Lua 5.1, 5.2, 5.3 and 5.4. LuaJIT should work too. MIT license.

Download the latest stable release here or, if you're cloning the repository, checkout the last commit with a version tag. Also available on LuaRocks.

Basic usage

local parser = require("dumbParser")

local tokens = parser.tokenizeFile("cool.lua")
local ast    = parser.parse(tokens)

parser.simplify(ast)
parser.printTree(ast)

local lua = parser.toLua(ast, true)
print(lua)

Check out examples.lua for some examples.

Documentation

See the website or the top of the source file.

About

Lua parsing library capable of optimizing and minifying code.

refreezed.com/luaparser/

Topics

abstract-syntax-treelibrarylualua-modulelua51lua52lua53lua54luajitminifierobfuscationoptimizerparserpure-luasingle-filetokenizer

Resources

Readme
MIT license
Activity

Stars

38 stars

Watchers

5 watching

Forks

5 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.