Skip to content

Commit

Permalink
call pp_raw_indented_block from optional_else
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed Mar 8, 2024
1 parent d913884 commit 2b1ce61
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libASL/asl.ott
Original file line number Diff line number Diff line change
Expand Up @@ -630,12 +630,7 @@ s_elsif :: 'S_Elsif_' ::=

optional_else :: 'S_Else' ::=
{{ phantom }} {{ ocaml stmt list }}
{{ pp-raw x = (nest 4 (lbrace
^^ hardline
^^ (separate hardline (List.map pp_raw_stmt x))))
^^ hardline
^^ rbrace
}}
{{ pp-raw x = pp_raw_indented_block x }}
{{ pp x = match x with [] -> string ""
| ys -> string "else {" ^^ hardline
^^ (nest 4 (separate (string "\n") (List.map pp_stmt ys @ [string "}"])))
Expand Down

0 comments on commit 2b1ce61

Please sign in to comment.