I'm trying to understand what a LaTeX3 token list is. Unfortunately, the LaTeX3 documentation is anything but helpful. According to the LaTeX3 Interfaces documentation token lists can be viewed in two ways (p. 35):
A token list (explicit, or stored in a variable) can be seen either as a list of “items”, or a list of “tokens”. An item is whatever
\use:n
would grab as its argument: a single non-space token or a brace group, with optional leading explicit space characters (each item is thus itself a token list). A token is either a normalN
argument, or␣
,{
, or}
(assuming normal TeX category codes).
What is a LaTeX3 token?
According to the above excerpt
A token is either a normal
N
argument, or␣
,{
, or}
(assuming normal TeX category codes).
- What is "a normal
N
argument"? - Consider the phrase "
␣
,{
, or}
(assuming normal TeX category codes)". Is it the same as saying "the TeX tokens (character code = 32, category code = 10), (character code = 123, category code = 1), or (character code = 125, category code = 2)"? Or is it the same as saying "any TeX token, whose category code is one of 1, 2, or 10"?
What is a LaTeX3 item?
According to the above excerpt
An item is whatever \use:n would grab as its argument: a single non-space token or a brace group, with optional leading explicit space characters (each item is thus itself a token list).
What does "a single non-space token" mean? does the word "token" refer to a TeX token, or to a LaTeX3 token? Does the expression "non-space" refer to any TeX token that is not (character code = 32, category code = 10), or to any TeX token whose category code is not 10, or to any TeX token whose character code is not 32? What about other whitespace characters, such as a newline? Do they count?
What is a "brace group"? Does it include the delimiting braces? Does it include the whitespace contained inside?
Does the phrase "with optional leading explicit space characters" refer only to the brace group, or also to the single non-space token? What does it mean explicit space characters? Are the leading explicit space character part of the item? What about non-explicit space characters?