Smarty_Internal_Templatelexer
Smarty_Internal_Templatelexer This is the template file lexer.
It is generated from the smarty_internal_templatelexer.plex file
- Full name:
\Smarty_Internal_Templatelexer
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
TEXT |
public | 1 | |
TAG |
public | 2 | |
TAGBODY |
public | 3 | |
LITERAL |
public | 4 | |
DOUBLEQUOTEDSTRING |
public | 5 |
Properties
data
Source
dataLength
Source length
counter
byte counter
token
token number
value
token value
line
current line
taglineno
tag start line
phpType
php code type
state
state number
smarty
Smarty object
compiler
compiler object
yyTraceFILE
trace file
yyTracePrompt
trace prompt
is_xml
XML flag true while processing xml
state_name
state names
smarty_token_names
token names
literal_cnt
literal tag nesting level
yy_global_pattern1
preg token pattern for state TEXT
yy_global_pattern2
preg token pattern for state TAG
yy_global_pattern3
preg token pattern for state TAGBODY
yy_global_pattern4
preg token pattern for state LITERAL
yy_global_pattern5
preg token pattern for state DOUBLEQUOTEDSTRING
yy_global_text
preg token pattern for text
yy_global_literal
preg token pattern for literal
_yy_state
_yy_stack
Methods
__construct
constructor
Parameters:
Parameter | Type | Description |
---|---|---|
$source |
string | template source |
$compiler |
\Smarty_Internal_TemplateCompilerBase |
PrintTrace
open lexer/parser trace file
replace
replace placeholders with runtime preg code
Parameters:
Parameter | Type | Description |
---|---|---|
$preg |
string |
isAutoLiteral
check if current value is an autoliteral left delimiter
yylex
yypushstate
Parameters:
Parameter | Type | Description |
---|---|---|
$state |
mixed |
yypopstate
yybegin
Parameters:
Parameter | Type | Description |
---|---|---|
$state |
mixed |
yylex1
yy_r1_1
yy_r1_2
yy_r1_4
yy_r1_6
yy_r1_8
yy_r1_10
yy_r1_12
yylex2
yy_r2_1
yy_r2_4
yy_r2_6
yy_r2_8
yy_r2_10
yy_r2_12
yy_r2_15
yy_r2_18
yy_r2_20
yy_r2_23
yy_r2_25
yylex3
yy_r3_1
yy_r3_2
yy_r3_4
yy_r3_5
yy_r3_6
yy_r3_7
yy_r3_8
yy_r3_9
yy_r3_10
yy_r3_11
yy_r3_12
yy_r3_13
yy_r3_15
yy_r3_17
yy_r3_20
yy_r3_23
yy_r3_24
yy_r3_28
yy_r3_29
yy_r3_30
yy_r3_31
yy_r3_32
yy_r3_33
yy_r3_34
yy_r3_35
yy_r3_37
yy_r3_39
yy_r3_41
yy_r3_42
yy_r3_43
yy_r3_44
yy_r3_45
yy_r3_48
yy_r3_49
yy_r3_50
yy_r3_51
yy_r3_52
yy_r3_53
yy_r3_54
yy_r3_55
yy_r3_56
yy_r3_57
yy_r3_58
yy_r3_59
yy_r3_60
yylex4
yy_r4_1
yy_r4_3
yy_r4_5
yylex5
yy_r5_1
yy_r5_3
yy_r5_5
yy_r5_7
yy_r5_9
yy_r5_11
yy_r5_13
yy_r5_14
yy_r5_15
yy_r5_16
yy_r5_17
yy_r5_22
Automatically generated on 2025-03-18