From: Siraaj Khandkar Date: Mon, 28 May 2018 17:54:41 +0000 (-0400) Subject: Rename seq to exps X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=e7dfac93cf68329500935d8ebd59853992707d7d;p=tiger.ml.git Rename seq to exps --- diff --git a/tiger/src/lib/tiger/tiger_parser.mly b/tiger/src/lib/tiger/tiger_parser.mly index 27e051d..7ab644a 100644 --- a/tiger/src/lib/tiger/tiger_parser.mly +++ b/tiger/src/lib/tiger/tiger_parser.mly @@ -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 }