PHP Class Haanga_Compiler_Tokenizer

显示文件 Open project: crodas/haanga Class Usage Examples

Public Properties

Property Type Description
$close_tags
$end_comment
$end_print
$end_tag
$keywords * they are case sensitive and sorted!
$open_comment
$open_print
$open_tag
$open_tags
$operators
$operators_single * common operations
$status
$token
$value

Protected Properties

Property Type Description
$echoFirstToken

Public Methods

Method Description
Error ( $text )
__construct ( $data, $compiler, $file )
getAlpha ( )
getLine ( )
getOperator ( )
getTag ( )
init ( $template, $compiler, $file = '' )
yylex ( )
yylex_html ( )
yylex_main ( )

Protected Methods

Method Description
is_token_end ( string $letter ) : boolean Return TRUE if $letter is a valid "token_end". We use token_end to avoid confuse T_ALPHA TRUEfoo with TRUE and foo (T_ALPHA)

Method Details

Error() public method

public Error ( $text )

__construct() public method

public __construct ( $data, $compiler, $file )

getAlpha() public method

public getAlpha ( )

getLine() public method

public getLine ( )

getOperator() public method

public getOperator ( )

getTag() public method

public getTag ( )

init() static public method

static public init ( $template, $compiler, $file = '' )

is_token_end() protected method

@param string $letter
protected is_token_end ( string $letter ) : boolean
$letter string
return boolean

yylex() public method

public yylex ( )

yylex_html() public method

public yylex_html ( )

yylex_main() public method

public yylex_main ( )

Property Details

$close_tags static_oe public_oe property

static public $close_tags

$echoFirstToken protected_oe property

protected $echoFirstToken

$end_comment static_oe public_oe property

static public $end_comment

$end_print static_oe public_oe property

static public $end_print

$end_tag static_oe public_oe property

static public $end_tag

$keywords static_oe public_oe property

* they are case sensitive and sorted!
static public $keywords

$open_comment static_oe public_oe property

static public $open_comment

$open_print static_oe public_oe property

static public $open_print

$open_tag static_oe public_oe property

static public $open_tag

$open_tags public_oe property

public $open_tags

$operators static_oe public_oe property

static public $operators

$operators_single static_oe public_oe property

* common operations
static public $operators_single

$status public_oe property

public $status

$token public_oe property

public $token

$value public_oe property

public $value