classStart
final class Start
implements Declaration
Public API: explicitly declared with
@visibility public.A %start directive naming the start symbol, or several of them.
$file = (new \BisonParser\Parser())->parse("%start program\n%%\nprogram: 'a';\n");
$file->declarations[0]->symbols[0]->value // => 'program'Properties§
public list<Symbol> $symbolspublic Location $locationMethods§
public function location(): LocationAnswers where the declaration begins.
Returns
Location Line and column of the percent signTest cases 1
StartTest::testLocationcalls
Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
StartTest::testLocationcalls