err_syntax8a.y revision 264790
1264790Sbapt%{ 2264790Sbaptint yylex(void); 3264790Sbaptstatic void yyerror(const char *); 4264790Sbapt%} 5264790Sbapt 6264790Sbapt%token $$123 '\777' 7264790Sbapt 8264790Sbapt%% 9264790SbaptS: error 10264790Sbapt%% 11264790Sbapt 12264790Sbapt#include <stdio.h> 13264790Sbapt 14264790Sbaptint 15264790Sbaptmain(void) 16264790Sbapt{ 17264790Sbapt printf("yyparse() = %d\n", yyparse()); 18264790Sbapt return 0; 19264790Sbapt} 20264790Sbapt 21264790Sbaptint 22264790Sbaptyylex(void) 23264790Sbapt{ 24264790Sbapt return -1; 25264790Sbapt} 26264790Sbapt 27264790Sbaptstatic void 28264790Sbaptyyerror(const char* s) 29264790Sbapt{ 30264790Sbapt printf("%s\n", s); 31264790Sbapt} 32