MediaWiki
REL1_19
|
Go to the source code of this file.
enum DECLARED_FORM |
Definition at line 93 of file jsminplus.php.
enum EXPRESSED_FORM |
Definition at line 94 of file jsminplus.php.
enum JS_ARRAY_INIT |
Definition at line 83 of file jsminplus.php.
enum JS_BLOCK |
Definition at line 77 of file jsminplus.php.
enum JS_CALL |
Definition at line 80 of file jsminplus.php.
enum JS_FOR_IN |
Definition at line 79 of file jsminplus.php.
enum JS_GETTER |
Definition at line 86 of file jsminplus.php.
enum JS_GROUP |
Definition at line 88 of file jsminplus.php.
enum JS_INDEX |
Definition at line 82 of file jsminplus.php.
enum JS_LABEL |
Definition at line 78 of file jsminplus.php.
enum JS_LIST |
Definition at line 89 of file jsminplus.php.
enum JS_MINIFIED |
Definition at line 91 of file jsminplus.php.
enum JS_NEW_WITH_ARGS |
Definition at line 81 of file jsminplus.php.
enum JS_OBJECT_INIT |
Definition at line 84 of file jsminplus.php.
enum JS_PROPERTY_INIT |
Definition at line 85 of file jsminplus.php.
enum JS_SCRIPT |
Definition at line 76 of file jsminplus.php.
enum JS_SETTER |
Definition at line 87 of file jsminplus.php.
enum KEYWORD_BREAK |
Definition at line 141 of file jsminplus.php.
enum KEYWORD_CASE |
Definition at line 142 of file jsminplus.php.
enum KEYWORD_CATCH |
Definition at line 143 of file jsminplus.php.
enum KEYWORD_CONST |
Definition at line 144 of file jsminplus.php.
enum KEYWORD_CONTINUE |
Definition at line 145 of file jsminplus.php.
enum KEYWORD_DEBUGGER |
Definition at line 146 of file jsminplus.php.
enum KEYWORD_DEFAULT |
Definition at line 147 of file jsminplus.php.
enum KEYWORD_DELETE |
Definition at line 148 of file jsminplus.php.
enum KEYWORD_DO |
Definition at line 149 of file jsminplus.php.
enum KEYWORD_ELSE |
Definition at line 150 of file jsminplus.php.
enum KEYWORD_ENUM |
Definition at line 151 of file jsminplus.php.
enum KEYWORD_FALSE |
Definition at line 152 of file jsminplus.php.
enum KEYWORD_FINALLY |
Definition at line 153 of file jsminplus.php.
enum KEYWORD_FOR |
Definition at line 154 of file jsminplus.php.
enum KEYWORD_FUNCTION |
Definition at line 155 of file jsminplus.php.
enum KEYWORD_IF |
Definition at line 156 of file jsminplus.php.
enum KEYWORD_IN |
Definition at line 157 of file jsminplus.php.
enum KEYWORD_INSTANCEOF |
Definition at line 158 of file jsminplus.php.
enum KEYWORD_NEW |
Definition at line 159 of file jsminplus.php.
enum KEYWORD_NULL |
Definition at line 160 of file jsminplus.php.
enum KEYWORD_RETURN |
Definition at line 161 of file jsminplus.php.
enum KEYWORD_SWITCH |
Definition at line 162 of file jsminplus.php.
enum KEYWORD_THIS |
Definition at line 163 of file jsminplus.php.
enum KEYWORD_THROW |
Definition at line 164 of file jsminplus.php.
enum KEYWORD_TRUE |
Definition at line 165 of file jsminplus.php.
enum KEYWORD_TRY |
Definition at line 166 of file jsminplus.php.
enum KEYWORD_TYPEOF |
Definition at line 167 of file jsminplus.php.
enum KEYWORD_VAR |
Definition at line 168 of file jsminplus.php.
enum KEYWORD_VOID |
Definition at line 169 of file jsminplus.php.
enum KEYWORD_WHILE |
Definition at line 170 of file jsminplus.php.
enum KEYWORD_WITH |
Definition at line 171 of file jsminplus.php.
enum OP_AND |
Definition at line 103 of file jsminplus.php.
enum OP_ASSIGN |
Definition at line 109 of file jsminplus.php.
enum OP_BITWISE_AND |
Definition at line 106 of file jsminplus.php.
enum OP_BITWISE_NOT |
Definition at line 127 of file jsminplus.php.
enum OP_BITWISE_OR |
Definition at line 104 of file jsminplus.php.
enum OP_BITWISE_XOR |
Definition at line 105 of file jsminplus.php.
enum OP_COLON |
Definition at line 101 of file jsminplus.php.
enum OP_COMMA |
Definition at line 99 of file jsminplus.php.
enum OP_CONDCOMMENT_END |
Definition at line 135 of file jsminplus.php.
enum OP_DECREMENT |
Definition at line 120 of file jsminplus.php.
enum OP_DIV |
Definition at line 124 of file jsminplus.php.
enum OP_DOT |
Definition at line 128 of file jsminplus.php.
enum OP_EQ |
Definition at line 108 of file jsminplus.php.
enum OP_GE |
Definition at line 117 of file jsminplus.php.
enum OP_GT |
Definition at line 118 of file jsminplus.php.
enum OP_HOOK |
Definition at line 100 of file jsminplus.php.
enum OP_INCREMENT |
Definition at line 119 of file jsminplus.php.
enum OP_LE |
Definition at line 113 of file jsminplus.php.
enum OP_LEFT_BRACKET |
Definition at line 129 of file jsminplus.php.
enum OP_LEFT_CURLY |
Definition at line 131 of file jsminplus.php.
enum OP_LEFT_PAREN |
Definition at line 133 of file jsminplus.php.
enum OP_LSH |
Definition at line 112 of file jsminplus.php.
enum OP_LT |
Definition at line 114 of file jsminplus.php.
enum OP_MINUS |
Definition at line 122 of file jsminplus.php.
enum OP_MOD |
Definition at line 125 of file jsminplus.php.
enum OP_MUL |
Definition at line 123 of file jsminplus.php.
enum OP_NE |
Definition at line 111 of file jsminplus.php.
enum OP_NOT |
Definition at line 126 of file jsminplus.php.
enum OP_OR |
Definition at line 102 of file jsminplus.php.
enum OP_PLUS |
Definition at line 121 of file jsminplus.php.
enum OP_RIGHT_BRACKET |
Definition at line 130 of file jsminplus.php.
enum OP_RIGHT_CURLY |
Definition at line 132 of file jsminplus.php.
enum OP_RIGHT_PAREN |
Definition at line 134 of file jsminplus.php.
enum OP_RSH |
Definition at line 116 of file jsminplus.php.
enum OP_SEMICOLON |
Definition at line 98 of file jsminplus.php.
enum OP_STRICT_EQ |
Definition at line 107 of file jsminplus.php.
enum OP_STRICT_NE |
Definition at line 110 of file jsminplus.php.
enum OP_UNARY_MINUS |
Definition at line 138 of file jsminplus.php.
enum OP_UNARY_PLUS |
Definition at line 137 of file jsminplus.php.
enum OP_URSH |
Definition at line 115 of file jsminplus.php.
enum STATEMENT_FORM |
Definition at line 95 of file jsminplus.php.
Definition at line 74 of file jsminplus.php.
Definition at line 73 of file jsminplus.php.
enum TOKEN_END |
JSMinPlus version 1.4.
Minifies a javascript file using a javascript parser
This implements a PHP port of Brendan Eich's Narcissus open source javascript engine (in javascript) References: http://en.wikipedia.org/wiki/Narcissus_(JavaScript_engine) Narcissus sourcecode: http://mxr.mozilla.org/mozilla/source/js/narcissus/ JSMinPlus weblog: http://crisp.tweakblogs.net/blog/cat/716
Tino Zijdel <[email protected]>
Usage: $minified = JSMinPlus::minify($script [, $filename])
Versionlog (see also changelog.txt): 23-07-2011 - remove dynamic creation of OP_* and KEYWORD_* defines and declare them on top reduce memory footprint by minifying by block-scope some small byte-saving and performance improvements 12-05-2009 - fixed hook:colon precedence, fixed empty body in loop and if-constructs 18-04-2009 - fixed crashbug in PHP 5.2.9 and several other bugfixes 12-04-2009 - some small bugfixes and performance improvements 09-04-2009 - initial open sourced version 1.0
Latest version of this script: http://files.tweakers.net/jsminplus/jsminplus.zip
Definition at line 67 of file jsminplus.php.
enum TOKEN_IDENTIFIER |
Definition at line 69 of file jsminplus.php.
enum TOKEN_NEWLINE |
Definition at line 72 of file jsminplus.php.
enum TOKEN_NUMBER |
Definition at line 68 of file jsminplus.php.
enum TOKEN_REGEXP |
Definition at line 71 of file jsminplus.php.
enum TOKEN_STRING |
Definition at line 70 of file jsminplus.php.