Download Nuweb A Simple Literate Programming Tool
Transcript
Chapter 4 Indices Three sets of indices can be created automatically: an index of file names, an index of macro names, and an index of user-specified identifiers. An index entry includes the name of the entry, where it was defined, and where it was referenced. 4.1 Files "arena.c" Defined by scraps 9c, 64abc, 65c. "global.c" Defined by scrap 9d. "global.h" Defined by scrap 6a. "input.c" Defined by scraps 8b, 32d, 33ab, 35c. "latex.c" Defined by scraps 7e, 18e, 19a, 23b, 24a, 26b, 28b. "names.c" Defined by scraps 9b, 48ab, 49a, 50, 51ab, 52b, 54, 56, 57bc. "nuweb.c" Defined by scraps 7c, 9e. "output.c" Defined by scraps 8a, 30a. "pass1.c" Defined by scraps 7d, 16c. "scraps.c" Defined by scraps 9a, 36abce, 37ab, 38bcde, 41c, 42a, 43a, 46a, 58abcde, 59ab, 63ab. 4.2 Macros hAccumulate scrap and return scraps++ 39bi Referenced in scrap 38e. hAdd scrap to name’s definition list 18bi Referenced in scraps 17c, 18a. hAdd current scrap to name’s uses 41bi Referenced in scrap 40b. hAdd letters to scraps with duplicate page numbers 46bi Referenced in scrap 46a. hAllocate a new chunk of memory 65bi Referenced in scrap 65a. hBegin the scrap environment 21ci Referenced in scraps 21ab. hBuild source_name and tex_name 15bi Referenced in scrap 15a. hBuild failure functions 61i Referenced in scrap 59a. hBuild macro definition 18ai Referenced in scrap 17b. hBuild output file definition 17ci Referenced in scrap 17b. hCheck at-sequence for end-of-scrap 24ci Referenced in scrap 24a. hCheck for ambiguous prefix 49bi Referenced in scrap 49a. hCheck for end of scrap name and return 42bi Referenced in scrap 42a. hCheck for macro invocation in scrap 44di Referenced in scrap 43b. hCheck for terminating at-sequence and return name 55ai Referenced in scrap 54. hCleanup and install name 55bi Referenced in scraps 55ac, 57a. hCollect include-file name 35ai Referenced in scrap 34b. hCollect user-specified index entries 40ai Referenced in scrap 39c. hCompare the temp file and the old file 31i Referenced in scrap 30b. hCopy defs->scrap to file 43bi Referenced in scrap 43a. hCopy source_file into tex_file 19bi Referenced in scrap 19a. 66