Question: Compiler Construction 1. Write a single regular expression which describes what a chunk is, where a chunk is delimited by { } and at most
1. Write a single regular expression which describes what a "chunk" is, where a chunk is delimited by { } and at most one level of nesting is allowed. Within a nested chunk, noor ) may appear. In your regular expression let x stand for any single character other than '{' or 'y'. Examples: {yes) G{{jo}a}j) {i{}am{comment}} {am}not yes, all 3 of these are chunks no, none of these 3 are chunks. {a{a} 1. Write a single regular expression which describes what a "chunk" is, where a chunk is delimited by { } and at most one level of nesting is allowed. Within a nested chunk, noor ) may appear. In your regular expression let x stand for any single character other than '{' or 'y'. Examples: {yes) G{{jo}a}j) {i{}am{comment}} {am}not yes, all 3 of these are chunks no, none of these 3 are chunks. {a{a}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
