Q10c
NATMarks unknownConsider the following grammar for arithmetic expressions using binary operators and which are not associative ( is the start symbol) Does the grammar allow expressions with redundant parentheses as in or in ? If so, convert the grammar into one which does not generate expressions with redundant parentheses. Do this with minimum number of changes to the given production rules and adding at most one more production rule. Convert the grammar obtained above into one that is not left recursive.
Sign in to save attempts.
Loading…