Description: Design of a lexical scanner. Function of lexical scanner is an input source and output word symbols. Write keyword collections and program flow diagram. For example, for the C language source code. Enter the following paragraph:
main () (
int a, b
a = 10
b = a+ 20
)
Output shown:
(2, "main")
(5 ,"(")
(5 ,")")
(5 ,"{")
(1, "int")
(2, "a")
(5 ,",")
(2, "b")
(5 ," ")
(2, "a")
(4 ,"=")
(3, "10")
(5 ," ")
(2, "b")
(4 ,"=")
(2, "a")
(4 ,"+")
(3, "20")
(5 ," ")
(5, ")")
To Search:
File list (Check if you may need any files):
cifasaomiaoqi.cpp