classPrologue
final class Prologue
implements Declaration
Public API: explicitly declared with
@visibility public.Host code between %{ and %}, kept exactly as written.
$file = (new \BisonParser\Parser())->parse("%{\n#include <stdio.h>\n%}\n%%\ns: 'a';\n");
$file->declarations[0]->code // => "\n#include <stdio.h>\n"Properties§
public string $codepublic Location $locationMethods§
public function __construct(public string $code, public Location $location)Parameters
$code | string | Text between the markers |
$location | Location | Where the opening marker is written |
Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.