What are different tasks of Lexical Analysis?

The purpose of the lexical analyzer is to partition the input text, delivering a sequence of comments and basic symbols. Comments are character sequences to be ignored, while basic symbols are character sequences that correspond to terminal symbols of the grammar defining the phrase structure of the input

Showing Answers 1 - 2 of 2 Answers

Sharath

  • Mar 19th, 2006
 

Well,Lexical Analysis is a phase that is carried out during compilation.It basically means scanning the inputs character by character.It may contains tokens,blanks,comments..

  Was this answer useful?  Yes

Rajib Pal

  • Mar 22nd, 2006
 

The main task of lexical anlyzer is to form token.It takes source code as input & begin scanning from left to right & form token which are enter in the symbol table to generate parse tree during compilation.So lexical anlyzer is the first part of compilation.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions