Notes to Self
What could go wrong? Create a directory with a given set of permissions and ownership. And if it exists already, fix permissions and ownership when necessary or fail otherwise while giving a good reason.
OCamlLex is the scanner generator that is part of the OCaml distribution. This article presents some examples for solving common scanning tasks.
OCamlLex stands in the tradition of scanner and parser generators Lex and Yacc but it would be a mistake to think about…
In OCaml, access to a non-local value like the printf function requires using the dot notation: Printf.printf. Below is a simple hello.ml that uses functions from the List, Printf, and Array modules of the standard library in this way: