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