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