Explanation of Grammar Ambiguity
-
03-11-2019 - |
Pregunta
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
No hay solución correcta
Licenciado bajo: CC-BY-SA con atribución
No afiliado a cs.stackexchange