The custom [`next_line` function in `lexer.mll`](https://github.com/realworldocaml/examples/blob/master/code/parsing/lexer.mll#L7) could be replaced with a standard [`Lexing.new_line`](http://caml.inria.fr/pub/docs/manual-ocaml/libref/Lexing.html) function introduced in 3.11.0. Perhaps, that can make the lexer example more concise and focused.