Skip to content

Commit 74f7152

Browse files
committed
Add let to the AST.
1 parent ab1ce8d commit 74f7152

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coq/JsSyntax.v

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ with stat :=
130130
| stat_label : string -> stat -> stat
131131
| stat_block : list stat -> stat
132132
| stat_var_decl : list (string * option expr) -> stat
133+
| stat_let_decl : list (string * option expr) -> stat
133134
| stat_if : expr -> stat -> option stat -> stat
134135
| stat_do_while : label_set -> stat -> expr -> stat
135136
| stat_while : label_set -> expr -> stat -> stat
@@ -141,6 +142,7 @@ with stat :=
141142
| stat_try : stat -> option (string * stat) -> option stat -> stat (* Note: try s1 [catch (x) s2] [finally s3] *)
142143
| stat_for : label_set -> option expr -> option expr -> option expr -> stat -> stat (* Note: for (e1; e2; e3) stat *)
143144
| stat_for_var : label_set -> list (string * option expr) -> option expr -> option expr -> stat -> stat (* Note: for (var ...; e2; e3) stat *)
145+
| stat_for_let : label_set -> list (string * option expr) -> option expr -> option expr -> stat -> stat (* Note: for (let ...; e2; e3) stat *)
144146
| stat_for_in : label_set -> expr -> expr -> stat -> stat (* Note: for (e1 in e2) stat *)
145147
| stat_for_in_var : label_set -> string -> option expr -> expr -> stat -> stat (* Note: for (var x [= e1] in e2) stat *)
146148
| stat_debugger : stat

0 commit comments

Comments
 (0)