Writing a Lua tokenizer so I can implement the extensions in a sane way (no regex).