Persistent Shift - Reduce Conflict in Goldparser
问题 I'm really stuck with a Shift-Reduce conflict in Goldparser. I wrote a PHP-like grammar that theoretically should be able to parse the following script: public $Test = null; protected $bDemo = true; function Main() { } private function Run() { } At the top I want to assign the global variables and after that come the function definitions. To narrow down the problem I reduced my large grammar to the following lines which can reproduce the error. Obviously this is incomplete. The functions have