C++
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
10 years ago
40
Answer(0)
Bids(0)
other Questions(10)
- PSY370 Module 1 Assignment 3 -Risk Factors and Protective Factors
- american military history 3
- American military history 2
- UMUC ECON201 QUIZ 2 LATEST DECEMBER 2015 (ALL CORRECT)
- All About Highly Regarded Movers
- Applied Managerial Statistics
- homework
- Criminal law homework
- ECE 430 Week 3 Journal
- FIN565 - Analytical Application - Week 5 - Graded (30/30)