I would like to become more familiar with the token library of the Lua backend of LuaTeX.
My question:
Has anyone written a routine that reads a (brace balanced) token list from the TeX frontend and returns an output to the TeX frontend, from which you can see for each of token of the list what properties it has (control-sequence token, character token, if applicable: category code and character code, implicit or explicit character token, active character token, defined/undefined, ...) ?
I think I saw an article about this in tugboat, but I don't recall exactly any more.