mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 02:33:03 +00:00
doc: java supports push parsers since 3.0 (2013-07-25)
* doc/bison.texi: Clarify this.
This commit is contained in:
@@ -2369,9 +2369,9 @@ yylex (void)
|
|||||||
@end group
|
@end group
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
Basically, the lexical analyzer performs the same processing as before:
|
Basically, the lexical analyzer performs the same processing as before: it
|
||||||
it skips blanks and tabs, and reads numbers or single-character tokens.
|
skips blanks and tabs, and reads numbers or single-character tokens. In
|
||||||
In addition, it updates @code{yylloc}, the global variable (of type
|
addition, it updates @code{yylloc}, the global variable (of type
|
||||||
@code{YYLTYPE}) containing the token's location.
|
@code{YYLTYPE}) containing the token's location.
|
||||||
|
|
||||||
Now, each time this function returns a token, the parser has its kind as
|
Now, each time this function returns a token, the parser has its kind as
|
||||||
@@ -6132,7 +6132,7 @@ the @code{full} value was introduced in Bison 2.7
|
|||||||
@deffn Directive {%define api.push-pull} @var{kind}
|
@deffn Directive {%define api.push-pull} @var{kind}
|
||||||
|
|
||||||
@itemize @bullet
|
@itemize @bullet
|
||||||
@item Language(s): C (deterministic parsers only)
|
@item Language(s): C (deterministic parsers only), Java
|
||||||
|
|
||||||
@item Purpose: Request a pull parser, a push parser, or both.
|
@item Purpose: Request a pull parser, a push parser, or both.
|
||||||
@xref{Push Decl}.
|
@xref{Push Decl}.
|
||||||
@@ -13022,9 +13022,6 @@ of the parser is always local to an instance of the parser class.
|
|||||||
Therefore, all Java parsers are ``pure'', and the @code{%define api.pure}
|
Therefore, all Java parsers are ``pure'', and the @code{%define api.pure}
|
||||||
directive does nothing when used in Java.
|
directive does nothing when used in Java.
|
||||||
|
|
||||||
Push parsers are currently unsupported in Java and @code{%define
|
|
||||||
api.push-pull} have no effect.
|
|
||||||
|
|
||||||
GLR parsers are currently unsupported in Java. Do not use the
|
GLR parsers are currently unsupported in Java. Do not use the
|
||||||
@code{glr-parser} directive.
|
@code{glr-parser} directive.
|
||||||
|
|
||||||
@@ -14738,8 +14735,8 @@ In semantic actions, it stores the location of the lookahead token.
|
|||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deffn {Type} YYLTYPE
|
@deffn {Type} YYLTYPE
|
||||||
Data type of @code{yylloc}; by default, a structure with four
|
Data type of @code{yylloc}; by default, a structure with four members.
|
||||||
members. @xref{Location Type}.
|
@xref{Location Type}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deffn {Variable} yylval
|
@deffn {Variable} yylval
|
||||||
|
|||||||
Reference in New Issue
Block a user