ID : BB-2641
Campus : Main
Instructor : Ms. Shahneela Pitafi
SE
G2
10
1
Ch
ap
ter
8
CS303, Compiler Construction
9
comment /* ignored */
#define NUMS 5, 6
macro NUMS
whitespace \t \n \b
» Separation of the input source code into tokens.
» Stripping out the unnecessary white spaces from
the source code.
» Removing the comments from the source text.
» Keeping track of line numbers while scanning the
new line characters. These line numbers are used
by the error handler to print the error messages.
» Preprocessing ofmacros.
12
14
15
17
18
21
22