Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overriding "Internal Happy Error" - notHappyAtAll

I am using Happy to generate a parser.

I have found that when I give it tokens which match part of the grammar at a lower level than the top level (such as giving it an expression on it's own, that isn't part of a statement), I get an "Internal Happy Error" rather than a parse error.

Is there a way to override notHappyAtAll so that I can print a better error message than "Internal Happy Error"? Obviously other than changing the auto-generated parser file as I'd have to do it every time I updated the grammar.

like image 572
Jack Avatar asked Dec 14 '11 13:12

Jack


1 Answers

This problem appears to have been fixed in Happy 1.18.7.

like image 137
Scott Walck Avatar answered Sep 27 '22 16:09

Scott Walck