Lexer Lexer / Tokeniser / Scanner Phase 1 in a Compiler / Interpreter — Converting Raw Source Code into Tokens