repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove building with NOCRYPTO option
[minix3.git]
/
external
/
bsd
/
byacc
/
dist
/
test
/
err_syntax5.y
blob
f46070e5a2bd8af9ede457c7475067f745f4a83f
1
/* $NetBSD: err_syntax5.y,v 1.1.1.1 2015/01/03 22:58:23 christos Exp $ */
2
3
%
{
4
int
yylex
(
void
);
5
static void
yyerror
(
const char
*);
6
%
}
7
8
%
union
{
9
char
*
str
;
10
int
num
11
12
%%
13
S:
error
14
%%
15
16
#include <stdio.h>
17
18
int
19
main
(
void
)
20
{
21
printf
(
"yyparse() = %d
\n
"
,
yyparse
());
22
return
0
;
23
}
24
25
int
26
yylex
(
void
)
27
{
28
return
-
1
;
29
}
30
31
static void
32
yyerror
(
const char
*
s
)
33
{
34
printf
(
"%s
\n
"
,
s
);
35
}