MediaWiki  REL1_19
JSParser Class Reference

List of all members.

Public Member Functions

 __construct ($minifier=null)
 parse ($s, $f, $l)

Private Member Functions

 Block ($x)
 Expression ($x, $stop=false)
 FunctionDefinition ($x, $requireName, $functionForm)
 nest ($x, $node, $end=false)
 ParenExpression ($x)
 reduce (&$operators, &$operands)
 Script ($x)
 Statement ($x)
 Statements ($x)
 Variables ($x)

Private Attributes

 $minifier
 $opArity
 $opPrecedence
 $t

Detailed Description

Definition at line 673 of file jsminplus.php.


Constructor & Destructor Documentation

JSParser::__construct ( minifier = null)

Definition at line 726 of file jsminplus.php.

References $minifier.


Member Function Documentation

JSParser::Block ( x) [private]

Definition at line 781 of file jsminplus.php.

References $n, and Statements().

Referenced by Statement().

Here is the call graph for this function:

Here is the caller graph for this function:

JSParser::Expression ( x,
stop = false 
) [private]

Definition at line 1178 of file jsminplus.php.

References $n, $t, FunctionDefinition(), and reduce().

Referenced by ParenExpression(), Statement(), and Variables().

Here is the call graph for this function:

Here is the caller graph for this function:

JSParser::FunctionDefinition ( x,
requireName,
functionForm 
) [private]

Definition at line 1108 of file jsminplus.php.

References $f, and Script().

Referenced by Expression(), and Statement().

Here is the call graph for this function:

Here is the caller graph for this function:

JSParser::nest ( x,
node,
end = false 
) [private]

Definition at line 1574 of file jsminplus.php.

References $n.

Referenced by Statement().

Here is the caller graph for this function:

JSParser::ParenExpression ( x) [private]

Definition at line 1564 of file jsminplus.php.

References $n, and Expression().

Referenced by Statement().

Here is the call graph for this function:

Here is the caller graph for this function:

JSParser::parse ( s,
f,
l 
)

Definition at line 732 of file jsminplus.php.

References $f, $n, and Script().

Here is the call graph for this function:

JSParser::reduce ( &$  operators,
&$  operands 
) [private]

Definition at line 1586 of file jsminplus.php.

References $n.

Referenced by Expression().

Here is the caller graph for this function:

JSParser::Script ( x) [private]

Definition at line 745 of file jsminplus.php.

References $n, and Statements().

Referenced by FunctionDefinition(), and parse().

Here is the call graph for this function:

Here is the caller graph for this function:

JSParser::Statement ( x) [private]

Definition at line 790 of file jsminplus.php.

References $n, Block(), Expression(), FunctionDefinition(), nest(), ParenExpression(), Statements(), and Variables().

Here is the call graph for this function:

JSParser::Statements ( x) [private]

Definition at line 768 of file jsminplus.php.

References $n.

Referenced by Block(), Script(), and Statement().

Here is the caller graph for this function:

JSParser::Variables ( x) [private]

Definition at line 1149 of file jsminplus.php.

References $n, and Expression().

Referenced by Statement().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

JSParser::$minifier [private]

Definition at line 676 of file jsminplus.php.

Referenced by __construct().

JSParser::$opArity [private]
Initial value:
 array(
                ',' => -2,
                '=' => 2,
                '?' => 3,
                '||' => 2,
                '&&' => 2,
                '|' => 2,
                '^' => 2,
                '&' => 2,
                '==' => 2, '!=' => 2, '===' => 2, '!==' => 2,
                '<' => 2, '<=' => 2, '>=' => 2, '>' => 2, 'in' => 2, 'instanceof' => 2,
                '<<' => 2, '>>' => 2, '>>>' => 2,
                '+' => 2, '-' => 2,
                '*' => 2, '/' => 2, '%' => 2,
                'delete' => 1, 'void' => 1, 'typeof' => 1,
                '!' => 1, '~' => 1, 'U+' => 1, 'U-' => 1,
                '++' => 1, '--' => 1,
                'new' => 1,
                '.' => 2,
                JS_NEW_WITH_ARGS => 2, JS_INDEX => 2, JS_CALL => 2,
                JS_ARRAY_INIT => 1, JS_OBJECT_INIT => 1, JS_GROUP => 1,
                TOKEN_CONDCOMMENT_START => 1, TOKEN_CONDCOMMENT_END => 1
        )

Definition at line 702 of file jsminplus.php.

JSParser::$opPrecedence [private]
Initial value:
 array(
                ';' => 0,
                ',' => 1,
                '=' => 2, '?' => 2, ':' => 2,
                
                '||' => 4,
                '&&' => 5,
                '|' => 6,
                '^' => 7,
                '&' => 8,
                '==' => 9, '!=' => 9, '===' => 9, '!==' => 9,
                '<' => 10, '<=' => 10, '>=' => 10, '>' => 10, 'in' => 10, 'instanceof' => 10,
                '<<' => 11, '>>' => 11, '>>>' => 11,
                '+' => 12, '-' => 12,
                '*' => 13, '/' => 13, '%' => 13,
                'delete' => 14, 'void' => 14, 'typeof' => 14,
                '!' => 14, '~' => 14, 'U+' => 14, 'U-' => 14,
                '++' => 15, '--' => 15,
                'new' => 16,
                '.' => 17,
                JS_NEW_WITH_ARGS => 0, JS_INDEX => 0, JS_CALL => 0,
                JS_ARRAY_INIT => 0, JS_OBJECT_INIT => 0, JS_GROUP => 0
        )

Definition at line 678 of file jsminplus.php.

JSParser::$t [private]

Definition at line 675 of file jsminplus.php.

Referenced by Expression().


The documentation for this class was generated from the following file: