2010-12-29 2 views
0

Quelqu'un peut-il expliquer ce que ces tableaux signifient?Essayer de comprendre comment Smarty compile

$yy_action 

$yy_lookahead 

$yy_shift_ofst 

$yy_reduce_ofst 

$yyExpectedTokens 

$yy_default 

$yyRuleInfo 

$yyReduceMap 

MISE À JOUR

Qu'est-ce que le dessous signifie?

** Suppose the action integer is N. Then the action is determined as 
** follows 
** 
** 0 <= N < self::YYNSTATE        Shift N. That is, 
**              push the lookahead 
**              token onto the stack 
**              and goto state N. 
** 
** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE. 
** 
** N == self::YYNSTATE+self::YYNRULE     A syntax error has occurred. 
** 
** N == self::YYNSTATE+self::YYNRULE+1     The parser accepts its 
**              input. (and concludes parsing) 
** 
** N == self::YYNSTATE+self::YYNRULE+2     No such action. Denotes unused 
**              slots in the yy_action[] table. 

Répondre