Chapter 17: Page 343 - 'Preparing for the Tokenization'
There's an issue with the bolding of the text in the second code block on page 343. You also need to edit the two lines within the for statement from the previous version. As listed on that page, the calculate function should be this:
local function calculate(number1, ...)
if errorState then
return
end
print(number1, ...)
for i = 1, select("#", ...), 2 do
local operator, number2 = select(i, ...)
number1 = operator(number1, number2)
end
return number1
end