9d81d6a10e
This module was originally inspired by js_of_ocaml Misc.MagicNumber module https://github.com/ocsigen/js_of_ocaml/blob/151b811/compiler/util.cppo.ml#L277-L347 It provides parsing and validation function for magic numbers, that can tell the difference between "not a valid magic number" and "a valid magic number, but with another version", and print user-friendly user messages about it. It does not contain any knowledge for where to find the magic number in an OCaml file (this depends on the file format); the parsing function should be called with an input channel already at the right position for whichever format is expect. |
||
---|---|---|
.. | ||
edit_distance.ml | ||
edit_distance.reference | ||
magic_number.ml | ||
overflow_detection.ml | ||
overflow_detection.reference | ||
test_strongly_connected_components.ml | ||
test_strongly_connected_components.reference |