TeX in C
Explore TeX with modern c compiler.
PART 27: Building token lists

宏定义

#define closed   2
 
#define justopen   1
 

函数

Static void strtoks_helper (ASCIICode t)
 
Static HalfWord strtoks (StrPoolPtr b)
 
HalfWord thetoks (void)
 
static void insthetoks (void)
 [#467] Here’s part of the expand subroutine / that we are now ready to complete. 更多...
 
static void convtoks (void)
 [#470] The procedure conv toks uses str toks to insert the token list for convert functions into the scanner; \outer control sequences are allowed to follow \string and \meaning. 更多...
 
HalfWord scantoks (Boolean macrodef, Boolean xpand)
 
void build_token_init ()
 [#481] 更多...
 
void readtoks (long n, HalfWord r)
 [#482] constructs a token list like that for any macro definition, and makes cur val point to it. 更多...
 

变量

FILE * readfile [16]
 
char readopen [17]
 
Static Pointer tex_global_p
 

详细描述

宏定义说明

◆ closed

#define closed   2

◆ justopen

#define justopen   1

函数说明

◆ build_token_init()

void build_token_init ( )

[#481]

◆ convtoks()

static void convtoks ( void  )
static

[#470] The procedure conv toks uses str toks to insert the token list for convert functions into the scanner; \outer control sequences are allowed to follow \string and \meaning.

◆ insthetoks()

static void insthetoks ( void  )
static

[#467] Here’s part of the expand subroutine / that we are now ready to complete.

◆ readtoks()

void readtoks ( long  n,
HalfWord  r 
)

[#482] constructs a token list like that for any macro definition, and makes cur val point to it.

Parameter r points to the control sequence that will receive this token list.

[#483] Input and store tokens from the next line of the file

[#484] Input for \\read from the terminal.

[#485] Input the first line of read_file[m].

[#486] Input the next line of read_file[m].

◆ scantoks()

HalfWord scantoks ( Boolean  macrodef,
Boolean  xpand 
)

◆ strtoks()

Static HalfWord strtoks ( StrPoolPtr  b)

◆ strtoks_helper()

Static void strtoks_helper ( ASCIICode  t)

◆ thetoks()

HalfWord thetoks ( void  )

变量说明

◆ readfile

FILE* readfile[16]

◆ readopen

char readopen[17]

◆ tex_global_p

Static Pointer tex_global_p