Professional Documents
Culture Documents
PRESENTATION
COMPILER CONSTRUCTION
GROUP MEMBERS:
MUHAMMAD TALHA (CSC-17S-115)
ASHIR ALI (CSC-17S-060)
AUSAF IAQUAT (CSC-17S-093)
ANNAS SHAHID (CSC-17S-068)
PROJECT:
”CONVERSION OF
DIGITS INTO
WORDS”
INTRODUCTION:
Lexical Analysis is the first phase of compiler also known as scanner. It converts the input
program into a sequence of Tokens.
1) Keywords:
Examples- check the input(keywords or numbers)
2) Identifier:
Examples- numbers & digit, the maximum limit of digit is
four.
op can be any of `sum`, `sub`, `div`, `
mul`.
expr can be either a number (i.e. `num`)
or an operation followed by one or mor
e `expr`s.
OUTPUT
PASSWORD
PROGRAM OUTPUT
ENTER THE NUMBER IN
DIGITS:
OUTPUT IN WORDS:
THANK YOU
!