Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
125
Issues
125
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
f50f1d6b
Commit
f50f1d6b
authored
Mar 25, 2019
by
Raphael Rieu-Helft
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a local exception (backward compatibility)
parent
4bfbb32a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/core/printer.ml
src/core/printer.ml
+2
-3
No files found.
src/core/printer.ml
View file @
f50f1d6b
...
...
@@ -285,7 +285,6 @@ let syntax_arguments_typed s print_arg print_type t fmt l =
let
syntax_range_literal
?
(
cb
=
None
)
s
fmt
c
=
let
f
s
b
e
fmt
=
let
exception
Callback
in
try
let
v
=
c
.
Number
.
il_int
in
let
base
=
match
s
.
[
e
-
1
]
with
...
...
@@ -293,7 +292,7 @@ let syntax_range_literal ?(cb=None) s fmt c =
|
'
d'
->
10
|
'
o'
->
8
|
'
b'
->
2
|
'
c'
->
raise
Callback
|
'
c'
->
raise
Exit
|
_
->
assert
false
in
let
digits
=
...
...
@@ -316,7 +315,7 @@ let syntax_range_literal ?(cb=None) s fmt c =
else
v
in
Number
.
print_in_base
base
digits
fmt
v
with
Callback
->
with
Exit
->
match
cb
with
|
Some
cb
->
cb
fmt
c
|
None
->
failwith
(
"custom format string with no callback passed"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment