Phases Of Compiler In System Programming!!!!

Phases Of Compiler In System Programming !!! Phases of compiler : Lexical analysis Syntax analysis Semantic analysis Intermediate code generation Code optimization Code generation Phases Of Compiler In System Programming!!!! Lexical Analysis Lexical analysis is the first phase of compiler which is also termed as scanning. Source program is scanned to read the stream of characters and those characters are grouped to form a sequence called lexemes which produces token as output. Token: Token is a sequence of characters that represent lexical unit, which matches with the pattern, such as keywords, operators, identifiers etc. Lexeme: Lexeme is instance of a token i.e., group of characters forming a token. , Pattern: Pattern describes the rule that the lexemes of a token takes. It is the structure that must be matched by strings. Once a token is generated the corresponding entry is made in the symbol table. Recommend Articles For More Informat...