This preview shows page 1. Sign up to view the full content.
Unformatted text preview: while true do skip end ’ is a member o± L ( G ). 3. Is the string ‘ if true then skip end ’ a member o± L ( G )? Why? Why not? 4. Add a rule to the above grammar that would add the command ’repeat-until’ to the language. Show that your grammar works by showing that you can derive a program that contains the ’repeat-until’ command. 1...
View Full Document
This note was uploaded on 10/03/2011 for the course CSC 501 taught by Professor Staff during the Spring '09 term at Rhode Island.
- Spring '09