Mathematics Homework Solutions
Problem
#27780

Context Free Grammars / Productions

Write productions that will define the syntactic category , to replace the abstract terminal simpleStat in the figure below {see attachment}. You may assume the syntactic category stands for C arithmetic expressions.  Recall that a "simple statement" can be an assignment, function call, or jump, and that, technically, the empty string is also a simple statement.

Attached file(s):
Attachments
context_grammar.doc  View File

Attachment Content Summary (Note: view attachment at the above link before purchasing. Actual attachment content may vary slightly from that shown below.)

context_grammar.doc
Write production that will define the syntactic category ,
to replace the abstract terminal simpleStat in the figure below. You
may assume the syntactic category stands for C arithmetic
expressions. Recall that a “simple statement” can be an assignment,
function call, or jump, and that, technically, the empty string is also
a simple statement.

( while (condition)

( if (condition)

( if (condition) else

( { }

( simpleStat;

( ε

(

Solution Summary

This shows how to write productions that will define the syntactic category .

Solution
What is this?
By OTA - Overall OTA Rating
Departed OTA
Purchase Cost Now
$2.19 CAD (was ~$11.97)
Included in Download
  • Plain text response
  • Attached file(s):
    • context_grammar_reply.doc
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
Browse