Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
6561585d
Commit
6561585d
authored
Aug 20, 2014
by
Pietro Abate
Browse files
Minor refactoring
parent
b59a4797
Changes
1
Hide whitespace changes
Inline
Side-by-side
types/patterns.ml
View file @
6561585d
...
...
@@ -80,20 +80,10 @@ let print_node ppf n =
to_print
:=
n
::
!
to_print
;
dump_print
ppf
let
print_lst
f
ppf
l
=
let
rec
aux
ppf
=
function
|
[]
->
Format
.
fprintf
ppf
"@."
|
[
h
]
->
Format
.
fprintf
ppf
"%a"
f
h
|
h
::
t
->
Format
.
fprintf
ppf
"%a,%a"
f
h
aux
t
in
match
l
with
|
[]
->
Format
.
fprintf
ppf
""
|_
->
Format
.
fprintf
ppf
"%a"
aux
l
let
pp_v
ppf
(
id
,
name
)
=
Format
.
fprintf
ppf
"(%d,%s)"
(
Upool
.
int
id
)
(
Encodings
.
Utf8
.
to_string
name
)
let
pp_fv
ppf
fv
=
print
_lst
pp_v
ppf
fv
let
pp_fv
ppf
fv
=
Utils
.
pp
_l
i
st
~
delim
:
(
""
,
""
)
pp_v
ppf
fv
let
pp_node
ppf
node
=
Format
.
fprintf
ppf
"id:%d; descr:[%a]; accept:[id:%d; descr:%a]; fv:[%a]"
...
...
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