Remove building with NOCRYPTO option
[minix3.git] / external / bsd / byacc / dist / test / err_syntax23.y
blob6fabfeb7c68db54da0a83817a2b86fe823e1edc9
1 /* $NetBSD: err_syntax23.y,v 1.1.1.1 2015/01/03 22:58:23 christos Exp $ */
3 %{
4 int yylex(void);
5 static void yyerror(const char *);
6 %}
8 %union {
9 int ival;
10 double dval;
13 %type <tag2> recur
15 %token NUMBER
19 expr : '(' recur ')'
20 { $$ = $2; }
23 recur : NUMBER
24 { $$ = 1; }
29 #include <stdio.h>
31 int
32 main(void)
34 printf("yyparse() = %d\n", yyparse());
35 return 0;
38 int
39 yylex(void)
41 return -1;
44 static void
45 yyerror(const char* s)
47 printf("%s\n", s);