1264790Sbapt%{ 2264790Sbaptint yylex(void); 3264790Sbaptstatic void yyerror(const char *); 4264790Sbapt%} 5264790Sbapt 6264790Sbapt%type <check> expr 7264790Sbapt%type <rechk> recur 8264790Sbapt 9264790Sbapt%% 10264790Sbapt 11264790Sbaptexpr : '(' recur ')' 12264790Sbapt { $2 = 3; } 13264790Sbapt ; 14264790Sbapt 15264790Sbapt%% 16264790Sbapt 17264790Sbapt#include <stdio.h> 18264790Sbapt 19264790Sbaptint 20264790Sbaptmain(void) 21264790Sbapt{ 22264790Sbapt printf("yyparse() = %d\n", yyparse()); 23264790Sbapt return 0; 24264790Sbapt} 25264790Sbapt 26264790Sbaptint 27264790Sbaptyylex(void) 28264790Sbapt{ 29264790Sbapt return -1; 30264790Sbapt} 31264790Sbapt 32264790Sbaptstatic void 33264790Sbaptyyerror(const char* s) 34264790Sbapt{ 35264790Sbapt printf("%s\n", s); 36264790Sbapt} 37