classLexicalSettings
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.
(new \SqlSemantics\Platform\MySql\Model\Contract\LexicalSettings('ANSI_QUOTES'))->ansiQuotes // => trueProperties§
public bool $ansiQuotesDouble quotes delimit identifiers rather than strings.
public bool $pipesAsConcatThe double-pipe operator requests concatenation.
public bool $highNotPrecedenceNOT uses its higher-precedence grammar interpretation.
public bool $noBackslashEscapesBackslashes remain ordinary characters in quoted strings.
public bool $ignoreSpaceFunction 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
$settings | string |
Calls 4
- function-call
explodeline 49 - static-call Check::input() line 51
- function-call
array_diffline 51 - function-call
in_arrayline 52
public function equals(self $other): boolCompares closed immutable flags, independently of input order or duplication.
Parameters
$other | self |
Returns
boolTest 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
LanguageProfileTest::testCompatibleWithAcceptsAProfileOfTheSameArtifactsAndSettingscallsLanguageProfileTest::testCompatibleWithRejectsAnotherParameterStylecallsLanguageProfileTest::testCompatibleWithRejectsOtherLexicalSettingscallsLeafKeysTest::testKeyAnswersTheStatedKeyAtSynonymPositionscallsLeafKeysTest::testKeyDecodesLiteralsByTheirExactValuecallsLeafKeysTest::testKeyDecodesNamesAtNameProductionscallsLeafKeysTest::testKeyDecodesStringsUnderTheEscapeSettingcallsLeafKeysTest::testKeyIsNullAtNoisePositionsAndForTheEndMarkercallsLeafKeysTest::testKeyKeysKeywordsAndPunctuationByTerminalcallsLeafKeysTest::testNameDecodesIdentifiersStringsAndKeywordsAsNamescallsLeafKeysTest::testTerminalKeysEachTerminalByWhatItDenotescallsEscapeRuleTest::testUnderAnswersBackslashOtherwisecallsEscapeRuleTest::testUnderAnswersVerbatimWhenNoBackslashEscapesIsSetcalls
Relations§
Instantiated in 2
Method calls 1
Type declarations 3
- type SqlSemantics\Platform\MySql\Model\Contract\LanguageProfile packages/sql-semantics-mysql/src/Model/Contract/LanguageProfile.php:32
- type SqlSemantics\Platform\MySql\Rules\LeafKeys packages/sql-semantics-mysql/src/Rules/LeafKeys.php:69
- type SqlSemantics\Platform\MySql\Statement\Literal\EscapeRule packages/sql-semantics-mysql/src/Statement/Literal/EscapeRule.php:31