Commit | Line | Data |
---|---|---|
3d60de81 SC |
1 | : ENDDD |
2 | skip_past_newline | |
3 | ; | |
4 | ||
5 | : EXAMPLE | |
6 | skip_past_newline | |
7 | ||
8 | get_stuff_in_command kill_bogus_lines translatecomments | |
9 | courierize catstr | |
10 | ||
11 | ; | |
12 | ||
13 | : NODE | |
14 | "@node " catstr skip_past_newline copy_past_newline catstr | |
15 | ; | |
16 | ||
17 | : CODE_FRAGMENT | |
18 | EXAMPLE | |
19 | ; | |
20 | ||
21 | : SYNOPSIS | |
22 | skip_past_newline | |
23 | "@strong{Synopsis}\n" catstr | |
24 | "@example\n" catstr | |
25 | get_stuff_in_command | |
26 | kill_bogus_lines | |
27 | indent | |
28 | catstr | |
29 | "@end example\n" catstr | |
30 | ||
31 | ; | |
32 | ||
33 | : func | |
34 | "@findex " - a | |
35 | skip_past_newline | |
36 | copy_past_newline | |
37 | dup - a x x | |
38 | "@subsubsection @code{" - a x x b | |
39 | swap | |
40 | remchar | |
41 | "}\n" - a x b x c | |
42 | catstr catstr catstr catstr catstr | |
43 | ; | |
44 | ||
45 | : FUNCTION | |
46 | "@findex " - a | |
47 | skip_past_newline | |
48 | copy_past_newline | |
49 | dup - a x x | |
50 | "@subsubsection @code{" - a x x b | |
51 | swap | |
52 | remchar | |
53 | "}\n" - a x b x c | |
54 | catstr catstr catstr catstr catstr | |
55 | ; | |
56 | ||
57 | : bodytext | |
58 | get_stuff_in_command | |
59 | kill_bogus_lines | |
60 | do_fancy_stuff | |
61 | bulletize | |
62 | courierize | |
63 | catstr | |
64 | "@*\n" catstr | |
65 | ; | |
66 | ||
67 | : asection | |
68 | skip_past_newline | |
69 | catstr | |
70 | copy_past_newline | |
71 | do_fancy_stuff catstr | |
72 | bodytext | |
73 | ; | |
74 | ||
75 | : SECTION | |
76 | "@section " asection ; | |
77 | ||
78 | : SUBSECTION | |
79 | "@subsection " asection ; | |
80 | ||
81 | : SUBSUBSECTION | |
82 | "@subsubsection " asection ; | |
83 | ||
84 | : subhead | |
85 | skip_past_newline | |
86 | bodytext | |
87 | ; | |
88 | ||
89 | ||
90 | ||
91 | ||
92 | : DESCRIPTION | |
93 | "@strong{Description}@*\n" catstr subhead ; | |
94 | ||
95 | : RETURNS | |
96 | "@strong{Returns}@*\n" catstr subhead ; | |
97 | ||
98 | : INTERNAL_FUNCTION | |
99 | func ; | |
100 | ||
101 | ||
102 | : INTERNAL_DEFINITION | |
103 | func ; | |
104 | ||
105 | ||
106 | : INTERNAL | |
107 | func ; | |
108 | ||
109 | : TYPEDEF | |
110 | FUNCTION ; | |
111 | ||
112 |