Adding delimiter option to the lexer part

This is to make the project more reusable.
Adding lineSeparator, using regex to matche \n character.