]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/byacc/test/empty.y
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / byacc / test / empty.y
1 %{
2 #ifdef YYBISON
3 #define YYLEX_DECL() yylex(void)
4 #define YYERROR_DECL() yyerror(const char *s)
5 static int YYLEX_DECL();
6 static void YYERROR_DECL();
7 #endif
8 %}
9 %%
10 start: ;
11
12 %%
13
14 #include <stdio.h>
15
16 static int
17 YYLEX_DECL() {
18   return -1;
19 }
20
21 static void
22 YYERROR_DECL() {
23   printf("%s\n",s);
24 }