Lexical Analysis and Parsing two diverse Passes

Are Lexical Analysis and Parsing two diverse Passes? Validate this statement.

E

Expert

Verified

These two can form two distinct passes of the Parser. The Lexical analysis can store all the recognized tokens in an intermediate file and give it to the Parser as input. Though it is more convenient to encompass the lexical Analyzer as a co-routine or a subroutine that the Parser calls whenever it needs a token.

   Related Questions in Computer Engineering

©TutorsGlobe All rights reserved 2022-2023.