final class LexicalSettings
    uses Snapshot
Public API: explicitly declared with @visibility public.

Explicit lexical switches implemented by the shipped MySQL parser.

These do not infer runtime SQL modes or database session state. Other semantic session inputs must be declared separately when a rule needs them.

Retaining the mode that changes double-quote interpretationdoctest
(new \SqlSemantics\Platform\MySql\Model\Contract\LexicalSettings('ANSI_QUOTES'))->ansiQuotes // => true

Properties§

public bool $ansiQuotes

Double quotes delimit identifiers rather than strings.

public bool $pipesAsConcat

The double-pipe operator requests concatenation.

public bool $highNotPrecedence

NOT uses its higher-precedence grammar interpretation.

public bool $noBackslashEscapes

Backslashes remain ordinary characters in quoted strings.

public bool $ignoreSpace

Function names may be separated from their opening parenthesis.

Methods§

public function __construct(string $settings = '')

Accepts explicit canonical lexer flags; unknown flags are configuration errors.

Parameters

$settingsstring
Calls 4
public function equals(self $other): bool

Compares closed immutable flags, independently of input order or duplication.

Parameters

$otherself

Returns

bool
Called from 1

Test cases 13§

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

Other tests reaching this symbol 13

Relations§

Instantiated in 2
Method calls 1
Type declarations 3