[plt-scheme] Getting good shift/reduce error messages using parser-tools?

From: Danny Yoo (dyoo at hkn.eecs.berkeley.edu)
Date: Tue Dec 5 13:28:40 EST 2006

>> Is there something in the tool that I have to turn on to get extended
>> diagnostic information?  I'm thinking I could just dump it to yacc format
>> and ask yacc to give me better information, but that seems slightly silly.
> The `parser' syntax has a debug option which prints to a specified
> file the generated LALR table and conflicting transitions:
>   (parse
>     (debug "some-file")
>     (tokens tokens)
>     (start expr)
>     ...)
> This output can be kind of hard to read, if you're not familiar with it, 
> but it might at least get you in the ballpark.

Hi Casey,

Excellent, that helps a lot!  That's embarassing... I don't know how I 
missed that in the parser-tools documentation; I need to learn how to read 
more carefully.

Thank you again!

Posted on the users mailing list.