In the context of a debugging package that I am writing, I need to analyse an arbitrary token in the input stream. What are the possible outcomes of \meaning<token>?
- Macro:
(\protected) (\long) (\outer) macro:#1#2->...#1...#2...(exactly characterized by the presence of->?) - Character (implicit or explicit):
the letter Aorbegin-group character {etc. - Primitive, e.g.,
\relax \toks23,\char"12,\count0, and others?
There are many other types, probably, that I don't know about... select font cmr10? mathchars? boxes?
It would be great to have a complete list. Also, tips on how to parse the meaning and extract useful information from it are welcome.

\meaningwith all macros you can find. You need e.g. a Perl script to extract them from, say all base LaTeX or even all package files. Then you have a good statistic. – Martin Scharrer♦ Feb 2 '11 at 13:49\mathchar"1. But nothing special for boxes. They are defined using\chardef, i.e. just by number. – Martin Scharrer♦ Feb 2 '11 at 14:15