-D, --define.

* src/getargs.c (usage): Document -D.
	Fix help string for --locations.
	(command_line_location): New.
	(short_options, long_options, getargs): Support -D, --define.
	(getargs): Move -d support at the right place.
	* doc/bison.texinfo (Bison Options): Update.
	* tests/input.at (%define, --define): New.
(cherry picked from commit 58697c6d89)
This commit is contained in:
Akim Demaille
2008-07-29 12:52:19 +02:00
committed by Joel E. Denny
parent 75c21b618d
commit e14c68313b
4 changed files with 80 additions and 7 deletions

View File

@@ -7835,6 +7835,11 @@ In the parser file, define the macro @code{YYDEBUG} to 1 if it is not
already defined, so that the debugging facilities are compiled.
@xref{Tracing, ,Tracing Your Parser}.
@item -D @var{name}[=@var{value}]
@itemx --define=@var{name}[=@var{value}]
Same as running @samp{%define @var{name} "@var{value}"} (@pxref{Decl
Summary, ,%define}).
@item -L @var{language}
@itemx --language=@var{language}
Specify the programming language for the generated parser, as if