Can you write a lexer in a single expression? Now you can.
This Lexer has a beautiful fluent interface and the implementation is based on the two preview lexer implementations: Messerli.Lexer and apophis.Lexer.
Both have been now deprecated, and redirect to this package.
For more information you should read the very detailed Readme, you can also refer to the tests which have helpful examples.