Answered! Question: Undergraduate Requirements:You are to write a lexical scanner for the language SIMPL. The scanner……

Write a program in C++
Project: Phase I Undergraduate Requirements: You are to write a lexical scanner for the language SIMPL The scanner will be written as a class with a function that returns a token structure containing an identification number, and the string value of the token. Also write a driver program, which continually calls the scanner, until the end of file is reached. For each token it gets, the driver should print the token identification number, and the token string. You will also document your scanner with some supplemental material. You should turn in a of all of your token types, and their identification numbers and a list DFA for your scanner. Your lexical scanner should read its input from standard input, and output to standard error messages should be output to standard error. If the scanner encounters an unexpected character, no error message should be printed by the scanner, but the current incomplete token, together with the unexpected character, should be returned as an error token. There is no the length of an identifier, or number. Your scanner should limit on take this into account. You will turn in a listing of your code, and supporting materials. You will also demonstrate your program to me. The test files used in the demonstration are available for your inspection on the tests directory of your SIMPL distribution. reserved The following is a list of SIMPL token types: if while identifier number ERROR EOF

Undergraduate Requirements:You are to write a lexical scanner for the language SIMPL. The scanner will be written as a class with a function that returns a token structure containing an identification number, and the string value of the token. Also write a driver program, which continually calls the scanner, until the end of file is reached. For each token it gets, the driver should print the token identification number, and the token string. You will also document your scanner with some supplemental material. You should turn in a list of all of your token types, and their identification numbers, and a DFA for your scanner. Your lexical scanner should read its input from standard input, and output to standard output. Any error messages should be output to standard error. If the scanner encounters an unexpected character, no error message should be printed by the scanner, but the current incomplete token, together with the unexpected character, should be returned as an error token. There is no limit on the length of an identifier, or number. Your scanner should take this into account. You will turn in a listing of your code, and supporting materials. You will also demonstrate your program to me. The test files used in the demonstration are available for your inspection on the tests directory of your SIMPL distribution. The following is a list of SIMPLE token types:

Expert Answer

Answered! Question: Undergraduate Requirements:You are to write a lexical scanner for the language SIMPL. The scanner...... 1Answered! Question: Undergraduate Requirements:You are to write a lexical scanner for the language SIMPL. The scanner...... 2Answered! Question: Undergraduate Requirements:You are to write a lexical scanner for the language SIMPL. The scanner...... 3Answered! Question: Undergraduate Requirements:You are to write a lexical scanner for the language SIMPL. The scanner...... 4Answered! Question: Undergraduate Requirements:You are to write a lexical scanner for the language SIMPL. The scanner...... 5Answered! Question: Undergraduate Requirements:You are to write a lexical scanner for the language SIMPL. The scanner...... 6

Don't use plagiarized sources. Get Your Custom Essay on
Answered! Question: Undergraduate Requirements:You are to write a lexical scanner for the language SIMPL. The scanner……
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS $13/PAGE
Order Essay

Still stressed from student homework?
Get quality assistance from academic writers!