realworldocaml / examples

All the examples in Real World OCaml
The Unlicense
376 stars 81 forks source link

Suggestion: Use `Lexing.new_line` instead of custom `next_line` #30

Open keleshev opened 9 years ago

keleshev commented 9 years ago

The custom next_line function in lexer.mll could be replaced with a standard Lexing.new_line function introduced in 3.11.0.

Perhaps, that can make the lexer example more concise and focused.