As translation progress the compiler's
internal representation of source program
change
Position: = initial=RATE*60.
The lexical analyzer phase needs the character in the source program and
groups them into a stream of tokens in which each
token represents a logically cohesive
sequence of
character, such as an identifier, keyword(if, while, etc....)punctuation
character,
or a multi-character operator like := the character
sequence forming a tokens is called
the lexeme for the tokens
Certain tokens will be augmented by
"a lexical value".
For example
when an identifier like rate in found, the lexical analyzer not only generates
a tokens say id, but also enters the lexeme rate
into the symbol table, if it is not already there.
The lexical value associated with this occurrence of
'id' point to the symbol table entry for
rate
0 comments:
Post a Comment