err_syntax10.y revision 264790
1123682Sache%{ 2123682Sacheint yylex(void); 3123682Sachestatic void yyerror(const char *); 4123682Sache%} 5123682Sache 6123682Sache%token <text> '(' '*' '&' 7123682Sache%token <TEXT> '(' '*' '&' 8123682Sache 9123682Sache%% 10123682SacheS: error 11123682Sache%% 12123682Sache 13123682Sache#include <stdio.h> 14123682Sache 15123682Sacheint 16123682Sachemain(void) 17123682Sache{ 18123682Sache printf("yyparse() = %d\n", yyparse()); 19123682Sache return 0; 20123682Sache} 21123682Sache 22123682Sacheint 23123682Sacheyylex(void) 24123682Sache{ 25123682Sache return -1; 26123682Sache} 27123682Sache 28123682Sachestatic void 29123682Sacheyyerror(const char* s) 30123682Sache{ 31123682Sache printf("%s\n", s); 32123682Sache} 33123682Sache