mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* NEWS (2.3a+): Don't say %language is experimental. Mention Java and
say its interface is experimental. * doc/bison.texinfo (Decl Summary): In the %language entry, mention Java. (Bison Options): In the -L and --language entry, mention Java. (Java Bison Interface): Say the interface is experimental. * src/getargs.c (usage): Mention -L and --language. * NEWS (2.3a+): Say the push parsing interface is experimental. * doc/bison.texinfo (Push Decl): Likewise. (Decl Summary): Likewise in the "%define api.push_pull" entry. (Push Parser Function): Likewise. (Pull Parser Function): Likewise. (Parser Create Function): Likewise. (Parser Delete Function): Likewise. (Table of Symbols): Likewise in the yypstate_delete, yypstate_new, yypull_parse, and yypush_parse entries. * NEWS (2.3a+): Mention XML support, and say the schema is experimental. * doc/bison.texinfo (Bison Options): Mention -x and --xml. * src/getargs.c (usage): Say the XML schema is experimental. * NEWS (2.3a+): Say option instead of flag.
This commit is contained in:
@@ -4553,6 +4553,9 @@ valid grammar.
|
||||
@cindex push parser
|
||||
@findex %define api.push_pull
|
||||
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
|
||||
A pull parser is called once and it takes control until all its input
|
||||
is completely parsed. A push parser, on the other hand, is called
|
||||
each time a new token is made available.
|
||||
@@ -4882,6 +4885,8 @@ Some of the accepted @var{variable}s are:
|
||||
|
||||
@item Purpose: Requests a pull parser, a push parser, or both.
|
||||
@xref{Push Decl, ,A Push Parser}.
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
|
||||
@item Accepted Values: @code{"pull"}, @code{"push"}, @code{"both"}
|
||||
|
||||
@@ -5042,7 +5047,7 @@ chosen as if the input file were named @file{@var{prefix}.y}.
|
||||
|
||||
@deffn {Directive} %language "@var{language}"
|
||||
Specify the programming language for the generated parser. Currently
|
||||
supported languages include C and C++.
|
||||
supported languages include C, C++, and Java.
|
||||
@var{language} is case-insensitive.
|
||||
@end deffn
|
||||
|
||||
@@ -5304,6 +5309,9 @@ exp: @dots{} @{ @dots{}; *randomness += 1; @dots{} @}
|
||||
@section The Push Parser Function @code{yypush_parse}
|
||||
@findex yypush_parse
|
||||
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
|
||||
You call the function @code{yypush_parse} to parse a single token. This
|
||||
function is available if either the @code{%define api.push_pull "push"} or
|
||||
@code{%define api.push_pull "both"} declaration is used.
|
||||
@@ -5319,6 +5327,9 @@ is required to finish parsing the grammar.
|
||||
@section The Pull Parser Function @code{yypull_parse}
|
||||
@findex yypull_parse
|
||||
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
|
||||
You call the function @code{yypull_parse} to parse the rest of the input
|
||||
stream. This function is available if the @code{%define api.push_pull "both"}
|
||||
declaration is used.
|
||||
@@ -5332,6 +5343,9 @@ The value returned by @code{yypull_parse} is the same as for @code{yyparse}.
|
||||
@section The Parser Create Function @code{yystate_new}
|
||||
@findex yypstate_new
|
||||
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
|
||||
You call the function @code{yypstate_new} to create a new parser instance.
|
||||
This function is available if either the @code{%define api.push_pull "push"} or
|
||||
@code{%define api.push_pull "both"} declaration is used.
|
||||
@@ -5348,6 +5362,9 @@ allocated.
|
||||
@section The Parser Delete Function @code{yystate_delete}
|
||||
@findex yypstate_delete
|
||||
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
|
||||
You call the function @code{yypstate_delete} to delete a parser instance.
|
||||
function is available if either the @code{%define api.push_pull "push"} or
|
||||
@code{%define api.push_pull "both"} declaration is used.
|
||||
@@ -7775,7 +7792,7 @@ already defined, so that the debugging facilities are compiled.
|
||||
@itemx --language=@var{language}
|
||||
Specify the programming language for the generated parser, as if
|
||||
@code{%language} was specified (@pxref{Decl Summary, , Bison Declaration
|
||||
Summary}). Currently supported languages include C and C++.
|
||||
Summary}). Currently supported languages include C, C++, and Java.
|
||||
@var{language} is case-insensitive.
|
||||
|
||||
@item --locations
|
||||
@@ -7876,9 +7893,18 @@ If the grammar file is @file{foo.y}, the output file will
|
||||
be @file{foo.dot}.
|
||||
|
||||
@item --graph=@var{graph-file}
|
||||
The behavior of @var{--graph} is the same than @samp{-g}. The only
|
||||
The behavior of @var{--graph} is the same as @samp{-g}. The only
|
||||
difference is that it has an optional argument which is the name of
|
||||
the output graph file.
|
||||
|
||||
@item -x
|
||||
@itemx --xml=@var{file}
|
||||
Output an XML report of the @acronym{LALR}(1) automaton computed by Bison.
|
||||
@code{=@var{file}} is optional.
|
||||
If omitted and the grammar file is @file{foo.y}, the output file will be
|
||||
@file{foo.xml}.
|
||||
(The current XML schema is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
@end table
|
||||
|
||||
@node Option Cross Key
|
||||
@@ -8669,6 +8695,9 @@ main (int argc, char *argv[])
|
||||
@c - %language "Java"
|
||||
@c - initial action
|
||||
|
||||
(The current Java interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
|
||||
The Java parser skeletons are selected using a language directive,
|
||||
@samp{%language "Java"}, or the synonymous command-line option
|
||||
@option{--language=java}.
|
||||
@@ -9781,6 +9810,8 @@ The function to delete a parser instance, produced by Bison in push mode;
|
||||
call this function to delete the memory associated with a parser.
|
||||
@xref{Parser Delete Function, ,The Parser Delete Function
|
||||
@code{yypstate_delete}}.
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
@end deffn
|
||||
|
||||
@deffn {Function} yypstate_new
|
||||
@@ -9788,6 +9819,8 @@ The function to create a parser instance, produced by Bison in push mode;
|
||||
call this function to create a new parser.
|
||||
@xref{Parser Create Function, ,The Parser Create Function
|
||||
@code{yypstate_new}}.
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
@end deffn
|
||||
|
||||
@deffn {Function} yypull_parse
|
||||
@@ -9795,12 +9828,16 @@ The parser function produced by Bison in push mode; call this function to
|
||||
parse the rest of the input stream.
|
||||
@xref{Pull Parser Function, ,The Pull Parser Function
|
||||
@code{yypull_parse}}.
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
@end deffn
|
||||
|
||||
@deffn {Function} yypush_parse
|
||||
The parser function produced by Bison in push mode; call this function to
|
||||
parse a single token. @xref{Push Parser Function, ,The Push Parser Function
|
||||
@code{yypush_parse}}.
|
||||
(The current push parsing interface is experimental and may evolve.
|
||||
More user feedback will help to stabilize it.)
|
||||
@end deffn
|
||||
|
||||
@deffn {Macro} YYPARSE_PARAM
|
||||
|
||||
Reference in New Issue
Block a user