1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
IRINA_888 [86]
2 years ago
5

Write a recursive decent algorithm for a java while statement, a Javas if statement , an logical/mathematical expression based o

n the rules you created in your lexical analyzer, and an mathe- matical assignment statement, where statement may be an empty function. Supply the EBNF rule for ea
Computers and Technology
1 answer:
Aleonysh [2.5K]2 years ago
3 0

Using the knowledge in computational language in JAVA it is possible to write a code that recursive decent algorithm for a java while statement, a Javas if statement , an logical/mathematical expression.

<h3>Writting the code in JAVA:</h3>

<em>M ---> { S } ' # '</em>

<em>S ---> I | W | A | P | C | G</em>

<em>I ---> ' [ ' E ' ? ' { S } ' : ' { S } ' ] ' | ' [ ' E ' ? ' { S } ' ] '</em>

<em>W --- > ' { ' E ' ? ' { S } ' } '</em>

<em>A --- > lower-case ' - ' E ' ; '</em>

<em>P --- > ' < ' E ' ; '</em>

<em>G ---> ' ' . ' lower case ' ; '</em>

<em>C ---> ' < ' upper case ' ; '</em>

<em>E ---> T { ( ' + ' | ' - ' ) T }</em>

<em>T ---> U { ( ' * ' | ' / ' | ' % ' ) U }</em>

<em>U ---> F ' ^ ' U | F</em>

<em>F ---> ' ( ' E ' ) ' | lower case | digit</em>

<em>Here "lower-case" stands for a single lower-case letter, and "upper-case" stands for a single upper-case letter. For a more colorful grammar (in a slightly different form), see colorful grammar.</em>

<em>This grammar (and the language it defines) may look a little strange, but it was designed to have only single-character tokens. In particular it doesn't have any reserved words (key words), though in a sense the upper-case letters are reserved.</em>

<em>Just to help with understanding, here is the intuitive meaning of each of the above non-terminals:</em>

<em>SYMBOL MEANING</em>

<em>M Main Program</em>

<em>S Statement</em>

<em>I If-Then-[Else] Statement</em>

<em>W While Statement</em>

<em>A Assignment Statement</em>

<em>P Put or Print (integer)</em>

<em>C Print Character</em>

<em>G Get (integer)</em>

<em>E Expression (logical or arith)</em>

<em>T Termi</em>

<em>U </em>

<em>F Factor</em>

See more about JAVA at brainly.com/question/12975450

#SPJ1

You might be interested in
How do you get stickman worriers
ira [324]
You go online and find the answer
8 0
3 years ago
Which of the following cannot be copyrighted?
Tju [1.3M]
Um.. Where the Answer Choices
8 0
3 years ago
Assume that a finite number of resources of a single resource type must be managed. Processes may ask for a number of these reso
nevsk [136]
The answer may not be found
5 0
3 years ago
Which of the following is NOT an example of a financial market?
PtichkaEL [24]
The answer would be D
3 0
3 years ago
Read 2 more answers
Define the term residential subscriber as it pertains to the telecommunications industry. Explain what is meant by the term rate
soldi70 [24.7K]

Answer:

According to section 40-15-102(18) of the Colorado Revised Statutes (CRS), a residential “Residential subscriber” is an individual who has elected to receive residential telephone service with a local exchange provider. The definition of “Person” here is extended to include any other persons living or residing with the residential subscriber.

A rate center is a geographical area used to define and organise the perimeter for local calling, for billing, and for assigning specific phone numbers, which can include multiple area codes.

The rate center boundaries are determined by Local Exchange Carriers (LEC)

LEC is just a regulatory jargon in the telecoms sector for the local telephone company.

A wire center is the actual physical telephone exchange building.

A rate center, on the other hand, is a regulatory concept designed with the primary goal to make billing administration within the local telephone serving area easy.

Cheers!

 

4 0
3 years ago
Other questions:
  • Allan needs to ensure that an object is in a very precise location on a slide. He decides to use the Ruler option to achieve thi
    5·2 answers
  • An “AI” (artificial intelligence) could be used in:
    10·1 answer
  • Look at the four schematic symbols shown in the figure above. Each of the symbols is labeled with a number. Which of the followi
    5·2 answers
  • Self contained sequences of actions to be performed are?
    6·1 answer
  • Why do you think a business would set the price of their product above the competition
    14·2 answers
  • What aspect should you consider before adding pictures to a document?
    8·2 answers
  • What type of error occurred with the code below??
    11·1 answer
  • A computer _________________ is a text file that a computer can understand
    12·1 answer
  • Define technical writing. The proposal introduces the ……. (5 Mark)
    9·1 answer
  • When troubleshooting a network issue where a single host is unable to connect to the network, what is the first thing you should
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!