$commentTokens = array(
'//' => null,
'/*' => '*/',
'/**' => '*/',
)
[line 210]
A list tokens that start and end comments.
$endScopeTokens = array(
T_CLOSE_CURLY_BRACKET,
T_BREAK,
)
[line 133]
A list of tokens that end the scope.
This array is just a unique collection of the end tokens from the _scopeOpeners array. The data is duplicated here to save time during parsing of the file.
$scopeOpeners = array(
T_IF => array(
'start' => T_OPEN_CURLY_BRACKET,
'end' => T_CLOSE_CURLY_BRACKET,
'strict' => false,
'shared' => false,
'with' => array(),),T_TRY=>array('start'=>T_OPEN_CURLY_BRACKET,'end'=>T_CLOSE_CURLY_BRACKET,'strict'=>true,'shared'=>false,'with'=>array(),),T_CATCH=>array('start'=>T_OPEN_CURLY_BRACKET,'end'=>T_CLOSE_CURLY_BRACKET,'strict'=>true,'shared'=>false,'with'=>array(),),T_ELSE=>array('start'=>T_OPEN_CURLY_BRACKET,'end'=>T_CLOSE_CURLY_BRACKET,'strict'=>false,'shared'=>false,'with'=>array(),),T_FOR=>array('start'=>T_OPEN_CURLY_BRACKET,'end'=>T_CLOSE_CURLY_BRACKET,'strict'=>false,'shared'=>false,'with'=>array(),),T_FUNCTION=>array('start'=>T_OPEN_CURLY_BRACKET,'end'=>T_CLOSE_CURLY_BRACKET,'strict'=>false,'shared'=>false,'with'=>array(),),T_WHILE=>array('start'=>T_OPEN_CURLY_BRACKET,'end'=>T_CLOSE_CURLY_BRACKET,'strict'=>false,'shared'=>false,'with'=>array(),),T_DO=>array('start'=>T_OPEN_CURLY_BRACKET,'end'=>T_CLOSE_CURLY_BRACKET,'strict'=>true,'shared'=>false,'with'=>array(),),T_SWITCH=>array('start'=>T_OPEN_CURLY_BRACKET,'end'=>T_CLOSE_CURLY_BRACKET,'strict'=>true,'shared'=>false,'with'=>array(),),T_CASE=>array('start'=>T_COLON,'end'=>T_BREAK,'strict'=>true,'shared'=>true,'with'=>array(T_DEFAULT,T_CASE,),),T_DEFAULT=>array('start'=>T_COLON,'end'=>T_BREAK,'strict'=>true,'shared'=>true,'with'=>array(T_CASE),),)
[line 41]
A list of tokens that are allowed to open a scope.
This array also contains information about what kind of token the scope opener uses to open and close the scope, if the token strictly requires an opener, if the token can share a scope closer, and who it can be shared with. An example of a token that shares a scope closer is a CASE scope.
$stringTokens = array(
'\'',
'"',
)
[line 200]
A list string delimiters.
$tokenValues = array(
'function' => 'T_FUNCTION',
'prototype' => 'T_PROTOTYPE',
'try' => 'T_TRY',
'catch' => 'T_CATCH',
'return' => 'T_RETURN',
'if' => 'T_IF',
'else' => 'T_ELSE',
'do' => 'T_DO',
'while' => 'T_WHILE',
'for' => 'T_FOR',
'var' => 'T_VAR',
'true' => 'T_TRUE',
'false' => 'T_FALSE',
'null' => 'T_NULL',
'this' => 'T_THIS',
'(' => 'T_OPEN_PARENTHESIS',
')' => 'T_CLOSE_PARENTHESIS',
'{' => 'T_OPEN_CURLY_BRACKET',
'}' => 'T_CLOSE_CURLY_BRACKET',
'[' => 'T_OPEN_SQUARE_BRACKET',
']' => 'T_CLOSE_SQUARE_BRACKET',
'?' => 'T_INLINE_THEN',
'.' => 'T_OBJECT_OPERATOR',
'+' => 'T_PLUS',
'-' => 'T_MINUS',
'*' => 'T_MULTIPLY',
'%' => 'T_MODULUS',
'/' => 'T_DIVIDE',
',' => 'T_COMMA',
';' => 'T_SEMICOLON',
':' => 'T_COLON',
'<' => 'T_LESS_THAN',
'>' => 'T_GREATER_THAN',
'<=' => 'T_IS_SMALLER_OR_EQUAL',
'>=' => 'T_IS_GREATER_OR_EQUAL',
'!' => 'T_BOOLEAN_NOT',
'!=' => 'T_IS_NOT_EQUAL',
'!==' => 'T_IS_NOT_IDENTICAL',
'=' => 'T_EQUAL',
'==' => 'T_IS_EQUAL',
'===' => 'T_IS_IDENTICAL',
'-=' => 'T_MINUS_EQUAL',
'+=' => 'T_PLUS_EQUAL',
'++' => 'T_INC',
'--' => 'T_DEC',
'//' => 'T_COMMENT',
'/*' => 'T_COMMENT',
'/**' => 'T_DOC_COMMENT',
'*/' => 'T_COMMENT',
)
[line 143]
A list of special JS tokens and their types.