PHP Class Haanga_AST

Mostrar archivo Open project: crodas/haanga Class Usage Examples

Public Properties

Property Type Description
$current
$doesPrint
$stack

Public Methods

Method Description
__get ( $property )
append ( $name, $value )
append_ast ( Haanga_AST $obj )
arr ( )
comment ( $str )
constant ( $str )
decl ( $name, $value )
decl_raw ( $name, $value )
declare_function ( $name )
do_echo ( $stmt )
do_else ( )
do_endfunction ( )
do_endif ( )
do_exec ( )
do_for ( $index, $min, $max, $step, Haanga_AST $body )
do_foreach ( $array, $value, $key, Haanga_AST $body )
do_global ( $array )
do_if ( $expr )
do_return ( $name )
element ( $key = NULL, $value )
end ( )
exec ( $function )
expr ( $operation, $term1, $term2 = NULL )
expr_cond ( $expr, $if_true, $if_false )
fromArrayGetAST ( $obj )
getArray ( $get_all = FALSE )
getLast ( ) : array Return a refernce to the last element of the AST stack.
getValue ( $obj, &$value, $get_all = FALSE )
is_exec ( $arr )
is_expr ( $arr )
is_str ( $arr )
is_var ( $arr )
num ( $number )
param ( $param )
stack_size ( )
str ( $string )
v ( )

Protected Methods

Method Description
check_type ( $obj, $type ) }}}

Method Details

__get() final public method

final public __get ( $property )

append() public method

public append ( $name, $value )

append_ast() public method

public append_ast ( Haanga_AST $obj )
$obj Haanga_AST

arr() public method

public arr ( )

check_type() protected static method

}}}
protected static check_type ( $obj, $type )

comment() public method

public comment ( $str )

constant() static public method

static public constant ( $str )

decl() public method

public decl ( $name, $value )

decl_raw() public method

public decl_raw ( $name, $value )

declare_function() public method

public declare_function ( $name )

do_echo() public method

public do_echo ( $stmt )

do_else() public method

public do_else ( )

do_endfunction() public method

public do_endfunction ( )

do_endif() public method

public do_endif ( )

do_exec() public method

public do_exec ( )

do_for() public method

public do_for ( $index, $min, $max, $step, Haanga_AST $body )
$body Haanga_AST

do_foreach() public method

public do_foreach ( $array, $value, $key, Haanga_AST $body )
$body Haanga_AST

do_global() public method

public do_global ( $array )

do_if() public method

public do_if ( $expr )

do_return() public method

public do_return ( $name )

element() public method

public element ( $key = NULL, $value )

end() public method

public end ( )

exec() public method

public exec ( $function )

expr() public method

public expr ( $operation, $term1, $term2 = NULL )

expr_cond() public method

public expr_cond ( $expr, $if_true, $if_false )

fromArrayGetAST() static public method

static public fromArrayGetAST ( $obj )

getArray() public method

public getArray ( $get_all = FALSE )

getLast() public method

@return array
public getLast ( ) : array
return array

getValue() static public method

static public getValue ( $obj, &$value, $get_all = FALSE )

is_exec() public static method

public static is_exec ( $arr )

is_expr() public static method

public static is_expr ( $arr )

is_str() public static method

public static is_str ( $arr )

is_var() public static method

public static is_var ( $arr )

num() public static method

public static num ( $number )

param() public method

public param ( $param )

stack_size() public method

public stack_size ( )

str() public static method

public static str ( $string )

v() public method

public v ( )

Property Details

$current public_oe property

public $current

$doesPrint public_oe property

public $doesPrint

$stack public_oe property

public $stack