Search unanswered questions...
Enter a question here...

Lexical analyzer?

[Edit]

A compiler is usually divided into different phases. The input to the compiler is the source program and the output is a target program.


Lexical analyzer is the first phase of a compiler which gets source program as input. It scans the source program from left to right and produces tokens as output. A token can be seen as a sequence of characters having a collective meaning.

Lexical analyzer also called by names like scanner, linear analyzer etc.

Improve Answer Discuss the question "Lexical analyzer?" Watch Question

First answer by ID3537167438. Last edit by ID3537167438. Question popularity: 17 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > Lexical analyzer?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
What is lexical?  What is a lexical field?  What is lexical scoping?  Uses of lexical analyzer?  Uses of lexical analyser?  What is lexical analysis?  What is a genome analyzer?  What is the use of analyzer?  Lexical analysis of a compiler?  A sample code of a lexical analyzer?  Relationship of compiler to lexical analyzer?  What should a firewall log analyzer captures?  How do you implement logic of lexical analyzer?  Who captures washington d c during the war 1812?  What are the different tasks of Lexical analysis?