[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4. Parser C-Language Interface
The Bison parser is actually a C function named yyparse
. Here we
describe the interface conventions of yyparse
and the other
functions that it needs to use.
Keep in mind that the parser uses many C identifiers starting with ‘yy’ and ‘YY’ for internal purposes. If you use such an identifier (aside from those in this manual) in an action or in epilogue in the grammar file, you are likely to run into trouble.
4.1 The Parser Function yyparse | How to call yyparse and what it returns.
| |
4.2 The Push Parser Function yypush_parse | How to call yypush_parse and what it returns.
| |
4.3 The Pull Parser Function yypull_parse | How to call yypull_parse and what it returns.
| |
4.4 The Parser Create Function yystate_new | How to call yypstate_new and what it
returns.
| |
4.5 The Parser Delete Function yystate_delete | How to call yypstate_delete and what it
returns.
| |
4.6 The Lexical Analyzer Function yylex | You must supply a function yylex
which reads tokens.
| |
4.7 The Error Reporting Function yyerror | You must supply a function yyerror .
| |
4.8 Special Features for Use in Actions | Special features for use in actions. | |
4.9 Parser Internationalization | How to let the parser speak in the user's native language. |