SlideShare a Scribd company logo
1 of 2
Write a LEX program that does the following:
1. Reads a C++ program, numbers all lines.
2. Finds all identifiers in the program.
3. Lists all identifiers that are NOT C++ keywords, and the
line or lines on which each identifier appears.
NOTES:
- Each identifier name should appear only once in the list.
- Anything inside a comment (// or /* ... */) should be
ignored.
- Although not mandatory, a sorted list of identifiers is easier
to check.
- You do not have to check for correct C++ syntax; however
text that
does not match the definition should be ignored (e.g. numbers,
bad variable names, garbled text).
OUTPUT:
1. Program listing with line numbers.
2. List of identifiers with line(s) on which each identifier
appears.
DELIVERABLES:
Program source code, with internal documentation
Test results
After that I want to make three different version

More Related Content

Similar to Write a LEX program that does the following1. Reads a C++ pro.docx

This assignment consists of four short programs. Use CodeBlock.docx
This assignment consists of four short programs. Use CodeBlock.docxThis assignment consists of four short programs. Use CodeBlock.docx
This assignment consists of four short programs. Use CodeBlock.docxdunningblair
 
434090527-C-Cheat-Sheet. pdf C# program
434090527-C-Cheat-Sheet. pdf  C# program434090527-C-Cheat-Sheet. pdf  C# program
434090527-C-Cheat-Sheet. pdf C# programMAHESHV559910
 
c_programming.pdf
c_programming.pdfc_programming.pdf
c_programming.pdfHome
 
CSharpCheatSheetV1.pdf
CSharpCheatSheetV1.pdfCSharpCheatSheetV1.pdf
CSharpCheatSheetV1.pdfssusera0bb35
 
Complete Tokens in c/c++
Complete Tokens in c/c++Complete Tokens in c/c++
Complete Tokens in c/c++Shobi P P
 
Introduction to cpp language and all the required information relating to it
Introduction to cpp language and all the required information relating to itIntroduction to cpp language and all the required information relating to it
Introduction to cpp language and all the required information relating to itPushkarNiroula1
 
Compiler design important questions
Compiler design   important questionsCompiler design   important questions
Compiler design important questionsakila viji
 
InstructionsThe first programming project involves writing a progr.pdf
InstructionsThe first programming project involves writing a progr.pdfInstructionsThe first programming project involves writing a progr.pdf
InstructionsThe first programming project involves writing a progr.pdfnitinarora01
 
Below is a C code that serves as a handwritten lexical analyzer on a.pdf
Below is a C code that serves as a handwritten lexical analyzer on a.pdfBelow is a C code that serves as a handwritten lexical analyzer on a.pdf
Below is a C code that serves as a handwritten lexical analyzer on a.pdfalankarshoe84
 
unit 1 cpds.pptx
unit 1 cpds.pptxunit 1 cpds.pptx
unit 1 cpds.pptxmadhurij54
 

Similar to Write a LEX program that does the following1. Reads a C++ pro.docx (20)

C-PROGRAM
C-PROGRAMC-PROGRAM
C-PROGRAM
 
This assignment consists of four short programs. Use CodeBlock.docx
This assignment consists of four short programs. Use CodeBlock.docxThis assignment consists of four short programs. Use CodeBlock.docx
This assignment consists of four short programs. Use CodeBlock.docx
 
434090527-C-Cheat-Sheet. pdf C# program
434090527-C-Cheat-Sheet. pdf  C# program434090527-C-Cheat-Sheet. pdf  C# program
434090527-C-Cheat-Sheet. pdf C# program
 
Chap 2 c++
Chap 2 c++Chap 2 c++
Chap 2 c++
 
c_programming.pdf
c_programming.pdfc_programming.pdf
c_programming.pdf
 
Introduction of C++ By Pawan Thakur
Introduction of C++ By Pawan ThakurIntroduction of C++ By Pawan Thakur
Introduction of C++ By Pawan Thakur
 
CSharpCheatSheetV1.pdf
CSharpCheatSheetV1.pdfCSharpCheatSheetV1.pdf
CSharpCheatSheetV1.pdf
 
Introduction to c++
Introduction to c++Introduction to c++
Introduction to c++
 
Intro to c++
Intro to c++Intro to c++
Intro to c++
 
Complete Tokens in c/c++
Complete Tokens in c/c++Complete Tokens in c/c++
Complete Tokens in c/c++
 
C++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWAREC++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWARE
 
C notes
C notesC notes
C notes
 
C Lang notes.ppt
C Lang notes.pptC Lang notes.ppt
C Lang notes.ppt
 
Introduction to cpp language and all the required information relating to it
Introduction to cpp language and all the required information relating to itIntroduction to cpp language and all the required information relating to it
Introduction to cpp language and all the required information relating to it
 
Compiler design important questions
Compiler design   important questionsCompiler design   important questions
Compiler design important questions
 
C introduction
C introductionC introduction
C introduction
 
InstructionsThe first programming project involves writing a progr.pdf
InstructionsThe first programming project involves writing a progr.pdfInstructionsThe first programming project involves writing a progr.pdf
InstructionsThe first programming project involves writing a progr.pdf
 
Below is a C code that serves as a handwritten lexical analyzer on a.pdf
Below is a C code that serves as a handwritten lexical analyzer on a.pdfBelow is a C code that serves as a handwritten lexical analyzer on a.pdf
Below is a C code that serves as a handwritten lexical analyzer on a.pdf
 
C programming notes
C programming notesC programming notes
C programming notes
 
unit 1 cpds.pptx
unit 1 cpds.pptxunit 1 cpds.pptx
unit 1 cpds.pptx
 

More from latriced9tl

Write a Java program (non-GUI preferred) to demonstrate the use of.docx
Write a Java program (non-GUI preferred) to demonstrate the use of.docxWrite a Java program (non-GUI preferred) to demonstrate the use of.docx
Write a Java program (non-GUI preferred) to demonstrate the use of.docxlatriced9tl
 
Write a learning outcome paper.In short this means what you expect.docx
Write a learning outcome paper.In short this means what you expect.docxWrite a learning outcome paper.In short this means what you expect.docx
Write a learning outcome paper.In short this means what you expect.docxlatriced9tl
 
Write a four page, double spaced, a paper analyzing the dual (double.docx
Write a four page, double spaced, a paper analyzing the dual (double.docxWrite a four page, double spaced, a paper analyzing the dual (double.docx
Write a four page, double spaced, a paper analyzing the dual (double.docxlatriced9tl
 
Write a Dialogue.Goal Write a dialogue with the co-worker you.docx
Write a Dialogue.Goal Write a dialogue with the co-worker you.docxWrite a Dialogue.Goal Write a dialogue with the co-worker you.docx
Write a Dialogue.Goal Write a dialogue with the co-worker you.docxlatriced9tl
 
write a 750-word paper using APA standards that includes discussion .docx
write a 750-word paper using APA standards that includes discussion .docxwrite a 750-word paper using APA standards that includes discussion .docx
write a 750-word paper using APA standards that includes discussion .docxlatriced9tl
 
Write a 750-word (minimum) essay APA FormatFrom this two texts S.docx
Write a 750-word (minimum) essay APA FormatFrom this two texts S.docxWrite a 750-word (minimum) essay APA FormatFrom this two texts S.docx
Write a 750-word (minimum) essay APA FormatFrom this two texts S.docxlatriced9tl
 
Write a 700- to 1050-word executive summary in which you compare d.docx
Write a 700- to 1050-word executive summary in which you compare d.docxWrite a 700- to 1050-word executive summary in which you compare d.docx
Write a 700- to 1050-word executive summary in which you compare d.docxlatriced9tl
 
Write a 700- to 1,050-word paper that includes the followingA s.docx
Write a 700- to 1,050-word paper that includes the followingA s.docxWrite a 700- to 1,050-word paper that includes the followingA s.docx
Write a 700- to 1,050-word paper that includes the followingA s.docxlatriced9tl
 
Write a 700- to 1,050-word paper that addresses the following topi.docx
Write a 700- to 1,050-word paper that addresses the following topi.docxWrite a 700- to 1,050-word paper that addresses the following topi.docx
Write a 700- to 1,050-word paper that addresses the following topi.docxlatriced9tl
 
Write a 750- to 1,050-word paper on ways in which an organization ca.docx
Write a 750- to 1,050-word paper on ways in which an organization ca.docxWrite a 750- to 1,050-word paper on ways in which an organization ca.docx
Write a 750- to 1,050-word paper on ways in which an organization ca.docxlatriced9tl
 
Write a 700- to 1,050-word paper that describes how the historical.docx
Write a 700- to 1,050-word paper that describes how the historical.docxWrite a 700- to 1,050-word paper that describes how the historical.docx
Write a 700- to 1,050-word paper that describes how the historical.docxlatriced9tl
 
Write a 700- to 1,050-word paper which includes the following.docx
Write a 700- to 1,050-word paper which includes the following.docxWrite a 700- to 1,050-word paper which includes the following.docx
Write a 700- to 1,050-word paper which includes the following.docxlatriced9tl
 
Write a 700- to 1,050-word research essay describing how the politic.docx
Write a 700- to 1,050-word research essay describing how the politic.docxWrite a 700- to 1,050-word research essay describing how the politic.docx
Write a 700- to 1,050-word research essay describing how the politic.docxlatriced9tl
 
Write a 700- to 1,050-word paper summarizing the steps of photosyn.docx
Write a 700- to 1,050-word paper summarizing the steps of photosyn.docxWrite a 700- to 1,050-word paper summarizing the steps of photosyn.docx
Write a 700- to 1,050-word paper summarizing the steps of photosyn.docxlatriced9tl
 
Write a 700- to 1,050-word paper describing the fictional business.docx
Write a 700- to 1,050-word paper describing the fictional business.docxWrite a 700- to 1,050-word paper describing the fictional business.docx
Write a 700- to 1,050-word paper describing the fictional business.docxlatriced9tl
 
Write a 500-750 word essay on one of the following topics.Write a .docx
Write a 500-750 word essay on one of the following topics.Write a .docxWrite a 500-750 word essay on one of the following topics.Write a .docx
Write a 500-750 word essay on one of the following topics.Write a .docxlatriced9tl
 
Write a 700- to 1,050-word paper on what the textbook author refer.docx
Write a 700- to 1,050-word paper on what the textbook author refer.docxWrite a 700- to 1,050-word paper on what the textbook author refer.docx
Write a 700- to 1,050-word paper on what the textbook author refer.docxlatriced9tl
 
Write a 700- to 1,050-word paper describing how information systems .docx
Write a 700- to 1,050-word paper describing how information systems .docxWrite a 700- to 1,050-word paper describing how information systems .docx
Write a 700- to 1,050-word paper describing how information systems .docxlatriced9tl
 
Write a 700- to 1,050-word paper describing how information syst.docx
Write a 700- to 1,050-word paper describing how information syst.docxWrite a 700- to 1,050-word paper describing how information syst.docx
Write a 700- to 1,050-word paper describing how information syst.docxlatriced9tl
 
Write a 500-word proposal addressing the following scenario You.docx
Write a 500-word proposal addressing the following scenario You.docxWrite a 500-word proposal addressing the following scenario You.docx
Write a 500-word proposal addressing the following scenario You.docxlatriced9tl
 

More from latriced9tl (20)

Write a Java program (non-GUI preferred) to demonstrate the use of.docx
Write a Java program (non-GUI preferred) to demonstrate the use of.docxWrite a Java program (non-GUI preferred) to demonstrate the use of.docx
Write a Java program (non-GUI preferred) to demonstrate the use of.docx
 
Write a learning outcome paper.In short this means what you expect.docx
Write a learning outcome paper.In short this means what you expect.docxWrite a learning outcome paper.In short this means what you expect.docx
Write a learning outcome paper.In short this means what you expect.docx
 
Write a four page, double spaced, a paper analyzing the dual (double.docx
Write a four page, double spaced, a paper analyzing the dual (double.docxWrite a four page, double spaced, a paper analyzing the dual (double.docx
Write a four page, double spaced, a paper analyzing the dual (double.docx
 
Write a Dialogue.Goal Write a dialogue with the co-worker you.docx
Write a Dialogue.Goal Write a dialogue with the co-worker you.docxWrite a Dialogue.Goal Write a dialogue with the co-worker you.docx
Write a Dialogue.Goal Write a dialogue with the co-worker you.docx
 
write a 750-word paper using APA standards that includes discussion .docx
write a 750-word paper using APA standards that includes discussion .docxwrite a 750-word paper using APA standards that includes discussion .docx
write a 750-word paper using APA standards that includes discussion .docx
 
Write a 750-word (minimum) essay APA FormatFrom this two texts S.docx
Write a 750-word (minimum) essay APA FormatFrom this two texts S.docxWrite a 750-word (minimum) essay APA FormatFrom this two texts S.docx
Write a 750-word (minimum) essay APA FormatFrom this two texts S.docx
 
Write a 700- to 1050-word executive summary in which you compare d.docx
Write a 700- to 1050-word executive summary in which you compare d.docxWrite a 700- to 1050-word executive summary in which you compare d.docx
Write a 700- to 1050-word executive summary in which you compare d.docx
 
Write a 700- to 1,050-word paper that includes the followingA s.docx
Write a 700- to 1,050-word paper that includes the followingA s.docxWrite a 700- to 1,050-word paper that includes the followingA s.docx
Write a 700- to 1,050-word paper that includes the followingA s.docx
 
Write a 700- to 1,050-word paper that addresses the following topi.docx
Write a 700- to 1,050-word paper that addresses the following topi.docxWrite a 700- to 1,050-word paper that addresses the following topi.docx
Write a 700- to 1,050-word paper that addresses the following topi.docx
 
Write a 750- to 1,050-word paper on ways in which an organization ca.docx
Write a 750- to 1,050-word paper on ways in which an organization ca.docxWrite a 750- to 1,050-word paper on ways in which an organization ca.docx
Write a 750- to 1,050-word paper on ways in which an organization ca.docx
 
Write a 700- to 1,050-word paper that describes how the historical.docx
Write a 700- to 1,050-word paper that describes how the historical.docxWrite a 700- to 1,050-word paper that describes how the historical.docx
Write a 700- to 1,050-word paper that describes how the historical.docx
 
Write a 700- to 1,050-word paper which includes the following.docx
Write a 700- to 1,050-word paper which includes the following.docxWrite a 700- to 1,050-word paper which includes the following.docx
Write a 700- to 1,050-word paper which includes the following.docx
 
Write a 700- to 1,050-word research essay describing how the politic.docx
Write a 700- to 1,050-word research essay describing how the politic.docxWrite a 700- to 1,050-word research essay describing how the politic.docx
Write a 700- to 1,050-word research essay describing how the politic.docx
 
Write a 700- to 1,050-word paper summarizing the steps of photosyn.docx
Write a 700- to 1,050-word paper summarizing the steps of photosyn.docxWrite a 700- to 1,050-word paper summarizing the steps of photosyn.docx
Write a 700- to 1,050-word paper summarizing the steps of photosyn.docx
 
Write a 700- to 1,050-word paper describing the fictional business.docx
Write a 700- to 1,050-word paper describing the fictional business.docxWrite a 700- to 1,050-word paper describing the fictional business.docx
Write a 700- to 1,050-word paper describing the fictional business.docx
 
Write a 500-750 word essay on one of the following topics.Write a .docx
Write a 500-750 word essay on one of the following topics.Write a .docxWrite a 500-750 word essay on one of the following topics.Write a .docx
Write a 500-750 word essay on one of the following topics.Write a .docx
 
Write a 700- to 1,050-word paper on what the textbook author refer.docx
Write a 700- to 1,050-word paper on what the textbook author refer.docxWrite a 700- to 1,050-word paper on what the textbook author refer.docx
Write a 700- to 1,050-word paper on what the textbook author refer.docx
 
Write a 700- to 1,050-word paper describing how information systems .docx
Write a 700- to 1,050-word paper describing how information systems .docxWrite a 700- to 1,050-word paper describing how information systems .docx
Write a 700- to 1,050-word paper describing how information systems .docx
 
Write a 700- to 1,050-word paper describing how information syst.docx
Write a 700- to 1,050-word paper describing how information syst.docxWrite a 700- to 1,050-word paper describing how information syst.docx
Write a 700- to 1,050-word paper describing how information syst.docx
 
Write a 500-word proposal addressing the following scenario You.docx
Write a 500-word proposal addressing the following scenario You.docxWrite a 500-word proposal addressing the following scenario You.docx
Write a 500-word proposal addressing the following scenario You.docx
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

Write a LEX program that does the following1. Reads a C++ pro.docx

  • 1. Write a LEX program that does the following: 1. Reads a C++ program, numbers all lines. 2. Finds all identifiers in the program. 3. Lists all identifiers that are NOT C++ keywords, and the line or lines on which each identifier appears. NOTES: - Each identifier name should appear only once in the list. - Anything inside a comment (// or /* ... */) should be ignored. - Although not mandatory, a sorted list of identifiers is easier to check. - You do not have to check for correct C++ syntax; however text that does not match the definition should be ignored (e.g. numbers, bad variable names, garbled text).
  • 2. OUTPUT: 1. Program listing with line numbers. 2. List of identifiers with line(s) on which each identifier appears. DELIVERABLES: Program source code, with internal documentation Test results After that I want to make three different version