•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Computer Science and Software Design section within the Software Development category of DaniWeb, a massive community of 391,550 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,546 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Computer Science and Software Design advertiser:
Views: 3193 | Replies: 1 | Solved
![]() |
•
•
Join Date: Apr 2004
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I have tried looking in my textbook as well as my notes to figure out how to do this problem. I should have asked my teacher when I had the chance, but first I wanted to try working out the problem myself. I have until Monday to figure out how to do this problem, but would appreciate it if you could help me start. Here's the problem:
Show that the grammar is still ambiguous:
<statement> ------> if exp then <substat> else <statement> (1)
| if exp then <statement> (2)
| other-stat (3)
<substat> ---------> if exp then <substat> else <statement> (4)
|other_stat (5)
I at least know that I have to show two different parse trees of a single statement that fits those rules. Other than that, I'm stuck. Please help.
Show that the grammar is still ambiguous:
<statement> ------> if exp then <substat> else <statement> (1)
| if exp then <statement> (2)
| other-stat (3)
<substat> ---------> if exp then <substat> else <statement> (4)
|other_stat (5)
I at least know that I have to show two different parse trees of a single statement that fits those rules. Other than that, I'm stuck. Please help.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Computer Science and Software Design Marketplace
•
•
•
•
ajax asp blog business software computer dell design developer development erp systems experiment firefox howto india intel internet it java linux media microsoft mmorpg msdn networking news office open open-source operating programming project management rss science security software software selection source sql sun super system technology evaluation toread vista warez web wiki windows xp
- Fantastic word game (Posting Games)
- windows xp pro stop error, happens after only a few minutes of loading up (Troubleshooting Dead Machines)
- can't play video files after reformat (Windows NT / 2000 / XP / 2003)
- Cannot find server or DNS Error Explorer & usps.com (Windows NT / 2000 / XP / 2003)
- Greek thesaurus in Word 2003 (Windows Software)
- Completely Out of ideas Please help (Troubleshooting Dead Machines)
- Vanth: (Another) internet explorer / virus problem here (Viruses, Spyware and other Nasties)
Other Threads in the Computer Science and Software Design Forum
- Previous Thread: finding area of something
- Next Thread: Hi Everyone


Linear Mode