Home | History | Annotate | Line # | Download | only in doc
      1  1.6  christos - Documentation extraction program for chew.
      2  1.7  christos -  Copyright (C) 1990-2025 Free Software Foundation, Inc.
      3  1.6  christos -  This file is part of BFD, the Binary File Descriptor library.
      4  1.6  christos 
      5  1.6  christos -  This program is free software; you can redistribute it and/or modify
      6  1.6  christos -  it under the terms of the GNU General Public License as published by
      7  1.6  christos -  the Free Software Foundation; either version 3 of the License, or
      8  1.6  christos -  (at your option) any later version.
      9  1.6  christos 
     10  1.6  christos -  This program is distributed in the hope that it will be useful,
     11  1.6  christos -  but WITHOUT ANY WARRANTY; without even the implied warranty of
     12  1.6  christos -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13  1.6  christos -  GNU General Public License for more details.
     14  1.6  christos 
     15  1.6  christos -  You should have received a copy of the GNU General Public License
     16  1.6  christos -  along with this program; if not, write to the Free Software
     17  1.6  christos -  Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
     18  1.6  christos 
     19  1.6  christos - chew.c keywords defined here put output into doc/*.texi files
     20  1.6  christos - from comments in the source.  See also proto.str.
     21  1.6  christos 
     22  1.6  christos -  True if SYNOPSIS was seen.
     23  1.6  christos variable synopsis_seen
     24  1.6  christos 
     25  1.1  christos : DOCDD
     26  1.1  christos 	skip_past_newline
     27  1.1  christos 	get_stuff_in_command kill_bogus_lines catstr
     28  1.1  christos 	;
     29  1.1  christos 
     30  1.1  christos : ENDDD
     31  1.1  christos 	skip_past_newline
     32  1.1  christos 	;
     33  1.1  christos 
     34  1.1  christos : EXAMPLE
     35  1.1  christos 	skip_past_newline	
     36  1.1  christos 	get_stuff_in_command kill_bogus_lines do_fancy_stuff translatecomments 
     37  1.1  christos 	courierize catstr
     38  1.1  christos 	;
     39  1.1  christos 
     40  1.1  christos : INODE 
     41  1.1  christos 	"@node " catstr skip_past_newline copy_past_newline catstr 
     42  1.1  christos 	;
     43  1.1  christos 
     44  1.1  christos : CODE_FRAGMENT
     45  1.1  christos 	EXAMPLE 
     46  1.1  christos 	;
     47  1.1  christos 
     48  1.1  christos : COMMENT
     49  1.1  christos 	skip_past_newline
     50  1.1  christos 	get_stuff_in_command
     51  1.1  christos 	drop
     52  1.1  christos 	;
     53  1.1  christos 
     54  1.1  christos : SYNOPSIS
     55  1.1  christos 	skip_past_newline
     56  1.6  christos 	1 synopsis_seen !
     57  1.6  christos 	"@deftypefn {Function} " catstr
     58  1.1  christos 	get_stuff_in_command  
     59  1.1  christos 	kill_bogus_lines
     60  1.6  christos 	collapse_whitespace
     61  1.1  christos 	indent
     62  1.1  christos 	catstr
     63  1.6  christos 	"\n" catstr
     64  1.1  christos 	;
     65  1.1  christos 
     66  1.1  christos : func
     67  1.1  christos 	"@findex "	- a
     68  1.1  christos 	skip_past_newline
     69  1.1  christos 	copy_past_newline
     70  1.1  christos 	dup		- a x x 
     71  1.1  christos 	"@subsubsection @code{" - a x x b 
     72  1.1  christos 	swap
     73  1.1  christos 	remchar
     74  1.1  christos 	"}\n" - a x b x c
     75  1.1  christos 	catstr 	catstr 	catstr 	catstr 	catstr 
     76  1.1  christos 	;
     77  1.1  christos 
     78  1.1  christos : bodytext
     79  1.1  christos 	get_stuff_in_command 
     80  1.1  christos 	bulletize
     81  1.1  christos 	kill_bogus_lines
     82  1.1  christos 	do_fancy_stuff
     83  1.1  christos 	courierize
     84  1.1  christos 	catstr
     85  1.1  christos 	"\n" catstr
     86  1.1  christos 	;
     87  1.1  christos 
     88  1.1  christos : asection
     89  1.1  christos 	skip_past_newline
     90  1.1  christos 	catstr
     91  1.1  christos 	copy_past_newline 	
     92  1.1  christos 	do_fancy_stuff catstr 	
     93  1.1  christos 	bodytext	
     94  1.1  christos 	;
     95  1.1  christos 
     96  1.1  christos : SECTION 
     97  1.1  christos 	"@section " asection  ;
     98  1.1  christos 
     99  1.1  christos : SUBSECTION
    100  1.1  christos 	"@subsection " asection  ;
    101  1.1  christos 
    102  1.1  christos : SUBSUBSECTION
    103  1.1  christos 	"@subsubsection " asection  ;
    104  1.1  christos 
    105  1.1  christos : subhead
    106  1.1  christos 	skip_past_newline
    107  1.1  christos 	bodytext
    108  1.1  christos 	;
    109  1.1  christos 
    110  1.1  christos : DESCRIPTION 
    111  1.6  christos 	subhead
    112  1.6  christos 	"@end deftypefn\n" synopsis_seen @ catstrif
    113  1.6  christos 	0 synopsis_seen !
    114  1.6  christos 	;
    115  1.1  christos 
    116  1.6  christos : FUNCTION
    117  1.6  christos 	func ;
    118  1.1  christos 
    119  1.1  christos : INTERNAL_FUNCTION
    120  1.1  christos 	func ;
    121  1.1  christos 
    122  1.6  christos : DEFINITION
    123  1.6  christos 	func ;
    124  1.1  christos 
    125  1.6  christos : INTERNAL_DEFINITION
    126  1.1  christos 	func ;
    127  1.1  christos 
    128  1.6  christos : EXTERNAL
    129  1.6  christos 	COMMENT ;
    130  1.1  christos 
    131  1.1  christos : INTERNAL
    132  1.6  christos 	COMMENT ;
    133  1.1  christos 
    134  1.1  christos : SENUM
    135  1.1  christos 	skip_past_newline
    136  1.1  christos 	"Here are the possible values for @code{enum "
    137  1.1  christos 	copy_past_newline remchar catstr
    138  1.1  christos 	"}:\n\n" catstr catstr
    139  1.1  christos 	;
    140  1.1  christos : ENUM
    141  1.1  christos 	skip_past_newline
    142  1.1  christos 	"@deffn {} "
    143  1.1  christos 	copy_past_newline catstr catstr
    144  1.1  christos 	;
    145  1.1  christos : ENUMX
    146  1.1  christos 	skip_past_newline
    147  1.1  christos 	"@deffnx {} "
    148  1.1  christos 	copy_past_newline catstr
    149  1.1  christos 	catstr
    150  1.1  christos 	;
    151  1.1  christos : ENUMEQ
    152  1.1  christos 	skip_past_newline
    153  1.1  christos 	"@deffn {} "
    154  1.1  christos 	copy_past_newline catstr catstr
    155  1.1  christos 	skip_past_newline
    156  1.1  christos 	;
    157  1.1  christos : ENUMEQX
    158  1.1  christos 	skip_past_newline
    159  1.1  christos 	"@deffnx {} "
    160  1.1  christos 	copy_past_newline catstr
    161  1.1  christos 	catstr
    162  1.1  christos 	skip_past_newline
    163  1.1  christos 	;
    164  1.1  christos : ENUMDOC
    165  1.1  christos 	skip_past_newline
    166  1.1  christos 	get_stuff_in_command
    167  1.1  christos 	strip_trailing_newlines
    168  1.1  christos 	catstr
    169  1.1  christos 	"\n@end deffn\n" catstr
    170  1.1  christos 	;
    171