New lexer able to parse multiline steps

Hi,

I have created a new lexer which is able to parse multiline steps. I also cleaned up the code: removed unused code and parameters.
Could you please review and merge if you like it.

Kind regards,

Dmitry