Added error token to TokenTypes and made lexer able to lex from a scanner or inputstream.