final class BytePlanCompiler

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

Constants§

public const MAXIMUM_BUDGET = 5000

Largest expansion budget decoded for constraints that carry none of their own.

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 18
Calls 10

Test cases 46§

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

Dedicated tests 3
Other tests reaching this symbol 43

Relations§

Constant reads 1