title: Print tokenization of a string
body: <p>I'm currently working on a programming language as a hobby. It would make lexing errors massively easier to debug if it was possible to have ocamllex print out the tokens it matches as it finds them, I occasionally just add print statements to my rules manually but there should be an easier way to do that.</p>
  
  <p>So what I'm asking is, given a .mll file and some input, is there an automatic way to see the corresponding tokens?</p>