【发布时间】:2011-01-14 07:48:07
【问题描述】:
就像this file,在我看来只有声明就足够了。
谁能解释为什么词法分析需要规则?
在我看来,它们仅在 .y 文件中是必需的...
根据规则,我说的是这样的块:
rdels {
if ($this->smarty->auto_literal) {
$this->token = Smarty_Internal_Templateparser::TP_OTHER;
} else {
$this->token = Smarty_Internal_Templateparser::TP_RDEL;
$this->yypopstate();
}
}
什么时候去yypopstate和yypushstate?
【问题讨论】: