repo.or.cz
/
scons.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ci skip] add test framework reformat to .git-blame-ignore-revs
[scons.git]
/
test
/
Decider
/
MD5-winonly-fixture
/
test_parse.y
blob
2172298fa757c5f4a37ca531db7a4daaf7eaa48b
1
%
{
2
#include<stdio.h>
3
4
int
yyerror
(
char
*
s
);
5
int
yylex
();
6
7
int
regs
[
26
];
8
int
base
;
9
10
%
}
11
12
%start digit
13
14
%
union
{
int
a
; }
15
16
17
%token DIGIT LETTER
18
19
%left
'|'
20
%left
'&'
21
%left
'+'
'-'
22
%left
'*'
'/'
'%'
23
%left UMINUS
/*supplies precedence for unary minus */
24
25
%%
/* beginning of rules section */
26
27
digit:
DIGIT
;
28
29
30
%%
31
int
32
main
()
33
{
34
return
(
yyparse
());
35
}
36
37
int
38
yyerror
(
s
)
39
char
*
s
;
40
{
41
fprintf
(
stderr
,
"%s
\n
"
,
s
);
42
return
(
0
);
43
}
44
45
int
46
yywrap
()
47
{
48
return
(
1
);
49
}