Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
9810af7e
Commit
9810af7e
authored
Nov 04, 2015
by
POTTIER Francois
Browse files
Removed a piece of dead code.
parent
05e71dde
Changes
1
Show whitespace changes
Inline
Side-by-side
src/nonTerminalDefinitionInlining.ml
View file @
9810af7e
...
...
@@ -10,24 +10,8 @@ type 'a color =
|
BeingExpanded
|
Expanded
of
'
a
(* [id2index] and [index2id] convert both ways between a 0-based index
(into a list of producers) and an identifier (the name of the producer). *)
(* TEMPORARY unneeded?
let rec id2index accu producers x =
match producers with
| [] ->
assert false (* should not happen *)
| (_, y) :: producers ->
if x = y then begin
accu
end
else
id2index (accu + 1) producers x
let id2index producers x =
id2index 0 producers x
*)
(* [index2id] converts a 0-based index (into a list of producers) to
an identifier (the name of the producer). *)
let
index2id
producers
i
=
try
...
...
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