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
tools/llvm: Do not build with symbols
[minix3.git]
/
external
/
bsd
/
byacc
/
dist
/
test
/
code_error.y
blob
8cfd0b31916376700bd57ec24760cac1d73ea60a
1
/* $NetBSD: code_error.y,v 1.1.1.4 2013/04/06 14:45:29 christos Exp $ */
2
3
%
{
4
5
#ifdef YYBISON
6
int
yylex
(
void
);
7
static void
yyerror
(
const char
*);
8
#endif
9
10
%
}
11
%%
12
S:
error
13
%%
14
15
#include <stdio.h>
16
17
#ifdef YYBYACC
18
extern
int
YYLEX_DECL
();
19
#endif
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
}