<s>
Ddoc	B-Protocol
is	O
a	O
compiler-embedded	O
documentation	O
generator	O
and	O
associated	O
syntax	O
,	O
for	O
the	O
D	B-Application
programming	I-Application
language	I-Application
,	O
designed	O
by	O
Walter	O
Bright	O
.	O
</s>
<s>
It	O
is	O
similar	O
in	O
concept	O
to	O
Doxygen	B-Language
and	O
Javadoc	B-Language
.	O
</s>
<s>
Code	O
comments	O
are	O
associated	O
with	O
symbols	O
in	O
the	O
code	O
,	O
and	O
Ddoc	B-Protocol
uses	O
the	O
semantic	O
and	O
syntactic	O
information	O
available	O
from	O
the	O
D	B-Application
compiler	O
to	O
fill	O
in	O
routine	O
information	O
such	O
as	O
parameters	O
and	O
return	O
types	O
automatically	O
.	O
</s>
<s>
The	O
code	O
comments	O
and	O
symbol	O
table	O
information	O
are	O
processed	O
by	O
Ddoc	B-Protocol
into	O
an	O
internal	O
structured	O
format	O
.	O
</s>
<s>
The	O
latter	O
set	O
of	O
markup	O
macros	O
are	O
expanded	O
to	O
produce	O
,	O
by	O
default	O
,	O
HTML	B-Language
.	O
</s>
<s>
Both	O
the	O
template	O
macros	O
and	O
the	O
markup	O
macros	O
can	O
be	O
overridden	O
by	O
the	O
user	O
,	O
and	O
can	O
be	O
applied	O
via	O
external	O
files	O
analogous	O
to	O
HTML	B-Language
style	O
sheets	O
.	O
</s>
<s>
The	O
template	O
macros	O
can	O
be	O
changed	O
to	O
customize	O
the	O
high	O
level	O
formatting	O
,	O
and	O
the	O
markup	O
macros	O
can	O
be	O
altered	O
to	O
produce	O
other	O
output	O
forms	O
such	O
as	O
XML	B-Protocol
and	O
XHTML	B-Language
.	O
</s>
<s>
Several	O
compiler	O
options	O
are	O
available	O
to	O
cause	O
the	O
dmd	O
D	B-Application
compiler	O
to	O
output	O
an	O
HTML	B-Language
documentation	O
file	O
:	O
</s>
<s>
generate	O
documentation	O
-	O
output	O
will	O
be	O
the	O
same	O
name	O
as	O
the	O
D	B-Application
source	O
file	O
,	O
with	O
the	O
"	O
.d	O
"	O
extension	O
replaced	O
with	O
"	O
.html	B-Language
"	O
.	O
</s>
<s>
write	O
documentation	O
file	O
to	O
directory	O
,	O
output	O
filename	O
is	O
the	O
same	O
as	O
from	O
the	O
-D	O
option	O
.	O
</s>
