Explanation of Grammar Ambiguity
-
03-11-2019 - |
문제
Consider now the grammar G
S -> (S + S)
S -> (S * S)
S -> a
Is it ambiguous?
Answer: No because there are disambiguating parentheses and so no left or right recursion.
Can someone explain how the parentheses are disambiguating. I could understand if they were "[" and "(".
Appreciate the help
올바른 솔루션이 없습니다
제휴하지 않습니다 cs.stackexchange