MedVision ad

Lexical Analysis (1 Viewer)

honky tonk

in Miracle World
Joined
Dec 26, 2002
Messages
1,032
Location
Newcastle
Gender
Male
HSC
2003
I understand that the lexical analysis procedure:
  • Uses delimiters in source code to break the program into single lines, and
  • Scans each character in the line and removes remarks, indentation and spaces
but what else does it do? I've read several summaries and many of them contradict each other or are too 'wordy' for my liking.

Can anyone help?
 

kamankitty

kamankitty
Joined
Oct 9, 2003
Messages
10
Location
sydney
Gender
Undisclosed
HSC
N/A
well, this is what i have in my notes:
- goes through and find key words
- assign keywords to token
-store tokens in a symbol table or token dictionary
- check for type mismatches, makes call to subprogram
- tokens are them passed to the syntactic analysier

hope this helps

p.s. i think the book 'heinemann' explains it better
:rolleyes:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top