classInitialAction
final class InitialAction
implements Declaration
Public API: explicitly declared with
@visibility public.An %initial-action directive and its code.
$file = (new \BisonParser\Parser())->parse("%initial-action { @\$.begin.filename = 0; }\n%%\ns: 'a';\n");
$file->declarations[0]->code // => ' @$.begin.filename = 0; 'Properties§
public string $codepublic Location $locationMethods§
public function __construct(public string $code, public Location $location)Parameters
$code | string | The code without its braces |
$location | Location | Where the directive is written |
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.