MediaWiki  master
JSTokenizer Class Reference

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 1753 of file jsminplus.php.

Constructor & Destructor Documentation

◆ __construct()

JSTokenizer::__construct ( )

Definition at line 1793 of file jsminplus.php.

Member Function Documentation

◆ currentToken()

JSTokenizer::currentToken ( )

Definition at line 1866 of file jsminplus.php.

◆ get()

◆ getInput()

JSTokenizer::getInput (   $chunksize)

Definition at line 1812 of file jsminplus.php.

References source.

◆ init()

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

Definition at line 1798 of file jsminplus.php.

References $source, and source.

◆ isDone()

JSTokenizer::isDone ( )

Definition at line 1820 of file jsminplus.php.

References TOKEN_END.

◆ match()

JSTokenizer::match (   $tt)

Definition at line 1825 of file jsminplus.php.

◆ mustMatch()

JSTokenizer::mustMatch (   $tt)

Definition at line 1830 of file jsminplus.php.

◆ newSyntaxError()

JSTokenizer::newSyntaxError (   $m)

Definition at line 2159 of file jsminplus.php.

References on.

◆ peek()

JSTokenizer::peek ( )

Definition at line 1838 of file jsminplus.php.

References TOKEN_NEWLINE.

◆ peekOnSameLine()

JSTokenizer::peekOnSameLine ( )

Definition at line 1857 of file jsminplus.php.

◆ unget()

JSTokenizer::unget ( )

Definition at line 2151 of file jsminplus.php.

◆ unicodeEscapeCallback()

static JSTokenizer::unicodeEscapeCallback (   $m)
static

Definition at line 2164 of file jsminplus.php.

Member Data Documentation

◆ $assignOps

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

Definition at line 1790 of file jsminplus.php.

◆ $cursor

JSTokenizer::$cursor = 0
private

Definition at line 1755 of file jsminplus.php.

◆ $filename

JSTokenizer::$filename

Definition at line 1764 of file jsminplus.php.

◆ $keywords

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 1767 of file jsminplus.php.

◆ $lineno

JSTokenizer::$lineno

Definition at line 1765 of file jsminplus.php.

◆ $lookahead

JSTokenizer::$lookahead = 0

Definition at line 1760 of file jsminplus.php.

◆ $opRegExp

JSTokenizer::$opRegExp
private

Definition at line 1791 of file jsminplus.php.

◆ $opTypeNames

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

Definition at line 1782 of file jsminplus.php.

◆ $scanNewlines

JSTokenizer::$scanNewlines = false

Definition at line 1761 of file jsminplus.php.

◆ $scanOperand

JSTokenizer::$scanOperand = true

Definition at line 1762 of file jsminplus.php.

◆ $source

JSTokenizer::$source
private

Definition at line 1756 of file jsminplus.php.

◆ $tokenIndex

JSTokenizer::$tokenIndex = 0

Definition at line 1759 of file jsminplus.php.

◆ $tokens

JSTokenizer::$tokens = array()

Definition at line 1758 of file jsminplus.php.


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