err_syntax8.y revision 264790
137960Ssos%{ 237960Ssosint yylex(void); 337960Ssosstatic void yyerror(const char *); 437960Ssos%} 537960Ssos 637960Ssos%token . '\777' 743334Syokota 837960Ssos%% 937960SsosS: error 1037960Ssos%% 1137960Ssos 1237960Ssos#include <stdio.h> 1337960Ssos 1437960Ssosint 1537960Ssosmain(void) 1637960Ssos{ 1737960Ssos printf("yyparse() = %d\n", yyparse()); 1837960Ssos return 0; 1937960Ssos} 2037960Ssos 2137960Ssosint 2237960Ssosyylex(void) 2337960Ssos{ 2437960Ssos return -1; 2537960Ssos} 2637960Ssos 2737960Ssosstatic void 2837960Ssosyyerror(const char* s) 2937960Ssos{ 3037960Ssos printf("%s\n", s); 3137960Ssos} 3237960Ssos