MediaWiki  REL1_22
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, and t().


Member Function Documentation

JSParser::Block ( x) [private]

Definition at line 781 of file jsminplus.php.

References $n, Statements(), and t().

Referenced by Statement().

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

Definition at line 1178 of file jsminplus.php.

References $n, $t, array(), empty, FunctionDefinition(), reduce(), t(), and type.

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

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

Definition at line 1108 of file jsminplus.php.

References $f, array(), Script(), and t().

Referenced by Expression(), and Statement().

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

Definition at line 1574 of file jsminplus.php.

References $n, and t().

Referenced by Statement().

JSParser::ParenExpression ( x) [private]

Definition at line 1564 of file jsminplus.php.

References $n, Expression(), and t().

Referenced by Statement().

JSParser::parse ( s,
f,
l 
)

Definition at line 732 of file jsminplus.php.

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

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

Definition at line 1586 of file jsminplus.php.

References $n, $right, and t().

Referenced by Expression().

JSParser::Script ( x) [private]

Definition at line 745 of file jsminplus.php.

References $n, and Statements().

Referenced by FunctionDefinition(), and parse().

JSParser::Statements ( x) [private]

Definition at line 768 of file jsminplus.php.

References $n, and t().

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

JSParser::Variables ( x) [private]

Definition at line 1149 of file jsminplus.php.

References $n, Expression(), and t().

Referenced by Statement().


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: