|
|
This section contains user-defined routines. Usually the routines appearing here are used by actions that appear in the rules section. Additionally, a parser generated by yacc must be supplied with three routines: yylex to perform lexical analysis, yyerror to deal with error messages, and a main() routine. These routines can be supplied in the subroutines section.
The subroutines section is available as a convenience, because any functions that appear there can also be included using an include directive in the declarations section, or else linked to the parser module.