Let the grammar g for arithmetic expressions

Assignment Help Chemistry
Reference no: EM13970225

Let the Grammar G for  arithmetic expressions as follows:

1.      E àE + T

2.      E àE - T

3.      EàT

4.      T à T*F

5.      T à T/F

6.      T à F

7.      F ài

8.      F à (E)

            Where "i" stands for an identifier .

The above grammar looks as below after the left recursions have been removed. 

The Parse table (Lecture 5/slide 58) is given below:

 

401_12.png

Using the following parse table,  parse the following arithmetic expression:

(i*i + i*i + i*i) / i

Print out the contents of the stacktop and the input buffer in each step (Lecture 5/Slide 68). 

 

1294_123.png

509_10.png

Reference no: EM13970225

Questions Cloud

Can grace file a return as head of household if her mother : Grace provides 52% of the household costs for her widowed motherduring the year. Grace claims her mother as a dependent. Can Grace file a return as head of Household if her mother does not live with her? Explain the reason behind your answer.
What amount would you record the truck : Indicate the appropriate account titles, if any, affected in each of the preceding events. Consider what is received and what is given. At what amount would you record the truck in (b)? The land in (i)? What measurement principle are you applying?
Write a paper on the accident one life lesson : Write a paper on "The Accident: One Life Lesson".
What characteristics of a cryptographic solution : What characteristics of a cryptographic solution make a cryptographic product more (or less) strong. What are the elements of cryptography that need to be considered in determining the strength of a cryptographic solution?
Let the grammar g for arithmetic expressions : Let the Grammar G for  arithmetic expressions as follows: 1.      E àE + T 2.      E àE - T 3.      EàT
What is its return on total assets roa : The Johnson Corporation's net income is $10,000, a return on equity of 20 percent, and a debt ratio of 60 percent, What is its return on total assets (ROA).
Write a paper on social location and educational experiences : Write a Self-reflective paper on social location and educational experiences. How does this program and this course in particular make me feel about who I am: my identity, my values, my social location, and my life experiences?
Salisbury corporation formed a corporation on january 3 : Salisbury Corporation formed a corporation on January 3, 2016, and is authorized to issue 500,000 shares of $10 par value common stock. The company has the following stock transactions. Journalize the following transactions for Salisbury Corporation:
Calculate the cost per account by customer category : Calculate the cost per account per year by dividing the total cost of processing and maintaining checking accounts by the total number of accounts. What is the average fee per month that the bank should charge to cover the costs incurred because o..

Reviews

Write a Review

Chemistry Questions & Answers

  Explain what is the density of the gas at stp

A 15.0 L sample of a gas has a mass of 18.0 g at 25.0 ° C and 740. torr. What is the density of the gas at STP?

  Depict a fischer projection form of the free acid

Could someone please help me to draw a fischer projection form of the free acid form of naproxen and on it:

  Methane and air in stoichiometric proportions are brought

methane and air in stoichiometric proportions are brought into a calorimeter at 500k. the product compositions is

  Oxygen are introduced into reaction vessel limiting reactant

Consider the reaction 2MnO2+2KOH+O2 ---->2KMnO4+H2. If 72 grams of manganese dioxide,65 grams of potassium hydroxide and 53 grams of oxygen are introduced into a reaction vessel, which is the limiting reactant

  Explain why is the angular momentum of some nuclei

Why is the angular momentum of some nuclei and molecules observable. How is it observed? What are some typical results.

  Explain what is mass of n2o which is disssolved

equilibrium at 25C with 5.82L of an aqueous solution of N2O(aq). what is mass of N2O whic is disssolved?

  Explain what fraction of the pyridine molecules

To 1.00 L of a 0.100 M aquoeus solution of the weak base pyridine C5H5N is added 1.00 ml of 14.0 M NaOH. What fraction of the pyridine molecules in the resulting solution react with water to release hydroxide ions? (Kb C5H5N = 1.7 x 10^-9)

  Calculate the average atomic mass of silver

Silver consists of two major isotopes with the following percent abundances and atomic masses: 107Ag (51.84% and 106.90509 amu) and 109Ag (48.16% and 108.90476 amu). Calculate the average atomic mass of silver to five significant digits.

  The ph of a calcium containing solution is adjusted by the

the ph of a calcium containing solution is adjusted by the additionof a few drops 0f 2m koh and titrated with 0.01000m

  Explain mean free path is the average distance a molecule

The mean free path is the average distance a molecule will travel before colliding with another molecule. From kinetic gas theory (which is explained in any pchem text and probably some general chem texts as well if you're curious),

  How many ml of 30 m formic acid should she add to the 1 l

a student wants to make a ph 4.0 buffer solution. she decides to use a buffer made from formic acid and sodium formate

  Explain the rate constant for the second order reaction

The rate constant for the second order reaction 2NO2 ® N2O4 is 2.79 L/mol ·min at 48 oC. If the initial concentration of NO2 is 1.05 M , what is the half-life? A) 20.5 s B) 10.3 s C) 0.341 min D) 176 s

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd