NaifyView\Dialect\Naify\NaifyTagSurfaceReader クラス

NaifyTagSurfaceReader — Naify dialect の Naify Tag Surface Reader

Native template 構文の parser / evaluator / runtime contract を担当する。 Twig / Smarty 互換文化を混ぜず、Naify として持つ構文 surface をここで固定する。

使用例

// Naify dialect の parser / expression / runtime helper として使う。
// 通常は NaifyParser や compiler/executor から間接的に呼ばれる。

メソッド

メソッド説明
public findTagCloseOffset(string $source, int $startOffset): ?int `findTagCloseOffset()` を実行する
public parseAttributes(string $source): array `parseAttributes()` を実行する
private readAttributeName(string $source, int $offset): ?string `readAttributeName()` を実行する
private readAttributeValue(string $source, int $offset): string `readAttributeValue()` を実行する
private readUnquotedAttributeValue(string $source, int $offset): string `readUnquotedAttributeValue()` を実行する
private skipWhitespace(string $source, int $offset): void `skipWhitespace()` を実行する
private isAttributeNameStartChar(string $char): bool `isAttributeNameStartChar()` かを返す
private isAttributeNameBodyChar(string $char): bool `isAttributeNameBodyChar()` かを返す
private isEscapedCharacter(string $source, int $index): bool `isEscapedCharacter()` かを返す