1 api2 tests3 docsπ refactor-parser
lua/parser.luahuman workspace
38 local function parse(input)
39 local tokens = tokenize(input)
40┃ return parse_tokens(tokens)
41 end
42
43 return { parse = parse }
lua/tokenize.luaπ editing 17:19
15 local function scan(input)
16 local result = {}
17● for token in input:gmatch('%S+') do π editing…
result[#result + 1] = normalize(token)
18│ result[#result + 1] = token
19└ end
20 return result
21 end
Illustrative interaction only