final class LemonPreprocessor

Selects source branches using the %if/%ifdef/%ifndef/%else/%endif directives from tool/lemon.c.

Methods§

public function process(string $input): string

Preserves line count while omitting source inactive in the target parser build.

Parameters

$inputstring

Returns

string

Throws

RuntimeException When conditional directives are unbalanced or malformed
Test cases 5
Called from 1
Calls 7

Private surface 1§

Implementation details, listed for orientation only.

private LemonCondition $condition = new \SqlFaker\Compiler\Lemon\LemonCondition()

Test cases 6§

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

Dedicated tests 5
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Method calls 1