Chat with us, powered by LiveChat A programming project involves writing a program that parses, using recursive descent etc | WriteDemy

Question Description

Please review pdf and zip files.

The first programming project involves writing a program that parses, using recursive descent, a GUIdefinition language defined in an input file and generates the GUI that it defines. The grammar for thislanguage is defined below:

gui ::=
Window STRING '(' NUMBER ',' NUMBER ')' layout widgets End '.'

layout ::=
Layout layout_type ':'

layout_type ::=Flow |

Grid '(' NUMBER ',' NUMBER [',' NUMBER ',' NUMBER] ')'widgets ::=

widget widgets |

widgetwidget ::=

Button STRING ';' |
Group radio_buttons End ';' |Label STRING ';' |
Panel layout widgets End ';' |Textfield NUMBER ';'

radio_buttons ::=
radio_button radio_buttons |radio_button

radio_button ::=Radio STRING ';'

In the above grammar, the red symbols are nonterminals, the blue symbols are tokens and the blackpunctuation symbols are BNF metasymbols. Among the tokens those in title case are keywords. Thecharacter literals are punctuation tokens.

Below is an explanation of the meaning of some of the symbols in the above productions that shouldhelp you understand the actions that are to be performed when each of the productions is parsed:

  •  In the window production the string is the name that is to appear in the top border of thewindow and the two numbers are the width and height of the window
  •  In the production for layout_type that define the grid layout, the first two numbers representthe number of rows and columns, and the optional next two the horizontal and vertical gaps
  •  In the production for widget that defines a button, the string is the name of the button
  •  In the production for widget that defines a label, the string is text that is to be placed in the label
  •  In the production for widget that defines a text field, the number is the width of the text field
  •  In the production for radio_button, the string is the label of the buttonYou parser should properly handle the fact that panels can be nested in other panels. Recursiveproductions must be implemented using recursion. Syntactically incorrect input files should detect andreport the first error.

1

Below is an example of an input file:

Window "Calculator" (200, 200) Layout Flow:Textfield 20;
Panel Layout Grid(4, 3, 5, 5):

Button "7";Button "8";Button "9";Button "4";Button "5";Button "6";Button "1";Button "2";Button "3";Label "";Button "0";

End;End.

The above input file should produce the GUI shown below:

Deliverables:

Deliverables for this project include the following:

  1. Source code correctly implementing all required functionality.
  2. Word or PDF file providing screen shots of successfully compiling and executing the program.
  3. Description of the process and lesson learned while completing this project (to be included inthe Word or PDF document).
  4. A test plan that contains test cases that include both layout types, all widgets and nested panels.For each test case, the input file should be shown together with the resulting GUI. (to beincluded in the Word or PDF document).

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order