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
16
Merge Requests
16
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
decf673c
Commit
decf673c
authored
Mar 11, 2010
by
Francois Bobot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A chaque fichier alt-ergo.ml remet à zero son printer, plus simple que pour pretty
parent
11525d04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
src/core/ident.ml
src/core/ident.ml
+3
-0
src/core/ident.mli
src/core/ident.mli
+2
-0
src/output/alt_ergo.ml
src/output/alt_ergo.ml
+4
-1
No files found.
src/core/ident.ml
View file @
decf673c
...
...
@@ -115,6 +115,9 @@ let forget_id (indices,values,_) id =
Hashtbl
.
remove
values
id
.
id_tag
with
Not_found
->
()
let
forget_all
(
indices
,
values
,_
)
=
Hashtbl
.
clear
indices
;
Hashtbl
.
clear
values
(** Sanitizers *)
exception
Unsanitizable
...
...
src/core/ident.mli
View file @
decf673c
...
...
@@ -79,6 +79,8 @@ val id_unique :
(* forget an ident *)
val
forget_id
:
ident_printer
->
ident
->
unit
(* forget all the idents *)
val
forget_all
:
ident_printer
->
unit
(* generic sanitizer taking a separate encoder for the first letter *)
val
sanitizer
:
(
char
->
string
)
->
(
char
->
string
)
->
string
->
string
...
...
src/output/alt_ergo.ml
View file @
decf673c
...
...
@@ -211,7 +211,10 @@ let print_context drv fmt ctxt =
let
decls
=
Context
.
get_decls
ctxt
in
ignore
(
print_list_opt
newline2
(
print_decl
drv
ctxt
)
fmt
decls
)
let
()
=
Driver
.
register_printer
"alt-ergo"
print_context
let
()
=
Driver
.
register_printer
"alt-ergo"
(
fun
drv
fmt
ctxt
->
forget_all
ident_printer
;
print_context
drv
fmt
ctxt
)
let
print_goal
drv
fmt
(
id
,
f
,
ctxt
)
=
print_context
drv
fmt
ctxt
;
...
...
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