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
/
error.y
blob
e71e96c6267bc63411c55e0a2df120ae55429b36
1
/* $NetBSD: error.y,v 1.1.1.5 2013/04/06 14:45:27 christos Exp $ */
2
3
%
{
4
int
yylex
(
void
);
5
static void
yyerror
(
const char
*);
6
%
}
7
%%
8
S:
error
9
%%
10
11
#include <stdio.h>
12
13
int
14
main
(
void
)
15
{
16
printf
(
"yyparse() = %d
\n
"
,
yyparse
());
17
return
0
;
18
}
19
20
int
21
yylex
(
void
)
22
{
23
return
-
1
;
24
}
25
26
static void
27
yyerror
(
const char
*
s
)
28
{
29
printf
(
"%s
\n
"
,
s
);
30
}