COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
x? in a regular expression denotes
A
only x
B
only epsilon
C
either x or epsilon
D
None of the above
Explanation: 

Detailed explanation-1: -Matches a single Unicode grapheme, whether encoded as a single code point or multiple code points using combining marks. A grapheme most closely resembles the everyday concept of a “character".  X matches à encoded as U+0061 U+0300, à encoded as U+00E0, ©, etc.

Detailed explanation-2: -Base Rule 1: Epsilon is a regular expression that stands for the the empty string.

Detailed explanation-3: -epsilon which denotes the empty string containing no characters. null which denotes the empty set of strings.

Detailed explanation-4: -Explanation: For instances of x or y the exp is x+y and both can zero or more times than (x+y)*.

There is 1 question to complete.