Tell me more ×  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 A or begin-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.
share|improve this question Two ideas to figure that out: 1)
check the TeXBook again, 2) write a script/document which
executes \meaning with 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