LexerEngine class. Methods scan and eol_pattern updated.

LexerEngine class:
-scan method extended to cope with multiline input pattern.
-eol_pattern now matches eol that consists of just a \r.
-private method multiline? added.