final class BytePlanCompiler

Decodes bytes at the plan entry point and returns frozen production and lexical instructions.

Methods§

public function compile(
    string $input,
    PlanBuilder $builder,
    GenerationPlan<bool>|null $constraints = null,
): GenerationPlan<bool>

No input bytes cross this boundary into the grammar walk or lexical value domains.

Parameters

$inputstring
$builderPlanBuilder
$constraintsGenerationPlan<bool>|null

Returns

Throws

InvalidArgumentException When the constraints cannot be completed within the configured budget
Test cases 28
Calls 9

Test cases 54§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 21
Other tests reaching this symbol 33