How do I investigate parser conflicts?

I noticed that changes I made to the Parser on my branch increase the number of reduce/reduce conflicts. Are there any tools/techniques/etc I can use to investigate this? Or do I just have to use trial and error (possibly guided with some knowledge of parsing)? Specifically, is there any way I can check which productions are causing conflicts? Janek

Yes! Use the --info flag for Happy https://www.haskell.org/happy/doc/html/sec-invoking.html Simon | -----Original Message----- | From: ghc-devs [mailto:ghc-devs-bounces@haskell.org] On Behalf Of Jan | Stolarek | Sent: 22 December 2014 12:39 | To: ghc-devs@haskell.org | Subject: How do I investigate parser conflicts? | | I noticed that changes I made to the Parser on my branch increase the | number of reduce/reduce conflicts. Are there any tools/techniques/etc | I can use to investigate this? Or do I just have to use trial and | error (possibly guided with some knowledge of parsing)? Specifically, | is there any way I can check which productions are causing conflicts? | | Janek | | _______________________________________________ | ghc-devs mailing list | ghc-devs@haskell.org | http://www.haskell.org/mailman/listinfo/ghc-devs

On Mon, 22 Dec 2014, Jan Stolarek wrote:
I noticed that changes I made to the Parser on my branch increase the number of reduce/reduce conflicts. Are there any tools/techniques/etc I can use to investigate this? Or do I just have to use trial and error (possibly guided with some knowledge of parsing)? Specifically, is there any way I can check which productions are causing conflicts?
Have you tried looking at the output produced by the -i flag of Happy?

Yes, that's probably what I was looking for. Thanks. Janek PS. Only 55K lines of log to analyze...
participants (3)
-
Dr. ERDI Gergo
-
Jan Stolarek
-
Simon Peyton Jones