This program does three things!
- Attempts to fix syntax errors!
- Pretty prints code!
- (Extra feature!) Converts old DarkRP shipment/job/entity/etc. syntax to the new one!
The last one is useful for the DarkRP community, but won’t affect you if you run it on normal GLua files. It does, however, show what the program is capable of:
Left is before, right is after.
When to use this program
- When terrible shit coders don’t know how to fucking indent their god damn code.
- Fucking around, trying to see what kind of syntax errors it can fix and how it fixes them
- Converting old DarkRP crap to the newer syntax in batch.
Currently not that much. Maybe I’ll expand the features to make it lint GLua or something.
How to use this program
USING THE GUI:
- Double click the gluafixer executable (gluafixer.exe on Windows, gluafixer-linux on Linux)
- Select the file you want to read
- Save the fixed file.
- Observe “LuaErrors.txt”, which contains all the errors the program tried to fix and how it tried to fix it.
USING THE TERMINAL:
// Windows: gluafixer-console file.lua stdout // Linux: gluafixer-linux file.lua stdout
The syntax corrections made by this program are shite
> The corrections are made by the glorious uu-parsinglib and are therefore not to be criticised. Seriously, though, I cannot really influence the way it corrects things, sadly.
What the FUCK is UUAGC/uu-parsinglib?
> UUAGC is short for Utrecht University Attribute Grammar Compiler. Hard to explain what it does (something with catamorphisms), but it does it in a fucking amazing way. It’s glorious.
> uu-parsinglib is a parser library for haskell that fixes syntax errors. It’s also glorious, though a bit slow and I can’t really hook into the error repairing mechanism.
Source of the program
Hahaha you’re not going to understand shit because it’s written in Haskell and UUAGC. You’ll never find any malicous code I put in there hahahahaha!
Click either glorious image to go to the source.
Where to download this program