Remove building with NOCRYPTO option
[minix3.git] / external / bsd / byacc / dist / test / pure_error.y
blobb1d49305dc954bc8db6babac63c78fdf4398c220
1 /* $NetBSD: pure_error.y,v 1.1.1.4 2013/04/06 14:45:27 christos Exp $ */
3 %{
5 #ifdef YYBISON
6 #define YYSTYPE int
7 #define YYLEX_PARAM &yylval
8 #define YYLEX_DECL() yylex(YYSTYPE *yylval)
9 #define YYERROR_DECL() yyerror(const char *s)
10 int YYLEX_DECL();
11 static void YYERROR_DECL();
12 #endif
17 S: error
20 #include <stdio.h>
22 #ifdef YYBYACC
23 extern int YYLEX_DECL();
24 #endif
26 int
27 main(void)
29 printf("yyparse() = %d\n", yyparse());
30 return 0;
33 int
34 yylex(YYSTYPE *value)
36 return value ? 0 : -1;
39 static void
40 yyerror(const char* s)
42 printf("%s\n", s);