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_syntax9.y
blob
959ab91105e80618c072799778e392b5cbb18ca2
1
/* $NetBSD: err_syntax9.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
%start text
9
%token text
'('
'*'
'&'
10
11
%%
12
S:
error
13
%%
14
15
#include <stdio.h>
16
17
int
18
main
(
void
)
19
{
20
printf
(
"yyparse() = %d
\n
"
,
yyparse
());
21
return
0
;
22
}
23
24
int
25
yylex
(
void
)
26
{
27
return
-
1
;
28
}
29
30
static void
31
yyerror
(
const char
*
s
)
32
{
33
printf
(
"%s
\n
"
,
s
);
34
}