TOPIC :-LEXICAL ANALYZER
~ HIMADRI MAM
PROBLEM STATEMENT!!!!
"To design and implement a Lexical Analyzer that reads a source program and breaks it down into a sequence of meaningful tokens such as keywords, identifiers, operators, literals, and symbols. This tool serves as the first phase of a compiler and is essential for converting high-level programming code into a format suitable for further syntactic and semantic analysis."
Text
This task has been variously called “scanning” and “lexing” (short for “lexical analysis”) over the years. Way back when computers were as big as Winnebagos but had less memory than your watch, some people used “scanner” only to refer to the piece of code that dealt withreading raw source code characters from disk and buffering them in memory. Then “lexing”was the subsequent phase that did useful stuff with the characters.