Skip to content

Commit

Permalink
add do in front-end deparser. fixes #17781
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Apr 17, 2018
1 parent ca7e837 commit 51e11a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ast.scm
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
""))
"")
(string.rep " " ilvl) "end"))
((do)
(let ((call (cadr e))
(args (cdr (cadr (caddr e))))
(body (caddr (caddr e))))
(deparse-block (string (deparse call) " do " (deparse-arglist args))
(cdr body) ilvl)))
((struct)
(string (if (eq? (cadr e) 'true) "mutable " "")
"struct "
Expand Down

0 comments on commit 51e11a2

Please sign in to comment.