Skip to content

Commit

Permalink
refactor(parser): optimize table element parsing in consumeTable func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
bytexenon committed Jun 26, 2024
1 parent c61be34 commit fb6a34f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions the-tiny-lua-compiler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,9 @@ function Parser.parse(tokens)
end
local function consumeTable()
consume() -- Consume the "{" symbol
local elements = {}
local implicitElements = {}
local explicitElements = {}
local lastImplicitElement
local elements = {}
local implicitElements = {}
local explicitElements = {}
local internalImplicitKey = 1

-- Consume table elements
Expand Down

0 comments on commit fb6a34f

Please sign in to comment.