Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
The Epilogue is copied verbatim to the end of the parser file, just as
the Prologue is copied to the beginning. This is the most convenient
place to put anything that you want to have in the parser file but which need
not come before the definition of
yyparse. For example, the
yyerror often go here. Because
C requires functions to be declared before being used, you often need
to declare functions like
yyerror in the Prologue,
even if you define them int he Epilogue.
See section Parser C-Language Interface.
If the last section is empty, you may omit the `%%' that separates it from the grammar rules.
The Bison parser itself contains many macros and identifiers whose names start with `yy' or `YY', so it is a good idea to avoid using any such names (except those documented in this manual) in the epilogue of the grammar file.
|webmaster donations bookstore||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|