[llvm-commits] CVS: llvm/test/Programs/MultiSource/Applications/Burg/gram.y
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 2 18:06:01 PDT 2004
Changes in directory llvm/test/Programs/MultiSource/Applications/Burg:
gram.y updated: 1.1 -> 1.2
---
Log message:
Fix compatibility with bison 1.875b
---
Diffs of the changes: (+23 -23)
Index: llvm/test/Programs/MultiSource/Applications/Burg/gram.y
diff -u llvm/test/Programs/MultiSource/Applications/Burg/gram.y:1.1 llvm/test/Programs/MultiSource/Applications/Burg/gram.y:1.2
--- llvm/test/Programs/MultiSource/Applications/Burg/gram.y:1.1 Mon Oct 14 11:39:22 2002
+++ llvm/test/Programs/MultiSource/Applications/Burg/gram.y Wed Jun 2 17:58:22 2004
@@ -1,5 +1,5 @@
%{
-char rcsid_gram[] = "$Id: gram.y,v 1.1 2002/10/14 16:39:22 vadve Exp $";
+char rcsid_gram[] = "$Id: gram.y,v 1.2 2004/06/02 22:58:22 lattner Exp $";
#include <stdio.h>
#include "b.h"
@@ -45,46 +45,46 @@
;
spec : decls K_PPERCENT rules
- = { doSpec($1, $3); }
+ { doSpec($1, $3); }
;
-decls : /* lambda */ = { $$ = 0; }
- | decls decl = { $$ = newList($2, $1); }
+decls : /* lambda */ { $$ = 0; }
+ | decls decl { $$ = newList($2, $1); }
;
-decl : K_TERM bindinglist = { $$ = newArity(-1, $2); }
- | K_GRAM grammarlist = { $$ = 0; doGram($2); }
- | K_START ID = { $$ = 0; doStart($2); } /* kludge */
+decl : K_TERM bindinglist { $$ = newArity(-1, $2); }
+ | K_GRAM grammarlist { $$ = 0; doGram($2); }
+ | K_START ID { $$ = 0; doStart($2); } /* kludge */
;
-grammarlist : /* lambda */ = { $$ = 0; }
- | grammarlist ID = { $$ = newList($2, $1); }
+grammarlist : /* lambda */ { $$ = 0; }
+ | grammarlist ID { $$ = newList($2, $1); }
;
-bindinglist : /* lambda */ = { $$ = 0; }
- | bindinglist binding = { $$ = newList($2, $1); }
+bindinglist : /* lambda */ { $$ = 0; }
+ | bindinglist binding { $$ = newList($2, $1); }
;
-binding : ID '=' INT = { $$ = newBinding($1, $3); }
+binding : ID '=' INT { $$ = newBinding($1, $3); }
;
-rules : /* lambda */ = { $$ = 0; }
- | rules rule = { $$ = newList($2, $1); }
+rules : /* lambda */ { $$ = 0; }
+ | rules rule { $$ = newList($2, $1); }
;
-rule : ID ':' pattern '=' INT cost ';' = { $$ = newRuleAST($1, $3, $5, $6); }
+rule : ID ':' pattern '=' INT cost ';' { $$ = newRuleAST($1, $3, $5, $6); }
;
-pattern : ID = { $$ = newPatternAST($1, 0); }
- | ID '(' pattern ')' = { $$ = newPatternAST($1, newList($3,0)); }
- | ID '(' pattern ',' pattern ')' = { $$ = newPatternAST($1, newList($3, newList($5, 0))); }
+pattern : ID { $$ = newPatternAST($1, 0); }
+ | ID '(' pattern ')' { $$ = newPatternAST($1, newList($3,0)); }
+ | ID '(' pattern ',' pattern ')' { $$ = newPatternAST($1, newList($3, newList($5, 0))); }
;
-cost : /* lambda */ = { $$ = 0; }
- | '(' INT costtail ')' = { $$ = newIntList($2, $3); }
+cost : /* lambda */ { $$ = 0; }
+ | '(' INT costtail ')' { $$ = newIntList($2, $3); }
;
-costtail : /* lambda */ = { $$ = 0; }
- | ',' INT costtail = { $$ = newIntList($2, $3); }
- | INT costtail = { $$ = newIntList($1, $2); }
+costtail : /* lambda */ { $$ = 0; }
+ | ',' INT costtail { $$ = newIntList($2, $3); }
+ | INT costtail { $$ = newIntList($1, $2); }
;
More information about the llvm-commits
mailing list