loc 0.5.0

Count lines of code (cloc) fast.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--[[ This
     is
     a
     multi-line
     comment,
     not
     code. ]]

-- build table
statetab = {}
local w1, w2 = NOWORD, NOWORD
for w in allwords() do
  insert(prefix(w1, w2), w)
  w1 = w2; w2 = w;
end
insert(prefix(w1, w2), NOWORD)