X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/1625df5b18bc1ad696f149f059e6677ca0759dfc..7d424de14c0385012d328642bec6874c8e6cef17:/doc/bison.texinfo?ds=sidebyside diff --git a/doc/bison.texinfo b/doc/bison.texinfo index ab2cd6c5..deb88c1c 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -33,8 +33,8 @@ This manual (@value{UPDATED}) is for @acronym{GNU} Bison (version @value{VERSION}), the @acronym{GNU} parser generator. -Copyright @copyright{} 1988, 1989, 1990, 1991, 1992, 1993, 1995, 1998, -1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free +Copyright @copyright{} 1988, 1989, 1990, 1991, 1992, 1993, 1995, 1998, 1999, +2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. @quotation @@ -8570,8 +8570,8 @@ int yyparse (void); @c - initial action The C++ deterministic parser is selected using the skeleton directive, -@samp{%skeleton "lalr1.c"}, or the synonymous command-line option -@option{--skeleton=lalr1.c}. +@samp{%skeleton "lalr1.cc"}, or the synonymous command-line option +@option{--skeleton=lalr1.cc}. @xref{Decl Summary}. When run, @command{bison} will create several entities in the @samp{yy} @@ -8829,6 +8829,14 @@ additional argument for its constructor. The types for semantic values and locations (if enabled). @end defcv +@defcv {Type} {parser} {token} +A structure that contains (only) the definition of the tokens as the +@code{yytokentype} enumeration. To refer to the token @code{FOO}, the +scanner should use @code{yy::parser::token::FOO}. The scanner can use +@samp{typedef yy::parser::token token;} to ``import'' the token enumeration +(@pxref{Calc++ Scanner}). +@end defcv + @defcv {Type} {parser} {syntax_error} This class derives from @code{std::runtime_error}. Throw instances of it from user actions to raise parse errors. This is equivalent with first @@ -8895,8 +8903,8 @@ depends whether you use unions, or variants. Therefore the interface is as follows. -@deftypemethod {parser} {int} yylex (semantic_type& @var{yylval}, location_type& @var{yylloc}, @var{type1} @var{arg1}, ...) -@deftypemethodx {parser} {int} yylex (semantic_type& @var{yylval}, @var{type1} @var{arg1}, ...) +@deftypemethod {parser} {int} yylex (semantic_type* @var{yylval}, location_type* @var{yylloc}, @var{type1} @var{arg1}, ...) +@deftypemethodx {parser} {int} yylex (semantic_type* @var{yylval}, @var{type1} @var{arg1}, ...) Return the next token. Its type is the return value, its semantic value and location (if enabled) being @var{yylval} and @var{yylloc}. Invocations of @samp{%lex-param @{@var{type1} @var{arg1}@}} yield additional arguments. @@ -11271,10 +11279,6 @@ grammatically indivisible. The piece of text it represents is a token. @bye -@c Local Variables: -@c fill-column: 76 -@c End: - @c LocalWords: texinfo setfilename settitle setchapternewpage finalout texi FSF @c LocalWords: ifinfo smallbook shorttitlepage titlepage GPL FIXME iftex FSF's @c LocalWords: akim fn cp syncodeindex vr tp synindex dircategory direntry Naur @@ -11327,3 +11331,8 @@ grammatically indivisible. The piece of text it represents is a token. @c LocalWords: bisonVersion deftypecvx bisonSkeleton getStartPos getEndPos @c LocalWords: getLVal defvar deftypefn deftypefnx gotos msgfmt @c LocalWords: subdirectory Solaris nonassociativity + +@c Local Variables: +@c ispell-dictionary: "american" +@c fill-column: 76 +@c End: