MediaWiki
REL1_24
|
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 |
Definition at line 1709 of file jsminplus.php.
Definition at line 1749 of file jsminplus.php.
JSTokenizer::get | ( | $ | chunksize = 1000 | ) |
Definition at line 1828 of file jsminplus.php.
References array(), empty, getInput(), and newSyntaxError().
JSTokenizer::getInput | ( | $ | chunksize | ) |
JSTokenizer::init | ( | $ | source, |
$ | filename = '' , |
||
$ | lineno = 1 |
||
) |
Definition at line 1776 of file jsminplus.php.
References peek().
JSTokenizer::match | ( | $ | tt | ) |
JSTokenizer::mustMatch | ( | $ | tt | ) |
Definition at line 1786 of file jsminplus.php.
References currentToken(), match(), and newSyntaxError().
JSTokenizer::newSyntaxError | ( | $ | m | ) |
Definition at line 2115 of file jsminplus.php.
Referenced by get(), mustMatch(), and unget().
Definition at line 1794 of file jsminplus.php.
References unget().
Referenced by isDone(), and peekOnSameLine().
Definition at line 1813 of file jsminplus.php.
References peek().
Definition at line 2107 of file jsminplus.php.
References newSyntaxError().
static JSTokenizer::unicodeEscapeCallback | ( | $ | m | ) | [static] |
Definition at line 2120 of file jsminplus.php.
JSTokenizer::$assignOps = array('|', '^', '&', '<<', '>>', '>>>', '+', '-', '*', '/', '%') [private] |
Definition at line 1746 of file jsminplus.php.
JSTokenizer::$cursor = 0 [private] |
Definition at line 1711 of file jsminplus.php.
JSTokenizer::$filename |
Definition at line 1720 of file jsminplus.php.
Referenced by init().
JSTokenizer::$keywords [private] |
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 1723 of file jsminplus.php.
JSTokenizer::$lineno |
Definition at line 1721 of file jsminplus.php.
Referenced by init().
JSTokenizer::$lookahead = 0 |
Definition at line 1716 of file jsminplus.php.
JSTokenizer::$opRegExp [private] |
Definition at line 1747 of file jsminplus.php.
JSTokenizer::$opTypeNames [private] |
array( ';', ',', '?', ':', '||', '&&', '|', '^', '&', '===', '==', '=', '!==', '!=', '<<', '<=', '<', '>>>', '>>', '>=', '>', '++', '--', '+', '-', '*', '/', '%', '!', '~', '.', '[', ']', '{', '}', '(', ')', '@*/' )
Definition at line 1738 of file jsminplus.php.
JSTokenizer::$scanNewlines = false |
Definition at line 1717 of file jsminplus.php.
JSTokenizer::$scanOperand = true |
Definition at line 1718 of file jsminplus.php.
JSTokenizer::$source [private] |
Definition at line 1712 of file jsminplus.php.
Referenced by init().
JSTokenizer::$tokenIndex = 0 |
Definition at line 1715 of file jsminplus.php.
JSTokenizer::$tokens = array() |
Definition at line 1714 of file jsminplus.php.