Refactor ocamllex and ocamlyacc files in common.

Signed-off-by: Jerome Maloberti <jmaloberti@gmail.com>
Add .merlin.

Signed-off-by: Jerome Maloberti <jmaloberti@gmail.com>