In certain programming languages, comments appear between delimiters such as (#and#).
•A comment mustbegin with (#and end with #).
•A comment may not contain either (#or#)inside the comment.
•A comment’s delimiters must be separate: (#a#)is a comment, (#)is not.
•Acomment must contain text inside the comment: (#a#)is a comment, (##)is not.
•For simplicity, assume thatthe alphabet is = {a, b, (, ), #}.
Give aregular expression that accepts comments.(You must create the regular expression directly –do not attempt to convert a DFAor NFA.)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here