MediaWiki REL1_31
|
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 1707 of file jsminplus.php.
JSTokenizer::__construct | ( | ) |
Definition at line 1747 of file jsminplus.php.
JSTokenizer::currentToken | ( | ) |
JSTokenizer::get | ( | $chunksize = 1000 | ) |
Definition at line 1826 of file jsminplus.php.
References $cursor, $input, $lineno, $tokenIndex, array(), getInput(), newSyntaxError(), OP_ASSIGN, OP_MINUS, OP_PLUS, OP_UNARY_MINUS, OP_UNARY_PLUS, TOKEN_CONDCOMMENT_END, TOKEN_CONDCOMMENT_START, TOKEN_END, TOKEN_IDENTIFIER, TOKEN_NEWLINE, TOKEN_NUMBER, TOKEN_REGEXP, and TOKEN_STRING.
JSTokenizer::getInput | ( | $chunksize | ) |
Definition at line 1766 of file jsminplus.php.
Referenced by get().
JSTokenizer::init | ( | $source, | |
$filename = '', | |||
$lineno = 1 ) |
JSTokenizer::isDone | ( | ) |
Definition at line 1774 of file jsminplus.php.
JSTokenizer::match | ( | $tt | ) |
JSTokenizer::mustMatch | ( | $tt | ) |
Definition at line 1784 of file jsminplus.php.
References currentToken(), match(), and newSyntaxError().
JSTokenizer::newSyntaxError | ( | $m | ) |
Definition at line 2113 of file jsminplus.php.
References line.
Referenced by get(), mustMatch(), and unget().
JSTokenizer::peek | ( | ) |
Definition at line 1792 of file jsminplus.php.
References $lookahead, TOKEN_NEWLINE, and unget().
Referenced by isDone(), and peekOnSameLine().
JSTokenizer::peekOnSameLine | ( | ) |
Definition at line 1811 of file jsminplus.php.
References peek().
JSTokenizer::unget | ( | ) |
Definition at line 2105 of file jsminplus.php.
References newSyntaxError().
|
static |
Definition at line 2118 of file jsminplus.php.
|
private |
Definition at line 1744 of file jsminplus.php.
|
private |
Definition at line 1709 of file jsminplus.php.
Referenced by get().
JSTokenizer::$filename |
Definition at line 1718 of file jsminplus.php.
Referenced by init().
|
private |
Definition at line 1721 of file jsminplus.php.
JSTokenizer::$lineno |
Definition at line 1719 of file jsminplus.php.
JSTokenizer::$lookahead = 0 |
Definition at line 1714 of file jsminplus.php.
Referenced by peek().
|
private |
Definition at line 1745 of file jsminplus.php.
|
private |
Definition at line 1736 of file jsminplus.php.
JSTokenizer::$scanNewlines = false |
Definition at line 1715 of file jsminplus.php.
JSTokenizer::$scanOperand = true |
Definition at line 1716 of file jsminplus.php.
|
private |
Definition at line 1710 of file jsminplus.php.
Referenced by init().
JSTokenizer::$tokenIndex = 0 |
Definition at line 1713 of file jsminplus.php.
Referenced by currentToken(), and get().
JSTokenizer::$tokens = array() |
Definition at line 1712 of file jsminplus.php.