DLang Spec rewrite (?)
Walter Bright
newshound2 at digitalmars.com
Sat May 25 21:26:23 PDT 2013
On 5/25/2013 9:15 PM, Borden wrote:
> 3) Consider, for example, this part from abi.dd:
> $(GRAMMAR
> $(I MangledName):
> $(B _D) $(I QualifiedName) $(I Type)
> $(B _D) $(I QualifiedName) $(B M) $(I Type)
>
> $(I QualifiedName):
> $(I SymbolName)
> $(I SymbolName) $(I QualifiedName)
>
> $(I SymbolName):
> $(I LName)
> $(I TemplateInstanceName)
> )
> Say I want to style this using a descriptions list, the <dl> tag. That's easy
> enough, but now how do I tell DDoc to tag the $(I) macros using <dt> and <dd> tags?
You wouldn't use the I macro. You'd write a macro that reflected the structure -
you might want to look at the TABLE, TROW, THEAD, THX and TDX macros to see how
tables are generated in a flexible, structured manner.
More information about the Digitalmars-d
mailing list