1%{ 2#ifdef YYBISON 3#define YYLEX_DECL() yylex(void) 4#define YYERROR_DECL() yyerror(const char *s) 5static int YYLEX_DECL(); 6static void YYERROR_DECL(); 7#endif 8%} 9%% 10start: ; 11 12%% 13 14#include <stdio.h> 15 16static int 17YYLEX_DECL() { 18 return -1; 19} 20 21static void 22YYERROR_DECL() { 23 printf("%s\n",s); 24} 25