| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  | * Smarty Internal Plugin Templatelexer | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * This is the lexer to break the template source into tokens  | 
					
						
							|  |  |  | * @package Smarty | 
					
						
							|  |  |  | * @subpackage Compiler | 
					
						
							|  |  |  | * @author Uwe Tews  | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  | * Smarty Internal Plugin Templatelexer | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | class Smarty_Internal_Templatelexer | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     public $data; | 
					
						
							|  |  |  |     public $counter; | 
					
						
							|  |  |  |     public $token; | 
					
						
							|  |  |  |     public $value; | 
					
						
							|  |  |  |     public $node; | 
					
						
							|  |  |  |     public $line; | 
					
						
							| 
									
										
										
										
											2009-11-23 22:31:22 +00:00
										 |  |  |     public $taglineno; | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |     public $state = 1; | 
					
						
							| 
									
										
										
										
											2009-11-25 20:56:51 +00:00
										 |  |  |     public $strip = false; | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     private $heredoc_id_stack = Array(); | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     public $smarty_token_names = array (		// Text for parser error messages
 | 
					
						
							|  |  |  |     				'IDENTITY'	=> '===', | 
					
						
							|  |  |  |     				'NONEIDENTITY'	=> '!==', | 
					
						
							|  |  |  |     				'EQUALS'	=> '==', | 
					
						
							|  |  |  |     				'NOTEQUALS'	=> '!=', | 
					
						
							| 
									
										
										
										
											2009-11-02 17:49:57 +00:00
										 |  |  |     				'GREATEREQUAL' => '(>=,ge)', | 
					
						
							|  |  |  |     				'LESSEQUAL' => '(<=,le)', | 
					
						
							|  |  |  |     				'GREATERTHAN' => '(>,gt)', | 
					
						
							|  |  |  |     				'LESSTHAN' => '(<,lt)', | 
					
						
							|  |  |  |     				'MOD' => '(%,mod)', | 
					
						
							|  |  |  |     				'NOT'			=> '(!,not)', | 
					
						
							|  |  |  |     				'LAND'		=> '(&&,and)', | 
					
						
							|  |  |  |     				'LOR'			=> '(||,or)', | 
					
						
							|  |  |  |     				'LXOR'			=> 'xor', | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     				'OPENP'		=> '(', | 
					
						
							|  |  |  |     				'CLOSEP'	=> ')', | 
					
						
							|  |  |  |     				'OPENB'		=> '[', | 
					
						
							|  |  |  |     				'CLOSEB'	=> ']', | 
					
						
							|  |  |  |     				'PTR'			=> '->', | 
					
						
							|  |  |  |     				'APTR'		=> '=>', | 
					
						
							|  |  |  |     				'EQUAL'		=> '=', | 
					
						
							|  |  |  |     				'NUMBER'	=> 'number', | 
					
						
							|  |  |  |     				'UNIMATH'	=> '+" , "-', | 
					
						
							|  |  |  |     				'MATH'		=> '*" , "/" , "%', | 
					
						
							|  |  |  |     				'INCDEC'	=> '++" , "--', | 
					
						
							|  |  |  |     				'SPACE'		=> ' ', | 
					
						
							|  |  |  |     				'DOLLAR'	=> '$', | 
					
						
							|  |  |  |     				'SEMICOLON' => ';', | 
					
						
							|  |  |  |     				'COLON'		=> ':', | 
					
						
							|  |  |  |     				'DOUBLECOLON'		=> '::', | 
					
						
							|  |  |  |     				'AT'		=> '@', | 
					
						
							|  |  |  |     				'HATCH'		=> '#', | 
					
						
							|  |  |  |     				'QUOTE'		=> '"', | 
					
						
							|  |  |  |     				'BACKTICK'		=> '`', | 
					
						
							|  |  |  |     				'VERT'		=> '|', | 
					
						
							|  |  |  |     				'DOT'			=> '.', | 
					
						
							|  |  |  |     				'COMMA'		=> '","', | 
					
						
							|  |  |  |     				'ANDSYM'		=> '"&"', | 
					
						
							| 
									
										
										
										
											2009-10-15 21:00:23 +00:00
										 |  |  |     				'QMARK'		=> '"?"', | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     				'ID'			=> 'identifier', | 
					
						
							|  |  |  |     				'OTHER'		=> 'text', | 
					
						
							| 
									
										
										
										
											2010-07-14 22:47:37 +00:00
										 |  |  |     				'LINEBREAK'		=> 'newline', | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |      				'FAKEPHPSTARTTAG'	=> 'Fake PHP start tag', | 
					
						
							|  |  |  |      				'PHPSTARTTAG'	=> 'PHP start tag', | 
					
						
							|  |  |  |      				'PHPENDTAG'	=> 'PHP end tag', | 
					
						
							|  |  |  |  						'LITERALSTART'  => 'Literal start', | 
					
						
							|  |  |  |  						'LITERALEND'    => 'Literal end', | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     				'LDELSLASH' => 'closing tag', | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |     				'COMMENT' => 'comment', | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |      				'LITERALEND' => 'literal close', | 
					
						
							| 
									
										
										
										
											2009-08-24 15:31:31 +00:00
										 |  |  |     				'AS' => 'as', | 
					
						
							| 
									
										
										
										
											2009-12-03 22:39:45 +00:00
										 |  |  |     				'TO' => 'to', | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     				); | 
					
						
							|  |  |  |     				 | 
					
						
							|  |  |  |     				 | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |     function __construct($data,$compiler) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  |         // set instance object
 | 
					
						
							|  |  |  |         self::instance($this);  | 
					
						
							| 
									
										
										
										
											2010-02-07 12:49:57 +00:00
										 |  |  | //        $this->data = preg_replace("/(\r\n|\r|\n)/", "\n", $data);
 | 
					
						
							|  |  |  |         $this->data = $data; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |         $this->counter = 0; | 
					
						
							|  |  |  |         $this->line = 1; | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |         $this->smarty = $compiler->smarty; | 
					
						
							|  |  |  |         $this->compiler = $compiler; | 
					
						
							| 
									
										
										
										
											2009-11-10 16:04:32 +00:00
										 |  |  |         $this->ldel = preg_quote($this->smarty->left_delimiter,'/');  | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |         $this->ldel_length = strlen($this->smarty->left_delimiter);  | 
					
						
							| 
									
										
										
										
											2009-11-10 16:04:32 +00:00
										 |  |  |         $this->rdel = preg_quote($this->smarty->right_delimiter,'/'); | 
					
						
							| 
									
										
										
										
											2009-08-24 15:31:31 +00:00
										 |  |  |         $this->smarty_token_names['LDEL'] =	$this->smarty->left_delimiter; | 
					
						
							|  |  |  |         $this->smarty_token_names['RDEL'] =	$this->smarty->right_delimiter; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |      } | 
					
						
							|  |  |  |     public static function &instance($new_instance = null) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         static $instance = null; | 
					
						
							|  |  |  |         if (isset($new_instance) && is_object($new_instance)) | 
					
						
							|  |  |  |             $instance = $new_instance; | 
					
						
							|  |  |  |         return $instance; | 
					
						
							|  |  |  |     }  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     private $_yy_state = 1; | 
					
						
							|  |  |  |     private $_yy_stack = array(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     function yylex() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return $this->{'yylex' . $this->_yy_state}(); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     function yypushstate($state) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         array_push($this->_yy_stack, $this->_yy_state); | 
					
						
							|  |  |  |         $this->_yy_state = $state; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     function yypopstate() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $this->_yy_state = array_pop($this->_yy_stack); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     function yybegin($state) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $this->_yy_state = $state; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     function yylex1() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $tokenMap = array ( | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |               1 => 0, | 
					
						
							| 
									
										
										
										
											2009-11-09 16:30:56 +00:00
										 |  |  |               2 => 1, | 
					
						
							|  |  |  |               4 => 0, | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |               5 => 0, | 
					
						
							|  |  |  |               6 => 0, | 
					
						
							|  |  |  |               7 => 0, | 
					
						
							|  |  |  |               8 => 0, | 
					
						
							|  |  |  |               9 => 0, | 
					
						
							|  |  |  |               10 => 0, | 
					
						
							| 
									
										
										
										
											2010-06-20 20:37:16 +00:00
										 |  |  |               11 => 0, | 
					
						
							|  |  |  |               12 => 0, | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |               13 => 0, | 
					
						
							|  |  |  |               14 => 0, | 
					
						
							|  |  |  |               15 => 1, | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |               17 => 0, | 
					
						
							| 
									
										
										
										
											2010-06-20 20:37:16 +00:00
										 |  |  |               18 => 0, | 
					
						
							|  |  |  |               19 => 0, | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |               20 => 0, | 
					
						
							|  |  |  |               21 => 0, | 
					
						
							|  |  |  |               22 => 2, | 
					
						
							|  |  |  |               25 => 0, | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |             ); | 
					
						
							|  |  |  |         if ($this->counter >= strlen($this->data)) { | 
					
						
							|  |  |  |             return false; // end of input
 | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2010-08-02 16:29:23 +00:00
										 |  |  |         $yy_global_pattern = "/^(\\{\\})|^(".$this->ldel."\\*([\S\s]*?)\\*".$this->rdel.")|^(<\\?(?:php\\w+|=|[a-zA-Z]+)?)|^(\\?>)|^(<%)|^(%>)|^([\t ]*[\r\n]+[\t ]*)|^(".$this->ldel."strip".$this->rdel.")|^(".$this->ldel."\\s{1,}strip\\s{1,}".$this->rdel.")|^(".$this->ldel."\/strip".$this->rdel.")|^(".$this->ldel."\\s{1,}\/strip\\s{1,}".$this->rdel.")|^(".$this->ldel."\\s*literal\\s*".$this->rdel.")|^(".$this->ldel."\\s{1,}\/)|^(".$this->ldel."\\s*(if|elseif|else if|while)(?![^\s]))|^(".$this->ldel."\\s*for(?![^\s]))|^(".$this->ldel."\\s*foreach(?![^\s]))|^(".$this->ldel."\\s{1,})|^(".$this->ldel."\/)|^(".$this->ldel.")|^(([\S\s]*?)(?=([\t ]*[\r\n]+[\t ]*|".$this->ldel."|<\\?|\\?>|<%|%>)))|^([\S\s]+)/"; | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         do { | 
					
						
							|  |  |  |             if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) { | 
					
						
							|  |  |  |                 $yysubmatches = $yymatches; | 
					
						
							|  |  |  |                 $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns
 | 
					
						
							|  |  |  |                 if (!count($yymatches)) { | 
					
						
							|  |  |  |                     throw new Exception('Error: lexing failed because a rule matched' . | 
					
						
							|  |  |  |                         'an empty string.  Input "' . substr($this->data, | 
					
						
							|  |  |  |                         $this->counter, 5) . '... state TEXT'); | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |                 next($yymatches); // skip global match
 | 
					
						
							|  |  |  |                 $this->token = key($yymatches); // token number
 | 
					
						
							|  |  |  |                 if ($tokenMap[$this->token]) { | 
					
						
							|  |  |  |                     // extract sub-patterns for passing to lex function
 | 
					
						
							|  |  |  |                     $yysubmatches = array_slice($yysubmatches, $this->token + 1, | 
					
						
							|  |  |  |                         $tokenMap[$this->token]); | 
					
						
							|  |  |  |                 } else { | 
					
						
							|  |  |  |                     $yysubmatches = array(); | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |                 $this->value = current($yymatches); // token value
 | 
					
						
							|  |  |  |                 $r = $this->{'yy_r1_' . $this->token}($yysubmatches); | 
					
						
							|  |  |  |                 if ($r === null) { | 
					
						
							|  |  |  |                     $this->counter += strlen($this->value); | 
					
						
							|  |  |  |                     $this->line += substr_count($this->value, "\n"); | 
					
						
							|  |  |  |                     // accept this token
 | 
					
						
							|  |  |  |                     return true; | 
					
						
							|  |  |  |                 } elseif ($r === true) { | 
					
						
							|  |  |  |                     // we have changed state
 | 
					
						
							|  |  |  |                     // process this token in the new state
 | 
					
						
							|  |  |  |                     return $this->yylex(); | 
					
						
							|  |  |  |                 } elseif ($r === false) { | 
					
						
							|  |  |  |                     $this->counter += strlen($this->value); | 
					
						
							|  |  |  |                     $this->line += substr_count($this->value, "\n"); | 
					
						
							|  |  |  |                     if ($this->counter >= strlen($this->data)) { | 
					
						
							|  |  |  |                         return false; // end of input
 | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                     // skip this token
 | 
					
						
							|  |  |  |                     continue; | 
					
						
							| 
									
										
										
										
											2009-12-05 15:10:47 +00:00
										 |  |  |                 }            } else { | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |                 throw new Exception('Unexpected input at line' . $this->line . | 
					
						
							|  |  |  |                     ': ' . $this->data[$this->counter]); | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |             break; | 
					
						
							|  |  |  |         } while (true); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     } // end function
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     const TEXT = 1; | 
					
						
							|  |  |  |     function yy_r1_1($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r1_2($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_COMMENT; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2009-11-09 16:30:56 +00:00
										 |  |  |     function yy_r1_4($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |   if (in_array($this->value, Array('<?', '<?=', '<?php'))) { | 
					
						
							|  |  |  |     $this->token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |   } elseif ($this->value == '<?xml') { | 
					
						
							|  |  |  |       $this->token = Smarty_Internal_Templateparser::TP_XMLTAG; | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |   } else { | 
					
						
							|  |  |  |     $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; | 
					
						
							|  |  |  |     $this->value = substr($this->value, 0, 2); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |      } | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |     function yy_r1_5($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_PHPENDTAG; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r1_6($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-20 20:37:16 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r1_7($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r1_8($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-25 20:56:51 +00:00
										 |  |  |   if ($this->strip) { | 
					
						
							|  |  |  |      return false; | 
					
						
							|  |  |  |   } else { | 
					
						
							| 
									
										
										
										
											2010-07-14 22:47:37 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LINEBREAK; | 
					
						
							| 
									
										
										
										
											2009-11-25 20:56:51 +00:00
										 |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-06-20 20:37:16 +00:00
										 |  |  |     function yy_r1_9($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-25 20:56:51 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->strip = true; | 
					
						
							|  |  |  |   return false; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-06-20 20:37:16 +00:00
										 |  |  |     function yy_r1_10($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-25 20:56:51 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |   if ($this->smarty->auto_literal) { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |     $this->strip = true; | 
					
						
							|  |  |  |     return false; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r1_11($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-25 20:56:51 +00:00
										 |  |  |   $this->strip = false; | 
					
						
							|  |  |  |   return false; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_12($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   if ($this->smarty->auto_literal) { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |     $this->strip = false; | 
					
						
							|  |  |  |     return false; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r1_13($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |    $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; | 
					
						
							|  |  |  |    $this->yypushstate(self::LITERAL); | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_14($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   if ($this->smarty->auto_literal) { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							| 
									
										
										
										
											2009-11-23 22:31:22 +00:00
										 |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_15($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-01 19:11:48 +00:00
										 |  |  |   if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELIF; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_17($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-01 19:11:48 +00:00
										 |  |  |   if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_18($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-01 19:11:48 +00:00
										 |  |  |   if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_19($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |   if ($this->smarty->auto_literal) { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDEL; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							| 
									
										
										
										
											2009-11-23 22:31:22 +00:00
										 |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_20($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							| 
									
										
										
										
											2009-11-23 22:31:22 +00:00
										 |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_21($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LDEL; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							| 
									
										
										
										
											2009-11-23 22:31:22 +00:00
										 |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_22($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |     function yy_r1_25($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     function yylex2() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $tokenMap = array ( | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |               1 => 0, | 
					
						
							|  |  |  |               2 => 0, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               3 => 1, | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |               5 => 0, | 
					
						
							|  |  |  |               6 => 0, | 
					
						
							| 
									
										
										
										
											2009-10-27 20:25:16 +00:00
										 |  |  |               7 => 0, | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |               8 => 0, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               9 => 0, | 
					
						
							|  |  |  |               10 => 0, | 
					
						
							|  |  |  |               11 => 0, | 
					
						
							|  |  |  |               12 => 0, | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |               13 => 1, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               15 => 1, | 
					
						
							|  |  |  |               17 => 1, | 
					
						
							|  |  |  |               19 => 0, | 
					
						
							|  |  |  |               20 => 0, | 
					
						
							|  |  |  |               21 => 0, | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |               22 => 1, | 
					
						
							|  |  |  |               24 => 1, | 
					
						
							|  |  |  |               26 => 1, | 
					
						
							|  |  |  |               28 => 1, | 
					
						
							|  |  |  |               30 => 1, | 
					
						
							|  |  |  |               32 => 1, | 
					
						
							|  |  |  |               34 => 1, | 
					
						
							|  |  |  |               36 => 1, | 
					
						
							|  |  |  |               38 => 1, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               40 => 1, | 
					
						
							|  |  |  |               42 => 1, | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |               44 => 0, | 
					
						
							| 
									
										
										
										
											2009-12-04 15:44:47 +00:00
										 |  |  |               45 => 0, | 
					
						
							|  |  |  |               46 => 0, | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |               47 => 0, | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |               48 => 0, | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |               49 => 0, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               50 => 0, | 
					
						
							|  |  |  |               51 => 0, | 
					
						
							|  |  |  |               52 => 0, | 
					
						
							|  |  |  |               53 => 0, | 
					
						
							|  |  |  |               54 => 3, | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |               58 => 0, | 
					
						
							| 
									
										
										
										
											2009-12-04 15:44:47 +00:00
										 |  |  |               59 => 0, | 
					
						
							|  |  |  |               60 => 0, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               61 => 0, | 
					
						
							|  |  |  |               62 => 0, | 
					
						
							|  |  |  |               63 => 0, | 
					
						
							|  |  |  |               64 => 0, | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |               65 => 1, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               67 => 1, | 
					
						
							|  |  |  |               69 => 1, | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |               71 => 0, | 
					
						
							| 
									
										
										
										
											2009-12-04 15:44:47 +00:00
										 |  |  |               72 => 0, | 
					
						
							|  |  |  |               73 => 0, | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |               74 => 0, | 
					
						
							|  |  |  |               75 => 0, | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |               76 => 0, | 
					
						
							|  |  |  |               77 => 0, | 
					
						
							|  |  |  |               78 => 0, | 
					
						
							|  |  |  |               79 => 0, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               80 => 0, | 
					
						
							|  |  |  |               81 => 0, | 
					
						
							| 
									
										
										
										
											2010-04-12 18:22:53 +00:00
										 |  |  |               82 => 0, | 
					
						
							|  |  |  |               83 => 0, | 
					
						
							| 
									
										
										
										
											2009-12-03 22:39:45 +00:00
										 |  |  |               84 => 0, | 
					
						
							| 
									
										
										
										
											2009-12-27 15:06:49 +00:00
										 |  |  |               85 => 0, | 
					
						
							|  |  |  |               86 => 0, | 
					
						
							| 
									
										
										
										
											2009-12-04 15:44:47 +00:00
										 |  |  |               87 => 0, | 
					
						
							| 
									
										
										
										
											2010-06-13 12:52:36 +00:00
										 |  |  |               88 => 0, | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |             ); | 
					
						
							|  |  |  |         if ($this->counter >= strlen($this->data)) { | 
					
						
							|  |  |  |             return false; // end of input
 | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2010-06-22 18:09:12 +00:00
										 |  |  |         $yy_global_pattern = "/^('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|^(".$this->ldel."\\s{1,}\/)|^(".$this->ldel."\\s*(if|elseif|else if|while)(?![^\s]))|^(".$this->ldel."\\s*for(?![^\s]))|^(".$this->ldel."\\s*foreach(?![^\s]))|^(".$this->ldel."\\s{1,})|^(\\s{1,}".$this->rdel.")|^(".$this->ldel."\/)|^(".$this->ldel.")|^(".$this->rdel.")|^(\\s+is\\s+in\\s+)|^(\\s+(AS|as)\\s+)|^(\\s+(to)\\s+)|^(\\s+(step)\\s+)|^(\\s+instanceof\\s+)|^(\\s*===\\s*)|^(\\s*!==\\s*)|^(\\s*==\\s*|\\s+(EQ|eq)\\s+)|^(\\s*!=\\s*|\\s*<>\\s*|\\s+(NE|NEQ|ne|neq)\\s+)|^(\\s*>=\\s*|\\s+(GE|GTE|ge|gte)\\s+)|^(\\s*<=\\s*|\\s+(LE|LTE|le|lte)\\s+)|^(\\s*>\\s*|\\s+(GT|gt)\\s+)|^(\\s*<\\s*|\\s+(LT|lt)\\s+)|^(\\s+(MOD|mod)\\s+)|^(!\\s*|(NOT|not)\\s+)|^(\\s*&&\\s*|\\s*(AND|and)\\s+)|^(\\s*\\|\\|\\s*|\\s*(OR|or)\\s+)|^(\\s*(XOR|xor)\\s+)|^(\\s+is\\s+odd\\s+by\\s+)|^(\\s+is\\s+not\\s+odd\\s+by\\s+)|^(\\s+is\\s+odd)|^(\\s+is\\s+not\\s+odd)|^(\\s+is\\s+even\\s+by\\s+)|^(\\s+is\\s+not\\s+even\\s+by\\s+)|^(\\s+is\\s+even)|^(\\s+is\\s+not\\s+even)|^(\\s+is\\s+div\\s+by\\s+)|^(\\s+is\\s+not\\s+div\\s+by\\s+)|^(\\((int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)\\)\\s*)|^(\\(\\s*)|^(\\s*\\))|^(\\[\\s*)|^(\\s*\\])|^(\\s*->\\s*)|^(\\s*=>\\s*)|^(\\s*=\\s*)|^((\\+\\+|--)\\s*)|^(\\s*(\\+|-)\\s*)|^(\\s*(\\*|\/|%)\\s*)|^(\\$)|^(\\s*;)|^(::)|^(\\s*:\\s*)|^(@)|^(#)|^(\")|^(`)|^(\\|)|^(\\.)|^(\\s*,\\s*)|^(\\s*&\\s*)|^(\\s*\\?\\s*)|^(0[xX][0-9a-fA-F]+)|^([0-9]*[a-zA-Z_]\\w*)|^(\\d+)|^(\\s+)|^(.)/"; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         do { | 
					
						
							|  |  |  |             if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) { | 
					
						
							|  |  |  |                 $yysubmatches = $yymatches; | 
					
						
							|  |  |  |                 $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns
 | 
					
						
							|  |  |  |                 if (!count($yymatches)) { | 
					
						
							|  |  |  |                     throw new Exception('Error: lexing failed because a rule matched' . | 
					
						
							|  |  |  |                         'an empty string.  Input "' . substr($this->data, | 
					
						
							| 
									
										
										
										
											2009-10-27 20:25:16 +00:00
										 |  |  |                         $this->counter, 5) . '... state SMARTY'); | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |                 } | 
					
						
							|  |  |  |                 next($yymatches); // skip global match
 | 
					
						
							|  |  |  |                 $this->token = key($yymatches); // token number
 | 
					
						
							|  |  |  |                 if ($tokenMap[$this->token]) { | 
					
						
							|  |  |  |                     // extract sub-patterns for passing to lex function
 | 
					
						
							|  |  |  |                     $yysubmatches = array_slice($yysubmatches, $this->token + 1, | 
					
						
							|  |  |  |                         $tokenMap[$this->token]); | 
					
						
							|  |  |  |                 } else { | 
					
						
							|  |  |  |                     $yysubmatches = array(); | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |                 $this->value = current($yymatches); // token value
 | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |                 $r = $this->{'yy_r2_' . $this->token}($yysubmatches); | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |                 if ($r === null) { | 
					
						
							|  |  |  |                     $this->counter += strlen($this->value); | 
					
						
							|  |  |  |                     $this->line += substr_count($this->value, "\n"); | 
					
						
							|  |  |  |                     // accept this token
 | 
					
						
							|  |  |  |                     return true; | 
					
						
							|  |  |  |                 } elseif ($r === true) { | 
					
						
							|  |  |  |                     // we have changed state
 | 
					
						
							|  |  |  |                     // process this token in the new state
 | 
					
						
							|  |  |  |                     return $this->yylex(); | 
					
						
							|  |  |  |                 } elseif ($r === false) { | 
					
						
							|  |  |  |                     $this->counter += strlen($this->value); | 
					
						
							|  |  |  |                     $this->line += substr_count($this->value, "\n"); | 
					
						
							|  |  |  |                     if ($this->counter >= strlen($this->data)) { | 
					
						
							|  |  |  |                         return false; // end of input
 | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                     // skip this token
 | 
					
						
							|  |  |  |                     continue; | 
					
						
							| 
									
										
										
										
											2009-12-05 15:10:47 +00:00
										 |  |  |                 }            } else { | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |                 throw new Exception('Unexpected input at line' . $this->line . | 
					
						
							|  |  |  |                     ': ' . $this->data[$this->counter]); | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |             break; | 
					
						
							|  |  |  |         } while (true); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     } // end function
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |     const SMARTY = 2; | 
					
						
							|  |  |  |     function yy_r2_1($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-15 19:05:53 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |     function yy_r2_2($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-11 15:11:21 +00:00
										 |  |  |   if ($this->smarty->auto_literal) { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							| 
									
										
										
										
											2009-11-23 22:31:22 +00:00
										 |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2009-09-11 15:11:21 +00:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |     function yy_r2_3($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-01 19:11:48 +00:00
										 |  |  |   if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELIF; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r2_5($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-01 19:11:48 +00:00
										 |  |  |   if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r2_6($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-01 19:11:48 +00:00
										 |  |  |   if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r2_7($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-29 16:29:52 +00:00
										 |  |  |   if ($this->smarty->auto_literal) { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDEL; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							| 
									
										
										
										
											2009-11-23 22:31:22 +00:00
										 |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2009-08-29 16:29:52 +00:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_8($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-29 16:29:52 +00:00
										 |  |  |   if ($this->smarty->auto_literal) { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_RDEL; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |      $this->yypopstate(); | 
					
						
							| 
									
										
										
										
											2009-08-29 16:29:52 +00:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_9($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-11 15:11:21 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							| 
									
										
										
										
											2009-11-23 22:31:22 +00:00
										 |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_10($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-11 15:11:21 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LDEL; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							| 
									
										
										
										
											2009-11-23 22:31:22 +00:00
										 |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_11($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-11 15:11:21 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_RDEL; | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |      $this->yypopstate(); | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_12($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-14 13:08:13 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISIN; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_13($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-06-14 13:08:13 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-04-21 18:02:34 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_AS; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_15($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-03 22:39:45 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_TO; | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_17($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_STEP; | 
					
						
							| 
									
										
										
										
											2009-12-03 22:39:45 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_19($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-12-03 22:39:45 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-05 18:55:22 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_INSTANCEOF; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_20($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-05 18:55:22 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_IDENTITY; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_21($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-05 18:55:22 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_NONEIDENTITY; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_22($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-10-05 18:55:22 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_EQUALS; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_24($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_NOTEQUALS; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_26($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_GREATEREQUAL; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_28($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LESSEQUAL; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_30($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_GREATERTHAN; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_32($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LESSTHAN; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_34($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-02 17:49:57 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_MOD; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_36($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-02 17:49:57 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_NOT; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_38($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-02 17:49:57 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LAND; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_40($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-02 17:49:57 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LOR; | 
					
						
							| 
									
										
										
										
											2009-09-19 13:22:32 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_42($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-09-19 13:22:32 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-02 17:49:57 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LXOR; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_44($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-02 17:49:57 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISODDBY; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_45($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISNOTODDBY; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_46($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISODD; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_47($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISNOTODD; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_48($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISEVENBY; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_49($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVENBY; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_50($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISEVEN; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_51($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVEN; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_52($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISDIVBY; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_53($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ISNOTDIVBY; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_54($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-04 16:03:25 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_TYPECAST; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_58($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-04 16:03:25 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_OPENP; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_59($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_CLOSEP; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_60($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_OPENB; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_61($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_CLOSEB; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_62($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_PTR;  | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_63($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_APTR; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_64($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_EQUAL; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_65($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_INCDEC; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_67($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_UNIMATH; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_69($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_MATH; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_71($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_DOLLAR; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_72($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_SEMICOLON; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_73($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_74($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_COLON; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_75($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_AT; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_76($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_HATCH; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_77($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_QUOTE; | 
					
						
							| 
									
										
										
										
											2009-11-15 19:05:53 +00:00
										 |  |  |   $this->yypushstate(self::DOUBLEQUOTEDSTRING); | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_78($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; | 
					
						
							| 
									
										
										
										
											2009-11-15 19:05:53 +00:00
										 |  |  |   $this->yypopstate(); | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_79($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_VERT; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_80($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_DOT; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r2_81($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 16:53:33 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_COMMA; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-04-12 18:22:53 +00:00
										 |  |  |     function yy_r2_82($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ANDSYM; | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-04-12 18:22:53 +00:00
										 |  |  |     function yy_r2_83($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_QMARK; | 
					
						
							| 
									
										
										
										
											2009-11-28 18:48:02 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-04-12 18:22:53 +00:00
										 |  |  |     function yy_r2_84($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-28 18:48:02 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-13 12:52:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_HEX; | 
					
						
							| 
									
										
										
										
											2009-11-28 18:48:02 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-04-12 18:22:53 +00:00
										 |  |  |     function yy_r2_85($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-28 18:48:02 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-13 12:52:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ID; | 
					
						
							| 
									
										
										
										
											2009-11-28 18:48:02 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-04-12 18:22:53 +00:00
										 |  |  |     function yy_r2_86($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-28 18:48:02 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-13 12:52:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_INTEGER; | 
					
						
							| 
									
										
										
										
											2009-11-28 18:48:02 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-04-12 18:22:53 +00:00
										 |  |  |     function yy_r2_87($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-28 18:48:02 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-13 12:52:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_SPACE; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r2_88($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |     function yylex3() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $tokenMap = array ( | 
					
						
							|  |  |  |               1 => 0, | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |               2 => 0, | 
					
						
							|  |  |  |               3 => 0, | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |               4 => 0, | 
					
						
							| 
									
										
										
										
											2010-06-11 13:01:36 +00:00
										 |  |  |               5 => 0, | 
					
						
							| 
									
										
										
										
											2010-06-20 20:37:16 +00:00
										 |  |  |               6 => 0, | 
					
						
							|  |  |  |               7 => 0, | 
					
						
							|  |  |  |               8 => 2, | 
					
						
							|  |  |  |               11 => 0, | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |             ); | 
					
						
							|  |  |  |         if ($this->counter >= strlen($this->data)) { | 
					
						
							|  |  |  |             return false; // end of input
 | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2010-07-20 16:19:54 +00:00
										 |  |  |         $yy_global_pattern = "/^(".$this->ldel."\\s*literal\\s*".$this->rdel.")|^(".$this->ldel."\\s*\/literal\\s*".$this->rdel.")|^([\t ]*[\r\n]+[\t ]*)|^(<\\?(?:php\\w+|=|[a-zA-Z]+)?)|^(\\?>)|^(<%)|^(%>)|^(([\S\s]*?)(?=([\t ]*[\r\n]+[\t ]*|".$this->ldel."\/?literal".$this->rdel."|<\\?|<%)))|^([\S\s]+)/"; | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         do { | 
					
						
							|  |  |  |             if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) { | 
					
						
							|  |  |  |                 $yysubmatches = $yymatches; | 
					
						
							|  |  |  |                 $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns
 | 
					
						
							|  |  |  |                 if (!count($yymatches)) { | 
					
						
							|  |  |  |                     throw new Exception('Error: lexing failed because a rule matched' . | 
					
						
							|  |  |  |                         'an empty string.  Input "' . substr($this->data, | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |                         $this->counter, 5) . '... state LITERAL'); | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |                 } | 
					
						
							|  |  |  |                 next($yymatches); // skip global match
 | 
					
						
							|  |  |  |                 $this->token = key($yymatches); // token number
 | 
					
						
							|  |  |  |                 if ($tokenMap[$this->token]) { | 
					
						
							|  |  |  |                     // extract sub-patterns for passing to lex function
 | 
					
						
							|  |  |  |                     $yysubmatches = array_slice($yysubmatches, $this->token + 1, | 
					
						
							|  |  |  |                         $tokenMap[$this->token]); | 
					
						
							|  |  |  |                 } else { | 
					
						
							|  |  |  |                     $yysubmatches = array(); | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |                 $this->value = current($yymatches); // token value
 | 
					
						
							|  |  |  |                 $r = $this->{'yy_r3_' . $this->token}($yysubmatches); | 
					
						
							|  |  |  |                 if ($r === null) { | 
					
						
							|  |  |  |                     $this->counter += strlen($this->value); | 
					
						
							|  |  |  |                     $this->line += substr_count($this->value, "\n"); | 
					
						
							|  |  |  |                     // accept this token
 | 
					
						
							|  |  |  |                     return true; | 
					
						
							|  |  |  |                 } elseif ($r === true) { | 
					
						
							|  |  |  |                     // we have changed state
 | 
					
						
							|  |  |  |                     // process this token in the new state
 | 
					
						
							|  |  |  |                     return $this->yylex(); | 
					
						
							|  |  |  |                 } elseif ($r === false) { | 
					
						
							|  |  |  |                     $this->counter += strlen($this->value); | 
					
						
							|  |  |  |                     $this->line += substr_count($this->value, "\n"); | 
					
						
							|  |  |  |                     if ($this->counter >= strlen($this->data)) { | 
					
						
							|  |  |  |                         return false; // end of input
 | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                     // skip this token
 | 
					
						
							|  |  |  |                     continue; | 
					
						
							| 
									
										
										
										
											2009-12-05 15:10:47 +00:00
										 |  |  |                 }            } else { | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |                 throw new Exception('Unexpected input at line' . $this->line . | 
					
						
							|  |  |  |                     ': ' . $this->data[$this->counter]); | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |             break; | 
					
						
							|  |  |  |         } while (true); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     } // end function
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |     const LITERAL = 3; | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |     function yy_r3_1($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; | 
					
						
							|  |  |  |   $this->yypushstate(self::LITERAL); | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  |     function yy_r3_2($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-10-31 00:44:58 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |   $this->yypopstate(); | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |     function yy_r3_3($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-11 13:01:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LITERAL; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r3_4($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |   if (in_array($this->value, Array('<?', '<?=', '<?php'))) { | 
					
						
							|  |  |  |     $this->token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; | 
					
						
							|  |  |  |    } else { | 
					
						
							|  |  |  |     $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; | 
					
						
							|  |  |  |     $this->value = substr($this->value, 0, 2); | 
					
						
							|  |  |  |    } | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-06-11 13:01:36 +00:00
										 |  |  |     function yy_r3_5($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LITERAL; | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-06-11 13:01:36 +00:00
										 |  |  |     function yy_r3_6($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-20 20:37:16 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r3_7($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r3_8($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LITERAL; | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-06-20 20:37:16 +00:00
										 |  |  |     function yy_r3_11($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |   $this->compiler->trigger_template_error ("missing or misspelled literal closing tag"); | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |     function yylex4() | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |     { | 
					
						
							|  |  |  |         $tokenMap = array ( | 
					
						
							|  |  |  |               1 => 0, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               2 => 1, | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |               4 => 0, | 
					
						
							|  |  |  |               5 => 0, | 
					
						
							|  |  |  |               6 => 0, | 
					
						
							|  |  |  |               7 => 0, | 
					
						
							|  |  |  |               8 => 0, | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |               9 => 0, | 
					
						
							|  |  |  |               10 => 0, | 
					
						
							|  |  |  |               11 => 0, | 
					
						
							|  |  |  |               12 => 0, | 
					
						
							|  |  |  |               13 => 3, | 
					
						
							|  |  |  |               17 => 0, | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |             ); | 
					
						
							|  |  |  |         if ($this->counter >= strlen($this->data)) { | 
					
						
							|  |  |  |             return false; // end of input
 | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |         $yy_global_pattern = "/^(".$this->ldel."\\s{1,}\/)|^(".$this->ldel."\\s*(if|elseif|else if|while)(?![^\s]))|^(".$this->ldel."\\s*for(?![^\s]))|^(".$this->ldel."\\s*foreach(?![^\s]))|^(".$this->ldel."\\s{1,})|^(".$this->ldel."\/)|^(".$this->ldel.")|^(\")|^(`\\$)|^(\\$[0-9]*[a-zA-Z_]\\w*)|^(\\$)|^(([^\"\\\\]*?)((?:\\\\.[^\"\\\\]*?)*?)(?=(".$this->ldel."|\\$|`\\$|\")))|^([\S\s]+)/"; | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         do { | 
					
						
							|  |  |  |             if (preg_match($yy_global_pattern, substr($this->data, $this->counter), $yymatches)) { | 
					
						
							|  |  |  |                 $yysubmatches = $yymatches; | 
					
						
							|  |  |  |                 $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns
 | 
					
						
							|  |  |  |                 if (!count($yymatches)) { | 
					
						
							|  |  |  |                     throw new Exception('Error: lexing failed because a rule matched' . | 
					
						
							|  |  |  |                         'an empty string.  Input "' . substr($this->data, | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |                         $this->counter, 5) . '... state DOUBLEQUOTEDSTRING'); | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |                 } | 
					
						
							|  |  |  |                 next($yymatches); // skip global match
 | 
					
						
							|  |  |  |                 $this->token = key($yymatches); // token number
 | 
					
						
							|  |  |  |                 if ($tokenMap[$this->token]) { | 
					
						
							|  |  |  |                     // extract sub-patterns for passing to lex function
 | 
					
						
							|  |  |  |                     $yysubmatches = array_slice($yysubmatches, $this->token + 1, | 
					
						
							|  |  |  |                         $tokenMap[$this->token]); | 
					
						
							|  |  |  |                 } else { | 
					
						
							|  |  |  |                     $yysubmatches = array(); | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |                 $this->value = current($yymatches); // token value
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |                 $r = $this->{'yy_r4_' . $this->token}($yysubmatches); | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |                 if ($r === null) { | 
					
						
							|  |  |  |                     $this->counter += strlen($this->value); | 
					
						
							|  |  |  |                     $this->line += substr_count($this->value, "\n"); | 
					
						
							|  |  |  |                     // accept this token
 | 
					
						
							|  |  |  |                     return true; | 
					
						
							|  |  |  |                 } elseif ($r === true) { | 
					
						
							|  |  |  |                     // we have changed state
 | 
					
						
							|  |  |  |                     // process this token in the new state
 | 
					
						
							|  |  |  |                     return $this->yylex(); | 
					
						
							|  |  |  |                 } elseif ($r === false) { | 
					
						
							|  |  |  |                     $this->counter += strlen($this->value); | 
					
						
							|  |  |  |                     $this->line += substr_count($this->value, "\n"); | 
					
						
							|  |  |  |                     if ($this->counter >= strlen($this->data)) { | 
					
						
							|  |  |  |                         return false; // end of input
 | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                     // skip this token
 | 
					
						
							|  |  |  |                     continue; | 
					
						
							|  |  |  |                 }            } else { | 
					
						
							|  |  |  |                 throw new Exception('Unexpected input at line' . $this->line . | 
					
						
							|  |  |  |                     ': ' . $this->data[$this->counter]); | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |             break; | 
					
						
							|  |  |  |         } while (true); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     } // end function
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |     const DOUBLEQUOTEDSTRING = 4; | 
					
						
							|  |  |  |     function yy_r4_1($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |   if ($this->smarty->auto_literal) { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |   } else { | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2010-02-24 18:01:03 +00:00
										 |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-03-11 22:26:46 +00:00
										 |  |  |     function yy_r4_2($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-01 19:11:48 +00:00
										 |  |  |   if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELIF; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r4_4($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-01 19:11:48 +00:00
										 |  |  |   if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r4_5($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-01 19:11:48 +00:00
										 |  |  |   if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     function yy_r4_6($yy_subpatterns) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |   if ($this->smarty->auto_literal) { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |      $this->token = Smarty_Internal_Templateparser::TP_LDEL; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r4_7($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r4_8($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_LDEL; | 
					
						
							|  |  |  |      $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |      $this->taglineno = $this->line; | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r4_9($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_QUOTE; | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |   $this->yypopstate(); | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r4_10($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; | 
					
						
							|  |  |  |   $this->value = substr($this->value,0,-1); | 
					
						
							|  |  |  |   $this->yypushstate(self::SMARTY); | 
					
						
							|  |  |  |   $this->taglineno = $this->line; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r4_11($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r4_12($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-10 20:51:36 +00:00
										 |  |  |   $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							| 
									
										
										
										
											2010-01-11 20:44:01 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r4_13($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-15 19:05:53 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2010-05-31 17:58:23 +00:00
										 |  |  |     function yy_r4_17($yy_subpatterns) | 
					
						
							| 
									
										
										
										
											2009-11-15 19:05:53 +00:00
										 |  |  |     { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   $this->token = Smarty_Internal_Templateparser::TP_OTHER; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-22 16:09:05 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2009-11-08 16:17:51 +00:00
										 |  |  | ?>
 |