NaifyView\Dialect\Naify\NaifyExpressionSurfacePreflight クラス
NaifyExpressionSurfacePreflight — Naify dialect の Naify Expression Surface Preflight
Native template 構文の parser / evaluator / runtime contract を担当する。 Twig / Smarty 互換文化を混ぜず、Naify として持つ構文 surface をここで固定する。
使用例
// Naify dialect の parser / expression / runtime helper として使う。
// 通常は NaifyParser や compiler/executor から間接的に呼ばれる。
メソッド
| メソッド | 説明 |
|---|---|
public
normalize(string $expression): string
|
`normalize()` を実行する |
public
findReservedOperator(string $expression): ?array
|
`findReservedOperator()` を実行する |
private
isEscapedCharacter(string $expression, int $index): bool
|
`isEscapedCharacter()` かを返す |