# # copy this file together with gen_grammar.sed and grammar.ddoc into the # docsrc directory and run to generate grammar.txt # DOCS="module.dd declaration.dd attribute.dd pragma.dd expression.dd traits.dd statement.dd struct.dd class.dd interface.dd enum.dd function.dd version.dd template.dd template-mixin.dd unittest.dd iasm.dd" dmd -o- -c -D $DOCS grammar.ddoc -Ddgrammar cd grammar cat ${DOCS//.dd/.html} | sed -f ../gen_grammar.sed >../grammar.txt cd ..