lexical analysis(lexing or scanning)scanning divides the input into meaningful chunks, called tokensinput: Source Code character streamoutput: Compiler Token stream & Lexical Error Compiler Lexical Analysis NotionLexical ScanningLexical Finite Automata