Question: I have recently designed Glorp, the hot new programming language everyone is talking about. Im concerned that there is no way to create block comments,

I have recently designed Glorp, the hot new programming language everyone is talking about. Im concerned that there is no way to create block comments, though, and suspect this might severely hurt the uptake of Glorp. Ive decided that a block comment in the Glorp programming language is a substring of a string which is a Glorp program that begins with /0, ends with 0/, and does not contain 0/ except as the last characters. For ease of use, programs written in Glorp can only use symbols from the alphabet = {x, y, 0, /}. I use regular expressions as pattern matchers to identify the language of strings that encode Glorp programs, but Im stumped about how to design a regular expression that generates the language L = {w | w is a block comment in the Glorp programming language}. Hint: The regular expression r = /0()0/ is not correct. Believe me, Ive tried. Not a programing regular expression, but a model of computation regular expression

I can use parenthesis, concatenation, clean star

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!