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_syntax20.y
blob
c3a3d49299b1655f9e933a38bba5ecd85897ded2
1
/* $NetBSD: err_syntax20.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
%type
<
check
>
expr
9
%type
<
rechk
>
recur
10
11
%%
12
13
expr
:
'('
recur
')'
14
{
$2
=
3
; }
15
;
16
17
%%
18
19
#include <stdio.h>
20
21
int
22
main
(
void
)
23
{
24
printf
(
"yyparse() = %d
\n
"
,
yyparse
());
25
return
0
;
26
}
27
28
int
29
yylex
(
void
)
30
{
31
return
-
1
;
32
}
33
34
static void
35
yyerror
(
const char
*
s
)
36
{
37
printf
(
"%s
\n
"
,
s
);
38
}