Next: D Semantic Values, Up: D Parsers [Contents][Index]
The D parser skeletons are selected using the %language "D"
directive or the -L D/--language=D option.
When generating a D parser, ‘bison basename.y’ will create a
single D source file named basename.d containing the
parser implementation. Using a grammar file without a .y suffix is
currently broken. The basename of the parser implementation file can be
changed by the %file-prefix
directive or the
-b/--file-prefix option. The entire parser implementation
file name can be changed by the %output
directive or the
-o/--output option. The parser implementation file
contains a single class for the parser.
You can create documentation for generated parsers using Ddoc.
GLR parsers are currently unsupported in D. Do not use the
glr-parser
directive.
No header file can be generated for D parsers. Do not use the
%header
directive or the -d/--header options.