Rename seq to exps
authorSiraaj Khandkar <siraaj@khandkar.net>
Mon, 28 May 2018 17:54:41 +0000 (13:54 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Mon, 28 May 2018 17:54:41 +0000 (13:54 -0400)
tiger/src/lib/tiger/tiger_parser.mly

index 27e051d..7ab644a 100644 (file)
@@ -151,15 +151,15 @@ exp:
     {
       "break[]"
     }
-  | LPAREN seq RPAREN
+  | LPAREN exps RPAREN
     {
-      sprintf "seq[%s]" $2
+      sprintf "exps[%s]" $2
     }
-  | LET decs IN seq END
+  | LET decs IN exps END
     {
       let decs = $2 in
-      let seq = $4 in
-      sprintf "let[decs[%s], in[seq[%s]]]" decs seq
+      let exps = $4 in
+      sprintf "let[decs[%s], in[exps[%s]]]" decs exps
     }
   | LPAREN RPAREN
     {
@@ -167,12 +167,12 @@ exp:
       "unit[]"
     }
 
-seq:
+exps:
   | exp
     {
       sprintf "%s" $1
     }
-  | exp SEMICOLON seq
+  | exp SEMICOLON exps
     {
       sprintf "%s; %s" $1 $3
     }
This page took 0.018329 seconds and 4 git commands to generate.