How do I set the verbose_flag in the python version. I have a grammar and I get an ambiguity exception, but only two identical non-terminal names. I am not sure where the ambiguity is.
-- Amal
I converted my grammar to using the C version of the DParser. That way, I could set the d_verbose_level. This prints out the ambiguous parse trees, but the problem is that it is difficult to find what non_terminals really matched with each parse tree. There is some guess work involved. Not sure if there is a way to print out the parse tree with the matched grammar rules.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I converted my grammar to using the C version of the DParser. That way, I could set the d_verbose_level. This prints out the ambiguous parse trees, but the problem is that it is difficult to find what non_terminals really matched with each parse tree. There is some guess work involved. Not sure if there is a way to print out the parse tree with the matched grammar rules.