PHP Class phplinter\Tokenizer

Exibir arquivo Open project: robotis/PHPLinter Class Usage Examples

Public Methods

Method Description
meaningfull ( $token ) : Bool ----------------------------------------------------------------------+
strip_whitespace ( $tokens ) : Array ----------------------------------------------------------------------+
tokenChar ( $char ) : integer ----------------------------------------------------------------------+
tokenString ( $string ) : integer ----------------------------------------------------------------------+
token_name ( $token ) : String ----------------------------------------------------------------------+
tokenize ( $file, $skip_whitespace = true ) : token ----------------------------------------------------------------------+

Method Details

meaningfull() public static method

----------------------------------------------------------------------+
public static meaningfull ( $token ) : Bool
return Bool ----------------------------------------------------------------------+

strip_whitespace() public static method

----------------------------------------------------------------------+
public static strip_whitespace ( $tokens ) : Array
return Array ----------------------------------------------------------------------+

tokenChar() public static method

----------------------------------------------------------------------+
public static tokenChar ( $char ) : integer
$char String
return integer ----------------------------------------------------------------------+

tokenString() public static method

----------------------------------------------------------------------+
public static tokenString ( $string ) : integer
$string String
return integer ----------------------------------------------------------------------+

token_name() public static method

----------------------------------------------------------------------+
public static token_name ( $token ) : String
$token int
return String ----------------------------------------------------------------------+

tokenize() public static method

----------------------------------------------------------------------+
public static tokenize ( $file, $skip_whitespace = true ) : token
return token array ----------------------------------------------------------------------+