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
91413f34
Commit
91413f34
authored
Jan 31, 2019
by
François Bobot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Supports quotes in OCaml printer
parent
f428b633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/mlw/ocaml_printer.ml
src/mlw/ocaml_printer.ml
+5
-2
No files found.
src/mlw/ocaml_printer.ml
View file @
91413f34
...
...
@@ -92,12 +92,15 @@ module Print = struct
List
.
iter
(
fun
s
->
Hstr
.
add
h
s
()
)
ocaml_keywords
;
Hstr
.
mem
h
let
char_to_alnumusquote
c
=
match
c
with
'\''
->
"
\'
"
|
_
->
char_to_alnumus
c
(* iprinter: local names
aprinter: type variables
tprinter: toplevel definitions *)
let
iprinter
,
aprinter
,
tprinter
=
let
isanitize
=
sanitizer
char_to_alnumus
char_to_alnumus
in
let
lsanitize
=
sanitizer
char_to_lalnumus
char_to_alnumus
in
let
isanitize
=
sanitizer
char_to_alnumus
char_to_alnumus
quote
in
let
lsanitize
=
sanitizer
char_to_lalnumus
char_to_alnumus
quote
in
create_ident_printer
ocaml_keywords
~
sanitizer
:
isanitize
,
create_ident_printer
ocaml_keywords
~
sanitizer
:
lsanitize
,
create_ident_printer
ocaml_keywords
~
sanitizer
:
lsanitize
...
...
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