HPlogo HP C++ Programmer's Guide: HP 9000 Series Workstations and Servers > Chapter 6 HP Specific Features of lex and yacc

Notes on Using lex and yacc

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

When using lex and yacc, please note the following:

  • Programs generated by yacc or lex can have many unreachable break statements, causing multiple C++ warnings.

  • If you want to call the yacc generated routines, yyerror, yylex and yyparse, your program must include the yacc.h header file.

    #include <yacc.h>
    

© Hewlett-Packard Development Company, L.P.