Search found 1655 matches

by ivan
Sat Jan 16, 2021 12:12 pm
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 1473

Re: SUPER STRICT for LUA

not can be stacked more than twice, just saying that more than two should parse fine as well. :3 Yep, should work fine so these ones, right?: do, repeat, for, if, then, else, while. Yes! error would be raised incorrectly for the next line Thanks, I will look into this! sstrict naturally has no idea...
by ivan
Sat Jan 16, 2021 9:59 am
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 1473

Re: SUPER STRICT for LUA

This being a fairly common code formatting thing I do for chaining function calls to create things like GUI widgets and textbox objects, since it'd be awful for readability to cram those into a single function or line of code. Ok I have pushed another fix so please pull the latest version from BitB...
by ivan
Sat Jan 16, 2021 7:58 am
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 1473

Re: SUPER STRICT for LUA

Thanks for trying SUPERSTRICT. return not not self.rects This is a weird-looking line, but yea I can adjust the parser to support it. -- undefined variable '_' Good catch, this is definitely a bug. I think some hints for the sstrict via comments might be the way to go You could use the !strict comma...
by ivan
Wed Jan 13, 2021 2:37 pm
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 1473

Re: SUPER STRICT for LUA

grump wrote:
Wed Jan 13, 2021 11:44 am
I think you're getting a tiny bit overzealous there. An empty function doesn't happen by accident, and treating it like a bug is going one step too far.
Hehe, yea you're probably right.
by ivan
Wed Jan 13, 2021 7:49 am
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 1473

Re: SUPER STRICT for LUA

Hey zorg. Thank you for taking a look! Looking at the code I see that function() obj.baz end would raise an error. The reason why I allowed function() obj:baz() end was because of inheritance where somebody could override the empty function. After some additional thought, I realize that maybe this s...
by ivan
Tue Jan 12, 2021 5:03 pm
Forum: General
Topic: Wordsearch (HTML5 game)
Replies: 3
Views: 1093

Re: Wordsearch (HTML5 game)

Hey, thank you so much for taking a look. I'll try to make the recommended changes in the next few days.
And great work on love.js!
I would have used it for this game - but decided to try HTML5 because of the mobile browser support.
Cheers!
by ivan
Tue Jan 12, 2021 4:51 pm
Forum: Libraries and Tools
Topic: Syntax sugar for Lua
Replies: 2
Views: 163

Re: Syntax sugar for Lua

Hi. I appreciate the work you put in but I noticed that the lib is based around string.gsub.
It will not work correctly with something like:

Code: Select all

var = "var++"
print(var)
Just a heads up, and keep working at it!
by ivan
Tue Jan 12, 2021 4:00 pm
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 1473

Re: SUPER STRICT for LUA

SUPERSRTICT now finds too many values on the right-hand side during assignment.

Code: Select all

local a = 1, 2 -- too many values in assignment
by ivan
Tue Jan 12, 2021 12:33 pm
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 1473

Re: SUPER STRICT for LUA

Hey, I have just pushed a fix for the uppercase issue. Thanks for the heads up. Also I have made SUPERSTRICT less verbose now. Certain empty blocks are reported: local function boo(a, b) -- empty code block error end for i = 1, 100 do -- empty code block error end Others are allowed: local obj = {} ...
by ivan
Tue Jan 12, 2021 8:07 am
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 27
Views: 1473

Re: SUPER STRICT for LUA

Thanks so much for the feedback everybody, I have pushed an update featuring the following changes: 1.added the new patterns by pgimeno (thanks!) 2.binary files are skipped (as requested by grump) 3.dofile support (this will need testing) 4.loadstring support Note that [[double brackets]] can have a...