hoaproject / Compiler

The Hoa\Compiler library.
https://hoa-project.net/
453 stars 47 forks source link

Debug grammar tooling problems #89

Open flip111 opened 5 years ago

flip111 commented 5 years ago

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 ?