[ci skip] add test framework reformat to .git-blame-ignore-revs
[scons.git] / test / Decider / MD5-winonly-fixture / test_parse.y
blob2172298fa757c5f4a37ca531db7a4daaf7eaa48b
1 %{
2 #include<stdio.h>
4 int yyerror(char *s);
5 int yylex();
7 int regs[26];
8 int base;
12 %start digit
14 %union { int a; }
17 %token DIGIT LETTER
19 %left '|'
20 %left '&'
21 %left '+' '-'
22 %left '*' '/' '%'
23 %left UMINUS /*supplies precedence for unary minus */
25 %% /* beginning of rules section */
27 digit: DIGIT;
31 int
32 main()
34 return(yyparse());
37 int
38 yyerror(s)
39 char *s;
41 fprintf(stderr, "%s\n",s);
42 return(0);
45 int
46 yywrap()
48 return(1);