1 |
Ceci est le fichier Info bison.info, produit par Makeinfo version 4.0b |
This is bison.info, produced by makeinfo version 4.0b from |
2 |
à partir bison.texinfo. |
bison.texinfo. |
3 |
|
|
4 |
START-INFO-DIR-ENTRY |
START-INFO-DIR-ENTRY |
5 |
* bison: (bison). GNU Project parser generator (yacc replacement). |
* bison: (bison). GNU Project parser generator (yacc replacement). |
787 |
nonzero, all integers are parsed in hexadecimal, and tokens starting |
nonzero, all integers are parsed in hexadecimal, and tokens starting |
788 |
with letters are parsed as integers if possible. |
with letters are parsed as integers if possible. |
789 |
|
|
790 |
The declaration of `hexflag' shown in the C declarations section of |
The declaration of `hexflag' shown in the prologue of the parser file |
791 |
the parser file is needed to make it accessible to the actions (*note |
is needed to make it accessible to the actions (*note The Prologue: |
792 |
The C Declarations Section: C Declarations.). You must also write the |
Prologue.). You must also write the code in `yylex' to obey the flag. |
|
code in `yylex' to obey the flag. |
|
793 |
|
|
794 |
|
|
795 |
File: bison.info, Node: Tie-in Recovery, Prev: Lexical Tie-ins, Up: Context Dependency |
File: bison.info, Node: Tie-in Recovery, Prev: Lexical Tie-ins, Up: Context Dependency |
858 |
|
|
859 |
To enable compilation of trace facilities, you must define the macro |
To enable compilation of trace facilities, you must define the macro |
860 |
`YYDEBUG' when you compile the parser. You could use `-DYYDEBUG=1' as |
`YYDEBUG' when you compile the parser. You could use `-DYYDEBUG=1' as |
861 |
a compiler option or you could put `#define YYDEBUG 1' in the C |
a compiler option or you could put `#define YYDEBUG 1' in the prologue |
862 |
declarations section of the grammar file (*note The C Declarations |
of the grammar file (*note The Prologue: Prologue.). Alternatively, use |
863 |
Section: C Declarations.). Alternatively, use the `-t' option when you |
the `-t' option when you run Bison (*note Invoking Bison: Invocation.). |
864 |
run Bison (*note Invoking Bison: Invocation.). We always define |
We always define `YYDEBUG' so that debugging is always possible. |
|
`YYDEBUG' so that debugging is always possible. |
|
865 |
|
|
866 |
The trace facility uses `stderr', so you must add |
The trace facility uses `stderr', so you must add |
867 |
`#include <stdio.h>' to the C declarations section unless it is already |
`#include <stdio.h>' to the prologue unless it is already there. |
|
there. |
|
868 |
|
|
869 |
Once you have compiled the program with trace facilities, the way to |
Once you have compiled the program with trace facilities, the way to |
870 |
request a trace is to store a nonzero value in the variable `yydebug'. |
request a trace is to store a nonzero value in the variable `yydebug'. |