Page | 48 Following tokenizing is parsing. From there, the interpreted data maybe
loaded into data structures, for general use,
interpretation, or compiling. Consider a text describing a calculation
46 - number of (cows);
The lexemes here might be "
46
", "
-
", "
number_of ", "
(
" , "cows " , "
)
" and "
;
". The lexical analyzer will denote lexemes "
46
" as 'number, "
-
" as 'character' and "
number_of " as a separate token. Even the lexeme "
;
" in some languages (such as C) has some special meaning.
Share with your friends: