Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
why3
Commits
a6a074d1
Commit
a6a074d1
authored
Oct 3, 2018
by
nilfit
Browse files
Options
Downloads
Patches
Plain Diff
fix printing of 1-tuples
parent
3c52420d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mlw/rust_printer.ml
+3
-0
3 additions, 0 deletions
src/mlw/rust_printer.ml
with
3 additions
and
0 deletions
src/mlw/rust_printer.ml
+
3
−
0
View file @
a6a074d1
...
...
@@ -772,6 +772,9 @@ module Print = struct
|
Eassign
(
rho
,
rs
,
pv
)
->
fprintf
fmt
"%a.%a = %a"
(
print_lident
info
)
(
pv_name
rho
)
(
print_lident
info
)
rs
.
rs_name
(
print_lident
info
)
(
pv_name
pv
)
|
Etup
[
e
]
->
(* 1-tuples don't exist in whyml, so this is not strictly needed *)
fprintf
fmt
"(%a,)"
(
print_expr
info
)
e
|
Etup
el
->
fprintf
fmt
"(%a)"
(
print_list
comma
(
print_expr
info
))
el
|
Eenum
(
rs
,
[]
)
->
print_uident
info
fmt
rs
.
rs_name
|
Eenum
(
rs
,
el
)
->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment