TeX in C
Explore TeX with modern c compiler.
PART 20: Token lists

宏定义

#define CS_TOKEN_FLAG   (dwa_do_8 * 16 - 1)
 [#298] amount added to the eqtb location in a token that stands for a control sequence. 更多...
 
#define leftbracetoken   (dwa_do_8 * LEFT_BRACE)
 
#define leftbracelimit   (dwa_do_8 * (LEFT_BRACE + 1))
 
#define rightbracetoken   (dwa_do_8 * RIGHT_BRACE)
 
#define rightbracelimit   (dwa_do_8 * (RIGHT_BRACE + 1))
 
#define mathshifttoken   (dwa_do_8 * MATH_SHIFT)
 
#define tabtoken   (dwa_do_8 * TAB_MARK)
 
#define outparamtoken   (dwa_do_8 * OUT_PARAM)
 
#define spacetoken   (dwa_do_8 * SPACER + ' ')
 
#define lettertoken   (dwa_do_8 * LETTER)
 
#define othertoken   (dwa_do_8 * OTHER_CHAR)
 
#define matchtoken   (dwa_do_8 * MATCH)
 
#define endmatchtoken   (dwa_do_8 * END_MATCH)
 

函数

void showtokenlist (Integer p, Integer q, Integer l)
 [p117#292] 更多...
 
void token_show (Pointer p)
 [p118#295] display a token list, given a pointer to its reference count. 更多...
 
void print_meaning (EightBits _cmd, HalfWord _chr)
 [p118#296] displays cur cmd and cur chr in symbolic form, including the expansion of a macro or mark. 更多...
 

详细描述

宏定义说明

◆ CS_TOKEN_FLAG

#define CS_TOKEN_FLAG   (dwa_do_8 * 16 - 1)

[#298] amount added to the eqtb location in a token that stands for a control sequence.

is a multiple of 256, less 1. [4096 - 1 => dwa_do_8 * 16 - 1]

◆ endmatchtoken

#define endmatchtoken   (dwa_do_8 * END_MATCH)

◆ leftbracelimit

#define leftbracelimit   (dwa_do_8 * (LEFT_BRACE + 1))

◆ leftbracetoken

#define leftbracetoken   (dwa_do_8 * LEFT_BRACE)

◆ lettertoken

#define lettertoken   (dwa_do_8 * LETTER)

◆ matchtoken

#define matchtoken   (dwa_do_8 * MATCH)

◆ mathshifttoken

#define mathshifttoken   (dwa_do_8 * MATH_SHIFT)

◆ othertoken

#define othertoken   (dwa_do_8 * OTHER_CHAR)

◆ outparamtoken

#define outparamtoken   (dwa_do_8 * OUT_PARAM)

◆ rightbracelimit

#define rightbracelimit   (dwa_do_8 * (RIGHT_BRACE + 1))

◆ rightbracetoken

#define rightbracetoken   (dwa_do_8 * RIGHT_BRACE)

◆ spacetoken

#define spacetoken   (dwa_do_8 * SPACER + ' ')

◆ tabtoken

#define tabtoken   (dwa_do_8 * TAB_MARK)

函数说明

◆ print_meaning()

void print_meaning ( EightBits  _cmd,
HalfWord  _chr 
)

[p118#296] displays cur cmd and cur chr in symbolic form, including the expansion of a macro or mark.

◆ showtokenlist()

void showtokenlist ( Integer  p,
Integer  q,
Integer  l 
)

[p117#292]

◆ token_show()

void token_show ( Pointer  p)

[p118#295] display a token list, given a pointer to its reference count.