Compiler icon indicating copy to clipboard operation
Compiler copied to clipboard

Debug grammar tooling problems

Open flip111 opened this issue 7 years ago • 0 comments

Hi, i try this code https://keynote.hoa-project.net/PHPTour14/Demonstration/Generation_exhaustive.php to show all possible compiler output. Is it the same as paths? But my CPU just goes to 100% and nothing gets printed.

I'm trying to diagnose why i get a PHP Fatal error: Uncaught Hoa\Compiler\Llk\Parser::parse(): (0) Unexpected token ... blabla there is no indication of which token is expected instead. Which alternatives were tried and what it backtracked on. For this i tried the code in the guide https://hoa-project.net/En/Literature/Hack/Compiler.html#Traces

Also question on the side .. the hoa tool. I can not find it, i was expecting it to be in vendor/bin but it's not there, how can i get this tool ?

flip111 avatar Oct 20 '18 13:10 flip111