Paper on Grammars
Objective:To acquire a comprehensive understanding of the application of grammars and formal language theory to computing languages.Given:
Consider the following set of productions:
|
Instructions:
- (30 points) Rewrite the set of productions above in Extended Backus-Naur Form (EBNF).
- (35 points) Using a Push Down Automaton (PDA), determine if the following function is valid code according to the given set of productions.
| int Max ( int x, int y ) { int z ; if ( x >y ) z = x ; else z = y ; return ( z ) ; } |
|---|
- (35 points) Validate your answer in (2) by illustrating it with a derivation tree
Deliverable:
Submit a paper Times New Roman font, 12 pt., double-space lines). The project must contain an introduction which includes the purpose of the project.
I attached the answers to 1 and 2 just look to make sure correct and write a paper.
10 years ago
40
Answer(0)
Bids(2)
other Questions(10)
- ACCT 505 Week 2 : Job Order and Process Costing Systems - Quiz
- 2.Expected Values and Decision Trees
- SPSS Assignment
- essay
- ion
- Psch
- 9 copies of high school chemistry homework! Basic knowledge of chemistry
- 10ft 5ft 1ft find surface are of the rectangular prism
- Psy 496 Week 4
- PHL 323 Week 1-5 Entire GRADE A++ 100%