MediaWiki  REL1_19
JSTokenizer Class Reference

List of all members.

Public Member Functions

 __construct ()
 currentToken ()
 get ($chunksize=1000)
 getInput ($chunksize)
 init ($source, $filename= '', $lineno=1)
 isDone ()
 match ($tt)
 mustMatch ($tt)
 newSyntaxError ($m)
 peek ()
 peekOnSameLine ()
 unget ()

Static Public Member Functions

static unicodeEscapeCallback ($m)

Public Attributes

 $filename
 $lineno
 $lookahead = 0
 $scanNewlines = false
 $scanOperand = true
 $tokenIndex = 0
 $tokens = array()

Private Attributes

 $assignOps = array('|', '^', '&', '<<', '>>', '>>>', '+', '-', '*', '/', '%')
 $cursor = 0
 $keywords
 $opRegExp
 $opTypeNames
 $source

Detailed Description

Definition at line 1708 of file jsminplus.php.


Constructor & Destructor Documentation

Definition at line 1748 of file jsminplus.php.


Member Function Documentation

Definition at line 1821 of file jsminplus.php.

Referenced by mustMatch().

Here is the caller graph for this function:

JSTokenizer::get ( chunksize = 1000)

Definition at line 1827 of file jsminplus.php.

References $input, getInput(), and newSyntaxError().

Here is the call graph for this function:

JSTokenizer::getInput ( chunksize)

Definition at line 1767 of file jsminplus.php.

Referenced by get().

Here is the caller graph for this function:

JSTokenizer::init ( source,
filename = '',
lineno = 1 
)

Definition at line 1753 of file jsminplus.php.

References $filename, $lineno, and $source.

Definition at line 1775 of file jsminplus.php.

References peek().

Here is the call graph for this function:

JSTokenizer::match ( tt)

Definition at line 1780 of file jsminplus.php.

References unget().

Referenced by mustMatch().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1785 of file jsminplus.php.

References currentToken(), match(), and newSyntaxError().

Here is the call graph for this function:

Definition at line 2114 of file jsminplus.php.

Referenced by get(), mustMatch(), and unget().

Here is the caller graph for this function:

Definition at line 1793 of file jsminplus.php.

References unget().

Referenced by isDone(), and peekOnSameLine().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1812 of file jsminplus.php.

References peek().

Here is the call graph for this function:

Definition at line 2106 of file jsminplus.php.

References newSyntaxError().

Referenced by match(), and peek().

Here is the call graph for this function:

Here is the caller graph for this function:

static JSTokenizer::unicodeEscapeCallback ( m) [static]

Definition at line 2119 of file jsminplus.php.


Member Data Documentation

JSTokenizer::$assignOps = array('|', '^', '&', '<<', '>>', '>>>', '+', '-', '*', '/', '%') [private]

Definition at line 1745 of file jsminplus.php.

JSTokenizer::$cursor = 0 [private]

Definition at line 1710 of file jsminplus.php.

JSTokenizer::$filename

Definition at line 1719 of file jsminplus.php.

Referenced by init().

JSTokenizer::$keywords [private]
Initial value:
 array(
                'break',
                'case', 'catch', 'const', 'continue',
                'debugger', 'default', 'delete', 'do',
                'else', 'enum',
                'false', 'finally', 'for', 'function',
                'if', 'in', 'instanceof',
                'new', 'null',
                'return',
                'switch',
                'this', 'throw', 'true', 'try', 'typeof',
                'var', 'void',
                'while', 'with'
        )

Definition at line 1722 of file jsminplus.php.

JSTokenizer::$lineno

Definition at line 1720 of file jsminplus.php.

Referenced by init().

JSTokenizer::$lookahead = 0

Definition at line 1715 of file jsminplus.php.

JSTokenizer::$opRegExp [private]

Definition at line 1746 of file jsminplus.php.

JSTokenizer::$opTypeNames [private]
Initial value:
 array(
                ';', ',', '?', ':', '||', '&&', '|', '^',
                '&', '===', '==', '=', '!==', '!=', '<<', '<=',
                '<', '>>>', '>>', '>=', '>', '++', '--', '+',
                '-', '*', '/', '%', '!', '~', '.', '[',
                ']', '{', '}', '(', ')', '@*/'
        )

Definition at line 1737 of file jsminplus.php.

JSTokenizer::$scanNewlines = false

Definition at line 1716 of file jsminplus.php.

JSTokenizer::$scanOperand = true

Definition at line 1717 of file jsminplus.php.

JSTokenizer::$source [private]

Definition at line 1711 of file jsminplus.php.

Referenced by init().

JSTokenizer::$tokenIndex = 0

Definition at line 1714 of file jsminplus.php.

JSTokenizer::$tokens = array()

Definition at line 1713 of file jsminplus.php.


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