Skip to content

Commit

Permalink
corrected decs order in tiger.grm
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsu committed Dec 16, 2011
1 parent 7ae3fd5 commit 3cc5ad9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion IRTranslation/tiger.grm
Expand Up @@ -159,7 +159,7 @@ boolexp: exp AND exp (makeIf(exp1, exp2, SOME(A.IntExp(0)), exp1l

(* Declarations *)
decs: (* empty *) (nil)
| dec decs ([dec] @ decs)
| dec decs (decs @ [dec])

dec: vardec (vardec)
| tydecs %prec LOWPREC (A.TypeDec tydecs)
Expand Down
2 changes: 1 addition & 1 deletion InsnSelection/tiger.grm
Expand Up @@ -159,7 +159,7 @@ boolexp: exp AND exp (makeIf(exp1, exp2, SOME(A.IntExp(0)), exp1l

(* Declarations *)
decs: (* empty *) (nil)
| dec decs ([dec] @ decs)
| dec decs (decs @ [dec])

dec: vardec (vardec)
| tydecs %prec LOWPREC (A.TypeDec tydecs)
Expand Down
2 changes: 1 addition & 1 deletion Parser/tiger.grm
Expand Up @@ -159,7 +159,7 @@ boolexp: exp AND exp (makeIf(exp1, exp2, SOME(A.IntExp(0)), exp1l

(* Declarations *)
decs: (* empty *) (nil)
| dec decs ([dec] @ decs)
| dec decs (decs @ [dec])

dec: vardec (vardec)
| tydecs %prec LOWPREC (A.TypeDec tydecs)
Expand Down
2 changes: 1 addition & 1 deletion RegisterAllocation/tiger.grm
Expand Up @@ -159,7 +159,7 @@ boolexp: exp AND exp (makeIf(exp1, exp2, SOME(A.IntExp(0)), exp1l

(* Declarations *)
decs: (* empty *) (nil)
| dec decs ([dec] @ decs)
| dec decs (decs @ [dec])

dec: vardec (vardec)
| tydecs %prec LOWPREC (A.TypeDec tydecs)
Expand Down
2 changes: 1 addition & 1 deletion SemanticAnalysis/tiger.grm
Expand Up @@ -159,7 +159,7 @@ boolexp: exp AND exp (makeIf(exp1, exp2, SOME(A.IntExp(0)), exp1l

(* Declarations *)
decs: (* empty *) (nil)
| dec decs ([dec] @ decs)
| dec decs (decs @ [dec])

dec: vardec (vardec)
| tydecs %prec LOWPREC (A.TypeDec tydecs)
Expand Down

0 comments on commit 3cc5ad9

Please sign in to comment.