PageRenderTime 104ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/Scripts/ace/noconflict/worker-php.js

http://orchardscriptingext.codeplex.com
JavaScript | 6751 lines | 5688 code | 1060 blank | 3 comment | 681 complexity | 8bbe66418e63d5c07b77876841e31bc0 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. "no use strict";
  2. if (typeof window != "undefined" && window.document)
  3. throw "atempt to load ace worker into main window instead of webWorker";
  4. var console = {
  5. log: function() {
  6. var msgs = Array.prototype.slice.call(arguments, 0);
  7. postMessage({type: "log", data: msgs});
  8. },
  9. error: function() {
  10. var msgs = Array.prototype.slice.call(arguments, 0);
  11. postMessage({type: "log", data: msgs});
  12. }
  13. };
  14. var window = {
  15. console: console
  16. };
  17. var normalizeModule = function(parentId, moduleName) {
  18. // normalize plugin requires
  19. if (moduleName.indexOf("!") !== -1) {
  20. var chunks = moduleName.split("!");
  21. return normalizeModule(parentId, chunks[0]) + "!" + normalizeModule(parentId, chunks[1]);
  22. }
  23. // normalize relative requires
  24. if (moduleName.charAt(0) == ".") {
  25. var base = parentId.split("/").slice(0, -1).join("/");
  26. moduleName = base + "/" + moduleName;
  27. while(moduleName.indexOf(".") !== -1 && previous != moduleName) {
  28. var previous = moduleName;
  29. moduleName = moduleName.replace(/\/\.\//, "/").replace(/[^\/]+\/\.\.\//, "");
  30. }
  31. }
  32. return moduleName;
  33. };
  34. var require = function(parentId, id) {
  35. if (!id.charAt)
  36. throw new Error("worker.js require() accepts only (parentId, id) as arguments");
  37. id = normalizeModule(parentId, id);
  38. var module = require.modules[id];
  39. if (module) {
  40. if (!module.initialized) {
  41. module.initialized = true;
  42. module.exports = module.factory().exports;
  43. }
  44. return module.exports;
  45. }
  46. var chunks = id.split("/");
  47. chunks[0] = require.tlns[chunks[0]] || chunks[0];
  48. var path = chunks.join("/") + ".js";
  49. require.id = id;
  50. importScripts(path);
  51. return require(parentId, id);
  52. };
  53. require.modules = {};
  54. require.tlns = {};
  55. var define = function(id, deps, factory) {
  56. if (arguments.length == 2) {
  57. factory = deps;
  58. if (typeof id != "string") {
  59. deps = id;
  60. id = require.id;
  61. }
  62. } else if (arguments.length == 1) {
  63. factory = id;
  64. id = require.id;
  65. }
  66. if (id.indexOf("text!") === 0)
  67. return;
  68. var req = function(deps, factory) {
  69. return require(id, deps, factory);
  70. };
  71. require.modules[id] = {
  72. factory: function() {
  73. var module = {
  74. exports: {}
  75. };
  76. var returnExports = factory(req, module.exports, module);
  77. if (returnExports)
  78. module.exports = returnExports;
  79. return module;
  80. }
  81. };
  82. };
  83. function initBaseUrls(topLevelNamespaces) {
  84. require.tlns = topLevelNamespaces;
  85. }
  86. function initSender() {
  87. var EventEmitter = require(null, "ace/lib/event_emitter").EventEmitter;
  88. var oop = require(null, "ace/lib/oop");
  89. var Sender = function() {};
  90. (function() {
  91. oop.implement(this, EventEmitter);
  92. this.callback = function(data, callbackId) {
  93. postMessage({
  94. type: "call",
  95. id: callbackId,
  96. data: data
  97. });
  98. };
  99. this.emit = function(name, data) {
  100. postMessage({
  101. type: "event",
  102. name: name,
  103. data: data
  104. });
  105. };
  106. }).call(Sender.prototype);
  107. return new Sender();
  108. }
  109. var main;
  110. var sender;
  111. onmessage = function(e) {
  112. var msg = e.data;
  113. if (msg.command) {
  114. if (main[msg.command])
  115. main[msg.command].apply(main, msg.args);
  116. else
  117. throw new Error("Unknown command:" + msg.command);
  118. }
  119. else if (msg.init) {
  120. initBaseUrls(msg.tlns);
  121. require(null, "ace/lib/fixoldbrowsers");
  122. sender = initSender();
  123. var clazz = require(null, msg.module)[msg.classname];
  124. main = new clazz(sender);
  125. }
  126. else if (msg.event && sender) {
  127. sender._emit(msg.event, msg.data);
  128. }
  129. };
  130. // vim:set ts=4 sts=4 sw=4 st:
  131. define('ace/lib/fixoldbrowsers', ['require', 'exports', 'module' , 'ace/lib/regexp', 'ace/lib/es5-shim'], function(require, exports, module) {
  132. require("./regexp");
  133. require("./es5-shim");
  134. });
  135. define('ace/lib/regexp', ['require', 'exports', 'module' ], function(require, exports, module) {
  136. var real = {
  137. exec: RegExp.prototype.exec,
  138. test: RegExp.prototype.test,
  139. match: String.prototype.match,
  140. replace: String.prototype.replace,
  141. split: String.prototype.split
  142. },
  143. compliantExecNpcg = real.exec.call(/()??/, "")[1] === undefined, // check `exec` handling of nonparticipating capturing groups
  144. compliantLastIndexIncrement = function () {
  145. var x = /^/g;
  146. real.test.call(x, "");
  147. return !x.lastIndex;
  148. }();
  149. if (compliantLastIndexIncrement && compliantExecNpcg)
  150. return;
  151. RegExp.prototype.exec = function (str) {
  152. var match = real.exec.apply(this, arguments),
  153. name, r2;
  154. if ( typeof(str) == 'string' && match) {
  155. if (!compliantExecNpcg && match.length > 1 && indexOf(match, "") > -1) {
  156. r2 = RegExp(this.source, real.replace.call(getNativeFlags(this), "g", ""));
  157. real.replace.call(str.slice(match.index), r2, function () {
  158. for (var i = 1; i < arguments.length - 2; i++) {
  159. if (arguments[i] === undefined)
  160. match[i] = undefined;
  161. }
  162. });
  163. }
  164. if (this._xregexp && this._xregexp.captureNames) {
  165. for (var i = 1; i < match.length; i++) {
  166. name = this._xregexp.captureNames[i - 1];
  167. if (name)
  168. match[name] = match[i];
  169. }
  170. }
  171. if (!compliantLastIndexIncrement && this.global && !match[0].length && (this.lastIndex > match.index))
  172. this.lastIndex--;
  173. }
  174. return match;
  175. };
  176. if (!compliantLastIndexIncrement) {
  177. RegExp.prototype.test = function (str) {
  178. var match = real.exec.call(this, str);
  179. if (match && this.global && !match[0].length && (this.lastIndex > match.index))
  180. this.lastIndex--;
  181. return !!match;
  182. };
  183. }
  184. function getNativeFlags (regex) {
  185. return (regex.global ? "g" : "") +
  186. (regex.ignoreCase ? "i" : "") +
  187. (regex.multiline ? "m" : "") +
  188. (regex.extended ? "x" : "") + // Proposed for ES4; included in AS3
  189. (regex.sticky ? "y" : "");
  190. }
  191. function indexOf (array, item, from) {
  192. if (Array.prototype.indexOf) // Use the native array method if available
  193. return array.indexOf(item, from);
  194. for (var i = from || 0; i < array.length; i++) {
  195. if (array[i] === item)
  196. return i;
  197. }
  198. return -1;
  199. }
  200. });
  201. define('ace/lib/es5-shim', ['require', 'exports', 'module' ], function(require, exports, module) {
  202. function Empty() {}
  203. if (!Function.prototype.bind) {
  204. Function.prototype.bind = function bind(that) { // .length is 1
  205. var target = this;
  206. if (typeof target != "function") {
  207. throw new TypeError("Function.prototype.bind called on incompatible " + target);
  208. }
  209. var args = slice.call(arguments, 1); // for normal call
  210. var bound = function () {
  211. if (this instanceof bound) {
  212. var result = target.apply(
  213. this,
  214. args.concat(slice.call(arguments))
  215. );
  216. if (Object(result) === result) {
  217. return result;
  218. }
  219. return this;
  220. } else {
  221. return target.apply(
  222. that,
  223. args.concat(slice.call(arguments))
  224. );
  225. }
  226. };
  227. if(target.prototype) {
  228. Empty.prototype = target.prototype;
  229. bound.prototype = new Empty();
  230. Empty.prototype = null;
  231. }
  232. return bound;
  233. };
  234. }
  235. var call = Function.prototype.call;
  236. var prototypeOfArray = Array.prototype;
  237. var prototypeOfObject = Object.prototype;
  238. var slice = prototypeOfArray.slice;
  239. var _toString = call.bind(prototypeOfObject.toString);
  240. var owns = call.bind(prototypeOfObject.hasOwnProperty);
  241. var defineGetter;
  242. var defineSetter;
  243. var lookupGetter;
  244. var lookupSetter;
  245. var supportsAccessors;
  246. if ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__"))) {
  247. defineGetter = call.bind(prototypeOfObject.__defineGetter__);
  248. defineSetter = call.bind(prototypeOfObject.__defineSetter__);
  249. lookupGetter = call.bind(prototypeOfObject.__lookupGetter__);
  250. lookupSetter = call.bind(prototypeOfObject.__lookupSetter__);
  251. }
  252. if ([1,2].splice(0).length != 2) {
  253. if(function() { // test IE < 9 to splice bug - see issue #138
  254. function makeArray(l) {
  255. var a = new Array(l+2);
  256. a[0] = a[1] = 0;
  257. return a;
  258. }
  259. var array = [], lengthBefore;
  260. array.splice.apply(array, makeArray(20));
  261. array.splice.apply(array, makeArray(26));
  262. lengthBefore = array.length; //46
  263. array.splice(5, 0, "XXX"); // add one element
  264. lengthBefore + 1 == array.length
  265. if (lengthBefore + 1 == array.length) {
  266. return true;// has right splice implementation without bugs
  267. }
  268. }()) {//IE 6/7
  269. var array_splice = Array.prototype.splice;
  270. Array.prototype.splice = function(start, deleteCount) {
  271. if (!arguments.length) {
  272. return [];
  273. } else {
  274. return array_splice.apply(this, [
  275. start === void 0 ? 0 : start,
  276. deleteCount === void 0 ? (this.length - start) : deleteCount
  277. ].concat(slice.call(arguments, 2)))
  278. }
  279. };
  280. } else {//IE8
  281. Array.prototype.splice = function(pos, removeCount){
  282. var length = this.length;
  283. if (pos > 0) {
  284. if (pos > length)
  285. pos = length;
  286. } else if (pos == void 0) {
  287. pos = 0;
  288. } else if (pos < 0) {
  289. pos = Math.max(length + pos, 0);
  290. }
  291. if (!(pos+removeCount < length))
  292. removeCount = length - pos;
  293. var removed = this.slice(pos, pos+removeCount);
  294. var insert = slice.call(arguments, 2);
  295. var add = insert.length;
  296. if (pos === length) {
  297. if (add) {
  298. this.push.apply(this, insert);
  299. }
  300. } else {
  301. var remove = Math.min(removeCount, length - pos);
  302. var tailOldPos = pos + remove;
  303. var tailNewPos = tailOldPos + add - remove;
  304. var tailCount = length - tailOldPos;
  305. var lengthAfterRemove = length - remove;
  306. if (tailNewPos < tailOldPos) { // case A
  307. for (var i = 0; i < tailCount; ++i) {
  308. this[tailNewPos+i] = this[tailOldPos+i];
  309. }
  310. } else if (tailNewPos > tailOldPos) { // case B
  311. for (i = tailCount; i--; ) {
  312. this[tailNewPos+i] = this[tailOldPos+i];
  313. }
  314. } // else, add == remove (nothing to do)
  315. if (add && pos === lengthAfterRemove) {
  316. this.length = lengthAfterRemove; // truncate array
  317. this.push.apply(this, insert);
  318. } else {
  319. this.length = lengthAfterRemove + add; // reserves space
  320. for (i = 0; i < add; ++i) {
  321. this[pos+i] = insert[i];
  322. }
  323. }
  324. }
  325. return removed;
  326. };
  327. }
  328. }
  329. if (!Array.isArray) {
  330. Array.isArray = function isArray(obj) {
  331. return _toString(obj) == "[object Array]";
  332. };
  333. }
  334. var boxedString = Object("a"),
  335. splitString = boxedString[0] != "a" || !(0 in boxedString);
  336. if (!Array.prototype.forEach) {
  337. Array.prototype.forEach = function forEach(fun /*, thisp*/) {
  338. var object = toObject(this),
  339. self = splitString && _toString(this) == "[object String]" ?
  340. this.split("") :
  341. object,
  342. thisp = arguments[1],
  343. i = -1,
  344. length = self.length >>> 0;
  345. if (_toString(fun) != "[object Function]") {
  346. throw new TypeError(); // TODO message
  347. }
  348. while (++i < length) {
  349. if (i in self) {
  350. fun.call(thisp, self[i], i, object);
  351. }
  352. }
  353. };
  354. }
  355. if (!Array.prototype.map) {
  356. Array.prototype.map = function map(fun /*, thisp*/) {
  357. var object = toObject(this),
  358. self = splitString && _toString(this) == "[object String]" ?
  359. this.split("") :
  360. object,
  361. length = self.length >>> 0,
  362. result = Array(length),
  363. thisp = arguments[1];
  364. if (_toString(fun) != "[object Function]") {
  365. throw new TypeError(fun + " is not a function");
  366. }
  367. for (var i = 0; i < length; i++) {
  368. if (i in self)
  369. result[i] = fun.call(thisp, self[i], i, object);
  370. }
  371. return result;
  372. };
  373. }
  374. if (!Array.prototype.filter) {
  375. Array.prototype.filter = function filter(fun /*, thisp */) {
  376. var object = toObject(this),
  377. self = splitString && _toString(this) == "[object String]" ?
  378. this.split("") :
  379. object,
  380. length = self.length >>> 0,
  381. result = [],
  382. value,
  383. thisp = arguments[1];
  384. if (_toString(fun) != "[object Function]") {
  385. throw new TypeError(fun + " is not a function");
  386. }
  387. for (var i = 0; i < length; i++) {
  388. if (i in self) {
  389. value = self[i];
  390. if (fun.call(thisp, value, i, object)) {
  391. result.push(value);
  392. }
  393. }
  394. }
  395. return result;
  396. };
  397. }
  398. if (!Array.prototype.every) {
  399. Array.prototype.every = function every(fun /*, thisp */) {
  400. var object = toObject(this),
  401. self = splitString && _toString(this) == "[object String]" ?
  402. this.split("") :
  403. object,
  404. length = self.length >>> 0,
  405. thisp = arguments[1];
  406. if (_toString(fun) != "[object Function]") {
  407. throw new TypeError(fun + " is not a function");
  408. }
  409. for (var i = 0; i < length; i++) {
  410. if (i in self && !fun.call(thisp, self[i], i, object)) {
  411. return false;
  412. }
  413. }
  414. return true;
  415. };
  416. }
  417. if (!Array.prototype.some) {
  418. Array.prototype.some = function some(fun /*, thisp */) {
  419. var object = toObject(this),
  420. self = splitString && _toString(this) == "[object String]" ?
  421. this.split("") :
  422. object,
  423. length = self.length >>> 0,
  424. thisp = arguments[1];
  425. if (_toString(fun) != "[object Function]") {
  426. throw new TypeError(fun + " is not a function");
  427. }
  428. for (var i = 0; i < length; i++) {
  429. if (i in self && fun.call(thisp, self[i], i, object)) {
  430. return true;
  431. }
  432. }
  433. return false;
  434. };
  435. }
  436. if (!Array.prototype.reduce) {
  437. Array.prototype.reduce = function reduce(fun /*, initial*/) {
  438. var object = toObject(this),
  439. self = splitString && _toString(this) == "[object String]" ?
  440. this.split("") :
  441. object,
  442. length = self.length >>> 0;
  443. if (_toString(fun) != "[object Function]") {
  444. throw new TypeError(fun + " is not a function");
  445. }
  446. if (!length && arguments.length == 1) {
  447. throw new TypeError("reduce of empty array with no initial value");
  448. }
  449. var i = 0;
  450. var result;
  451. if (arguments.length >= 2) {
  452. result = arguments[1];
  453. } else {
  454. do {
  455. if (i in self) {
  456. result = self[i++];
  457. break;
  458. }
  459. if (++i >= length) {
  460. throw new TypeError("reduce of empty array with no initial value");
  461. }
  462. } while (true);
  463. }
  464. for (; i < length; i++) {
  465. if (i in self) {
  466. result = fun.call(void 0, result, self[i], i, object);
  467. }
  468. }
  469. return result;
  470. };
  471. }
  472. if (!Array.prototype.reduceRight) {
  473. Array.prototype.reduceRight = function reduceRight(fun /*, initial*/) {
  474. var object = toObject(this),
  475. self = splitString && _toString(this) == "[object String]" ?
  476. this.split("") :
  477. object,
  478. length = self.length >>> 0;
  479. if (_toString(fun) != "[object Function]") {
  480. throw new TypeError(fun + " is not a function");
  481. }
  482. if (!length && arguments.length == 1) {
  483. throw new TypeError("reduceRight of empty array with no initial value");
  484. }
  485. var result, i = length - 1;
  486. if (arguments.length >= 2) {
  487. result = arguments[1];
  488. } else {
  489. do {
  490. if (i in self) {
  491. result = self[i--];
  492. break;
  493. }
  494. if (--i < 0) {
  495. throw new TypeError("reduceRight of empty array with no initial value");
  496. }
  497. } while (true);
  498. }
  499. do {
  500. if (i in this) {
  501. result = fun.call(void 0, result, self[i], i, object);
  502. }
  503. } while (i--);
  504. return result;
  505. };
  506. }
  507. if (!Array.prototype.indexOf || ([0, 1].indexOf(1, 2) != -1)) {
  508. Array.prototype.indexOf = function indexOf(sought /*, fromIndex */ ) {
  509. var self = splitString && _toString(this) == "[object String]" ?
  510. this.split("") :
  511. toObject(this),
  512. length = self.length >>> 0;
  513. if (!length) {
  514. return -1;
  515. }
  516. var i = 0;
  517. if (arguments.length > 1) {
  518. i = toInteger(arguments[1]);
  519. }
  520. i = i >= 0 ? i : Math.max(0, length + i);
  521. for (; i < length; i++) {
  522. if (i in self && self[i] === sought) {
  523. return i;
  524. }
  525. }
  526. return -1;
  527. };
  528. }
  529. if (!Array.prototype.lastIndexOf || ([0, 1].lastIndexOf(0, -3) != -1)) {
  530. Array.prototype.lastIndexOf = function lastIndexOf(sought /*, fromIndex */) {
  531. var self = splitString && _toString(this) == "[object String]" ?
  532. this.split("") :
  533. toObject(this),
  534. length = self.length >>> 0;
  535. if (!length) {
  536. return -1;
  537. }
  538. var i = length - 1;
  539. if (arguments.length > 1) {
  540. i = Math.min(i, toInteger(arguments[1]));
  541. }
  542. i = i >= 0 ? i : length - Math.abs(i);
  543. for (; i >= 0; i--) {
  544. if (i in self && sought === self[i]) {
  545. return i;
  546. }
  547. }
  548. return -1;
  549. };
  550. }
  551. if (!Object.getPrototypeOf) {
  552. Object.getPrototypeOf = function getPrototypeOf(object) {
  553. return object.__proto__ || (
  554. object.constructor ?
  555. object.constructor.prototype :
  556. prototypeOfObject
  557. );
  558. };
  559. }
  560. if (!Object.getOwnPropertyDescriptor) {
  561. var ERR_NON_OBJECT = "Object.getOwnPropertyDescriptor called on a " +
  562. "non-object: ";
  563. Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {
  564. if ((typeof object != "object" && typeof object != "function") || object === null)
  565. throw new TypeError(ERR_NON_OBJECT + object);
  566. if (!owns(object, property))
  567. return;
  568. var descriptor, getter, setter;
  569. descriptor = { enumerable: true, configurable: true };
  570. if (supportsAccessors) {
  571. var prototype = object.__proto__;
  572. object.__proto__ = prototypeOfObject;
  573. var getter = lookupGetter(object, property);
  574. var setter = lookupSetter(object, property);
  575. object.__proto__ = prototype;
  576. if (getter || setter) {
  577. if (getter) descriptor.get = getter;
  578. if (setter) descriptor.set = setter;
  579. return descriptor;
  580. }
  581. }
  582. descriptor.value = object[property];
  583. return descriptor;
  584. };
  585. }
  586. if (!Object.getOwnPropertyNames) {
  587. Object.getOwnPropertyNames = function getOwnPropertyNames(object) {
  588. return Object.keys(object);
  589. };
  590. }
  591. if (!Object.create) {
  592. var createEmpty;
  593. if (Object.prototype.__proto__ === null) {
  594. createEmpty = function () {
  595. return { "__proto__": null };
  596. };
  597. } else {
  598. createEmpty = function () {
  599. var empty = {};
  600. for (var i in empty)
  601. empty[i] = null;
  602. empty.constructor =
  603. empty.hasOwnProperty =
  604. empty.propertyIsEnumerable =
  605. empty.isPrototypeOf =
  606. empty.toLocaleString =
  607. empty.toString =
  608. empty.valueOf =
  609. empty.__proto__ = null;
  610. return empty;
  611. }
  612. }
  613. Object.create = function create(prototype, properties) {
  614. var object;
  615. if (prototype === null) {
  616. object = createEmpty();
  617. } else {
  618. if (typeof prototype != "object")
  619. throw new TypeError("typeof prototype["+(typeof prototype)+"] != 'object'");
  620. var Type = function () {};
  621. Type.prototype = prototype;
  622. object = new Type();
  623. object.__proto__ = prototype;
  624. }
  625. if (properties !== void 0)
  626. Object.defineProperties(object, properties);
  627. return object;
  628. };
  629. }
  630. function doesDefinePropertyWork(object) {
  631. try {
  632. Object.defineProperty(object, "sentinel", {});
  633. return "sentinel" in object;
  634. } catch (exception) {
  635. }
  636. }
  637. if (Object.defineProperty) {
  638. var definePropertyWorksOnObject = doesDefinePropertyWork({});
  639. var definePropertyWorksOnDom = typeof document == "undefined" ||
  640. doesDefinePropertyWork(document.createElement("div"));
  641. if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {
  642. var definePropertyFallback = Object.defineProperty;
  643. }
  644. }
  645. if (!Object.defineProperty || definePropertyFallback) {
  646. var ERR_NON_OBJECT_DESCRIPTOR = "Property description must be an object: ";
  647. var ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: "
  648. var ERR_ACCESSORS_NOT_SUPPORTED = "getters & setters can not be defined " +
  649. "on this javascript engine";
  650. Object.defineProperty = function defineProperty(object, property, descriptor) {
  651. if ((typeof object != "object" && typeof object != "function") || object === null)
  652. throw new TypeError(ERR_NON_OBJECT_TARGET + object);
  653. if ((typeof descriptor != "object" && typeof descriptor != "function") || descriptor === null)
  654. throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);
  655. if (definePropertyFallback) {
  656. try {
  657. return definePropertyFallback.call(Object, object, property, descriptor);
  658. } catch (exception) {
  659. }
  660. }
  661. if (owns(descriptor, "value")) {
  662. if (supportsAccessors && (lookupGetter(object, property) ||
  663. lookupSetter(object, property)))
  664. {
  665. var prototype = object.__proto__;
  666. object.__proto__ = prototypeOfObject;
  667. delete object[property];
  668. object[property] = descriptor.value;
  669. object.__proto__ = prototype;
  670. } else {
  671. object[property] = descriptor.value;
  672. }
  673. } else {
  674. if (!supportsAccessors)
  675. throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
  676. if (owns(descriptor, "get"))
  677. defineGetter(object, property, descriptor.get);
  678. if (owns(descriptor, "set"))
  679. defineSetter(object, property, descriptor.set);
  680. }
  681. return object;
  682. };
  683. }
  684. if (!Object.defineProperties) {
  685. Object.defineProperties = function defineProperties(object, properties) {
  686. for (var property in properties) {
  687. if (owns(properties, property))
  688. Object.defineProperty(object, property, properties[property]);
  689. }
  690. return object;
  691. };
  692. }
  693. if (!Object.seal) {
  694. Object.seal = function seal(object) {
  695. return object;
  696. };
  697. }
  698. if (!Object.freeze) {
  699. Object.freeze = function freeze(object) {
  700. return object;
  701. };
  702. }
  703. try {
  704. Object.freeze(function () {});
  705. } catch (exception) {
  706. Object.freeze = (function freeze(freezeObject) {
  707. return function freeze(object) {
  708. if (typeof object == "function") {
  709. return object;
  710. } else {
  711. return freezeObject(object);
  712. }
  713. };
  714. })(Object.freeze);
  715. }
  716. if (!Object.preventExtensions) {
  717. Object.preventExtensions = function preventExtensions(object) {
  718. return object;
  719. };
  720. }
  721. if (!Object.isSealed) {
  722. Object.isSealed = function isSealed(object) {
  723. return false;
  724. };
  725. }
  726. if (!Object.isFrozen) {
  727. Object.isFrozen = function isFrozen(object) {
  728. return false;
  729. };
  730. }
  731. if (!Object.isExtensible) {
  732. Object.isExtensible = function isExtensible(object) {
  733. if (Object(object) === object) {
  734. throw new TypeError(); // TODO message
  735. }
  736. var name = '';
  737. while (owns(object, name)) {
  738. name += '?';
  739. }
  740. object[name] = true;
  741. var returnValue = owns(object, name);
  742. delete object[name];
  743. return returnValue;
  744. };
  745. }
  746. if (!Object.keys) {
  747. var hasDontEnumBug = true,
  748. dontEnums = [
  749. "toString",
  750. "toLocaleString",
  751. "valueOf",
  752. "hasOwnProperty",
  753. "isPrototypeOf",
  754. "propertyIsEnumerable",
  755. "constructor"
  756. ],
  757. dontEnumsLength = dontEnums.length;
  758. for (var key in {"toString": null}) {
  759. hasDontEnumBug = false;
  760. }
  761. Object.keys = function keys(object) {
  762. if (
  763. (typeof object != "object" && typeof object != "function") ||
  764. object === null
  765. ) {
  766. throw new TypeError("Object.keys called on a non-object");
  767. }
  768. var keys = [];
  769. for (var name in object) {
  770. if (owns(object, name)) {
  771. keys.push(name);
  772. }
  773. }
  774. if (hasDontEnumBug) {
  775. for (var i = 0, ii = dontEnumsLength; i < ii; i++) {
  776. var dontEnum = dontEnums[i];
  777. if (owns(object, dontEnum)) {
  778. keys.push(dontEnum);
  779. }
  780. }
  781. }
  782. return keys;
  783. };
  784. }
  785. if (!Date.now) {
  786. Date.now = function now() {
  787. return new Date().getTime();
  788. };
  789. }
  790. if("0".split(void 0, 0).length) {
  791. var string_split = String.prototype.split;
  792. String.prototype.split = function(separator, limit) {
  793. if(separator === void 0 && limit === 0)return [];
  794. return string_split.apply(this, arguments);
  795. }
  796. }
  797. if("".substr && "0b".substr(-1) !== "b") {
  798. var string_substr = String.prototype.substr;
  799. String.prototype.substr = function(start, length) {
  800. return string_substr.call(
  801. this,
  802. start < 0 ? (start = this.length + start) < 0 ? 0 : start : start,
  803. length
  804. );
  805. }
  806. }
  807. var ws = "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003" +
  808. "\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028" +
  809. "\u2029\uFEFF";
  810. if (!String.prototype.trim || ws.trim()) {
  811. ws = "[" + ws + "]";
  812. var trimBeginRegexp = new RegExp("^" + ws + ws + "*"),
  813. trimEndRegexp = new RegExp(ws + ws + "*$");
  814. String.prototype.trim = function trim() {
  815. if (this === undefined || this === null) {
  816. throw new TypeError("can't convert "+this+" to object");
  817. }
  818. return String(this)
  819. .replace(trimBeginRegexp, "")
  820. .replace(trimEndRegexp, "");
  821. };
  822. }
  823. function toInteger(n) {
  824. n = +n;
  825. if (n !== n) { // isNaN
  826. n = 0;
  827. } else if (n !== 0 && n !== (1/0) && n !== -(1/0)) {
  828. n = (n > 0 || -1) * Math.floor(Math.abs(n));
  829. }
  830. return n;
  831. }
  832. function isPrimitive(input) {
  833. var type = typeof input;
  834. return (
  835. input === null ||
  836. type === "undefined" ||
  837. type === "boolean" ||
  838. type === "number" ||
  839. type === "string"
  840. );
  841. }
  842. function toPrimitive(input) {
  843. var val, valueOf, toString;
  844. if (isPrimitive(input)) {
  845. return input;
  846. }
  847. valueOf = input.valueOf;
  848. if (typeof valueOf === "function") {
  849. val = valueOf.call(input);
  850. if (isPrimitive(val)) {
  851. return val;
  852. }
  853. }
  854. toString = input.toString;
  855. if (typeof toString === "function") {
  856. val = toString.call(input);
  857. if (isPrimitive(val)) {
  858. return val;
  859. }
  860. }
  861. throw new TypeError();
  862. }
  863. var toObject = function (o) {
  864. if (o == null) { // this matches both null and undefined
  865. throw new TypeError("can't convert "+o+" to object");
  866. }
  867. return Object(o);
  868. };
  869. });
  870. define('ace/lib/event_emitter', ['require', 'exports', 'module' ], function(require, exports, module) {
  871. var EventEmitter = {};
  872. EventEmitter._emit =
  873. EventEmitter._dispatchEvent = function(eventName, e) {
  874. this._eventRegistry = this._eventRegistry || {};
  875. this._defaultHandlers = this._defaultHandlers || {};
  876. var listeners = this._eventRegistry[eventName] || [];
  877. var defaultHandler = this._defaultHandlers[eventName];
  878. if (!listeners.length && !defaultHandler)
  879. return;
  880. if (typeof e != "object" || !e)
  881. e = {};
  882. if (!e.type)
  883. e.type = eventName;
  884. if (!e.stopPropagation) {
  885. e.stopPropagation = function() {
  886. this.propagationStopped = true;
  887. };
  888. }
  889. if (!e.preventDefault) {
  890. e.preventDefault = function() {
  891. this.defaultPrevented = true;
  892. };
  893. }
  894. for (var i=0; i<listeners.length; i++) {
  895. listeners[i](e);
  896. if (e.propagationStopped)
  897. break;
  898. }
  899. if (defaultHandler && !e.defaultPrevented)
  900. return defaultHandler(e);
  901. };
  902. EventEmitter.setDefaultHandler = function(eventName, callback) {
  903. this._defaultHandlers = this._defaultHandlers || {};
  904. if (this._defaultHandlers[eventName])
  905. throw new Error("The default handler for '" + eventName + "' is already set");
  906. this._defaultHandlers[eventName] = callback;
  907. };
  908. EventEmitter.on =
  909. EventEmitter.addEventListener = function(eventName, callback) {
  910. this._eventRegistry = this._eventRegistry || {};
  911. var listeners = this._eventRegistry[eventName];
  912. if (!listeners)
  913. listeners = this._eventRegistry[eventName] = [];
  914. if (listeners.indexOf(callback) == -1)
  915. listeners.push(callback);
  916. };
  917. EventEmitter.removeListener =
  918. EventEmitter.removeEventListener = function(eventName, callback) {
  919. this._eventRegistry = this._eventRegistry || {};
  920. var listeners = this._eventRegistry[eventName];
  921. if (!listeners)
  922. return;
  923. var index = listeners.indexOf(callback);
  924. if (index !== -1)
  925. listeners.splice(index, 1);
  926. };
  927. EventEmitter.removeAllListeners = function(eventName) {
  928. if (this._eventRegistry) this._eventRegistry[eventName] = [];
  929. };
  930. exports.EventEmitter = EventEmitter;
  931. });
  932. define('ace/lib/oop', ['require', 'exports', 'module' ], function(require, exports, module) {
  933. exports.inherits = (function() {
  934. var tempCtor = function() {};
  935. return function(ctor, superCtor) {
  936. tempCtor.prototype = superCtor.prototype;
  937. ctor.super_ = superCtor.prototype;
  938. ctor.prototype = new tempCtor();
  939. ctor.prototype.constructor = ctor;
  940. };
  941. }());
  942. exports.mixin = function(obj, mixin) {
  943. for (var key in mixin) {
  944. obj[key] = mixin[key];
  945. }
  946. };
  947. exports.implement = function(proto, mixin) {
  948. exports.mixin(proto, mixin);
  949. };
  950. });
  951. define('ace/mode/php_worker', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/worker/mirror', 'ace/mode/php/php'], function(require, exports, module) {
  952. var oop = require("../lib/oop");
  953. var Mirror = require("../worker/mirror").Mirror;
  954. var PHP = require("./php/php").PHP;
  955. var PhpWorker = exports.PhpWorker = function(sender) {
  956. Mirror.call(this, sender);
  957. this.setTimeout(500);
  958. };
  959. oop.inherits(PhpWorker, Mirror);
  960. (function() {
  961. this.onUpdate = function() {
  962. var value = this.doc.getValue();
  963. var errors = [];
  964. var tokens = PHP.Lexer(value, {short_open_tag: 1});
  965. try {
  966. new PHP.Parser(tokens);
  967. } catch(e) {
  968. errors.push({
  969. row: e.line - 1,
  970. column: null,
  971. text: e.message.charAt(0).toUpperCase() + e.message.substring(1),
  972. type: "error"
  973. });
  974. }
  975. if (errors.length) {
  976. this.sender.emit("error", errors);
  977. } else {
  978. this.sender.emit("ok");
  979. }
  980. };
  981. }).call(PhpWorker.prototype);
  982. });
  983. define('ace/worker/mirror', ['require', 'exports', 'module' , 'ace/document', 'ace/lib/lang'], function(require, exports, module) {
  984. var Document = require("../document").Document;
  985. var lang = require("../lib/lang");
  986. var Mirror = exports.Mirror = function(sender) {
  987. this.sender = sender;
  988. var doc = this.doc = new Document("");
  989. var deferredUpdate = this.deferredUpdate = lang.deferredCall(this.onUpdate.bind(this));
  990. var _self = this;
  991. sender.on("change", function(e) {
  992. doc.applyDeltas([e.data]);
  993. deferredUpdate.schedule(_self.$timeout);
  994. });
  995. };
  996. (function() {
  997. this.$timeout = 500;
  998. this.setTimeout = function(timeout) {
  999. this.$timeout = timeout;
  1000. };
  1001. this.setValue = function(value) {
  1002. this.doc.setValue(value);
  1003. this.deferredUpdate.schedule(this.$timeout);
  1004. };
  1005. this.getValue = function(callbackId) {
  1006. this.sender.callback(this.doc.getValue(), callbackId);
  1007. };
  1008. this.onUpdate = function() {
  1009. };
  1010. }).call(Mirror.prototype);
  1011. });
  1012. define('ace/document', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/event_emitter', 'ace/range', 'ace/anchor'], function(require, exports, module) {
  1013. var oop = require("./lib/oop");
  1014. var EventEmitter = require("./lib/event_emitter").EventEmitter;
  1015. var Range = require("./range").Range;
  1016. var Anchor = require("./anchor").Anchor;
  1017. var Document = function(text) {
  1018. this.$lines = [];
  1019. if (text.length == 0) {
  1020. this.$lines = [""];
  1021. } else if (Array.isArray(text)) {
  1022. this.insertLines(0, text);
  1023. } else {
  1024. this.insert({row: 0, column:0}, text);
  1025. }
  1026. };
  1027. (function() {
  1028. oop.implement(this, EventEmitter);
  1029. this.setValue = function(text) {
  1030. var len = this.getLength();
  1031. this.remove(new Range(0, 0, len, this.getLine(len-1).length));
  1032. this.insert({row: 0, column:0}, text);
  1033. };
  1034. this.getValue = function() {
  1035. return this.getAllLines().join(this.getNewLineCharacter());
  1036. };
  1037. this.createAnchor = function(row, column) {
  1038. return new Anchor(this, row, column);
  1039. };
  1040. if ("aaa".split(/a/).length == 0)
  1041. this.$split = function(text) {
  1042. return text.replace(/\r\n|\r/g, "\n").split("\n");
  1043. }
  1044. else
  1045. this.$split = function(text) {
  1046. return text.split(/\r\n|\r|\n/);
  1047. };
  1048. this.$detectNewLine = function(text) {
  1049. var match = text.match(/^.*?(\r\n|\r|\n)/m);
  1050. if (match) {
  1051. this.$autoNewLine = match[1];
  1052. } else {
  1053. this.$autoNewLine = "\n";
  1054. }
  1055. };
  1056. this.getNewLineCharacter = function() {
  1057. switch (this.$newLineMode) {
  1058. case "windows":
  1059. return "\r\n";
  1060. case "unix":
  1061. return "\n";
  1062. default:
  1063. return this.$autoNewLine;
  1064. }
  1065. };
  1066. this.$autoNewLine = "\n";
  1067. this.$newLineMode = "auto";
  1068. this.setNewLineMode = function(newLineMode) {
  1069. if (this.$newLineMode === newLineMode)
  1070. return;
  1071. this.$newLineMode = newLineMode;
  1072. };
  1073. this.getNewLineMode = function() {
  1074. return this.$newLineMode;
  1075. };
  1076. this.isNewLine = function(text) {
  1077. return (text == "\r\n" || text == "\r" || text == "\n");
  1078. };
  1079. this.getLine = function(row) {
  1080. return this.$lines[row] || "";
  1081. };
  1082. this.getLines = function(firstRow, lastRow) {
  1083. return this.$lines.slice(firstRow, lastRow + 1);
  1084. };
  1085. this.getAllLines = function() {
  1086. return this.getLines(0, this.getLength());
  1087. };
  1088. this.getLength = function() {
  1089. return this.$lines.length;
  1090. };
  1091. this.getTextRange = function(range) {
  1092. if (range.start.row == range.end.row) {
  1093. return this.$lines[range.start.row].substring(range.start.column,
  1094. range.end.column);
  1095. }
  1096. else {
  1097. var lines = this.getLines(range.start.row+1, range.end.row-1);
  1098. lines.unshift((this.$lines[range.start.row] || "").substring(range.start.column));
  1099. lines.push((this.$lines[range.end.row] || "").substring(0, range.end.column));
  1100. return lines.join(this.getNewLineCharacter());
  1101. }
  1102. };
  1103. this.$clipPosition = function(position) {
  1104. var length = this.getLength();
  1105. if (position.row >= length) {
  1106. position.row = Math.max(0, length - 1);
  1107. position.column = this.getLine(length-1).length;
  1108. }
  1109. return position;
  1110. };
  1111. this.insert = function(position, text) {
  1112. if (!text || text.length === 0)
  1113. return position;
  1114. position = this.$clipPosition(position);
  1115. if (this.getLength() <= 1)
  1116. this.$detectNewLine(text);
  1117. var lines = this.$split(text);
  1118. var firstLine = lines.splice(0, 1)[0];
  1119. var lastLine = lines.length == 0 ? null : lines.splice(lines.length - 1, 1)[0];
  1120. position = this.insertInLine(position, firstLine);
  1121. if (lastLine !== null) {
  1122. position = this.insertNewLine(position); // terminate first line
  1123. position = this.insertLines(position.row, lines);
  1124. position = this.insertInLine(position, lastLine || "");
  1125. }
  1126. return position;
  1127. };
  1128. this.insertLines = function(row, lines) {
  1129. if (lines.length == 0)
  1130. return {row: row, column: 0};
  1131. if (lines.length > 0xFFFF) {
  1132. var end = this.insertLines(row, lines.slice(0xFFFF));
  1133. lines = lines.slice(0, 0xFFFF);
  1134. }
  1135. var args = [row, 0];
  1136. args.push.apply(args, lines);
  1137. this.$lines.splice.apply(this.$lines, args);
  1138. var range = new Range(row, 0, row + lines.length, 0);
  1139. var delta = {
  1140. action: "insertLines",
  1141. range: range,
  1142. lines: lines
  1143. };
  1144. this._emit("change", { data: delta });
  1145. return end || range.end;
  1146. };
  1147. this.insertNewLine = function(position) {
  1148. position = this.$clipPosition(position);
  1149. var line = this.$lines[position.row] || "";
  1150. this.$lines[position.row] = line.substring(0, position.column);
  1151. this.$lines.splice(position.row + 1, 0, line.substring(position.column, line.length));
  1152. var end = {
  1153. row : position.row + 1,
  1154. column : 0
  1155. };
  1156. var delta = {
  1157. action: "insertText",
  1158. range: Range.fromPoints(position, end),
  1159. text: this.getNewLineCharacter()
  1160. };
  1161. this._emit("change", { data: delta });
  1162. return end;
  1163. };
  1164. this.insertInLine = function(position, text) {
  1165. if (text.length == 0)
  1166. return position;
  1167. var line = this.$lines[position.row] || "";
  1168. this.$lines[position.row] = line.substring(0, position.column) + text
  1169. + line.substring(position.column);
  1170. var end = {
  1171. row : position.row,
  1172. column : position.column + text.length
  1173. };
  1174. var delta = {
  1175. action: "insertText",
  1176. range: Range.fromPoints(position, end),
  1177. text: text
  1178. };
  1179. this._emit("change", { data: delta });
  1180. return end;
  1181. };
  1182. this.remove = function(range) {
  1183. range.start = this.$clipPosition(range.start);
  1184. range.end = this.$clipPosition(range.end);
  1185. if (range.isEmpty())
  1186. return range.start;
  1187. var firstRow = range.start.row;
  1188. var lastRow = range.end.row;
  1189. if (range.isMultiLine()) {
  1190. var firstFullRow = range.start.column == 0 ? firstRow : firstRow + 1;
  1191. var lastFullRow = lastRow - 1;
  1192. if (range.end.column > 0)
  1193. this.removeInLine(lastRow, 0, range.end.column);
  1194. if (lastFullRow >= firstFullRow)
  1195. this.removeLines(firstFullRow, lastFullRow);
  1196. if (firstFullRow != firstRow) {
  1197. this.removeInLine(firstRow, range.start.column, this.getLine(firstRow).length);
  1198. this.removeNewLine(range.start.row);
  1199. }
  1200. }
  1201. else {
  1202. this.removeInLine(firstRow, range.start.column, range.end.column);
  1203. }
  1204. return range.start;
  1205. };
  1206. this.removeInLine = function(row, startColumn, endColumn) {
  1207. if (startColumn == endColumn)
  1208. return;
  1209. var range = new Range(row, startColumn, row, endColumn);
  1210. var line = this.getLine(row);
  1211. var removed = line.substring(startColumn, endColumn);
  1212. var newLine = line.substring(0, startColumn) + line.substring(endColumn, line.length);
  1213. this.$lines.splice(row, 1, newLine);
  1214. var delta = {
  1215. action: "removeText",
  1216. range: range,
  1217. text: removed
  1218. };
  1219. this._emit("change", { data: delta });
  1220. return range.start;
  1221. };
  1222. this.removeLines = function(firstRow, lastRow) {
  1223. var range = new Range(firstRow, 0, lastRow + 1, 0);
  1224. var removed = this.$lines.splice(firstRow, lastRow - firstRow + 1);
  1225. var delta = {
  1226. action: "removeLines",
  1227. range: range,
  1228. nl: this.getNewLineCharacter(),
  1229. lines: removed
  1230. };
  1231. this._emit("change", { data: delta });
  1232. return removed;
  1233. };
  1234. this.removeNewLine = function(row) {
  1235. var firstLine = this.getLine(row);
  1236. var secondLine = this.getLine(row+1);
  1237. var range = new Range(row, firstLine.length, row+1, 0);
  1238. var line = firstLine + secondLine;
  1239. this.$lines.splice(row, 2, line);
  1240. var delta = {
  1241. action: "removeText",
  1242. range: range,
  1243. text: this.getNewLineCharacter()
  1244. };
  1245. this._emit("change", { data: delta });
  1246. };
  1247. this.replace = function(range, text) {
  1248. if (text.length == 0 && range.isEmpty())
  1249. return range.start;
  1250. if (text == this.getTextRange(range))
  1251. return range.end;
  1252. this.remove(range);
  1253. if (text) {
  1254. var end = this.insert(range.start, text);
  1255. }
  1256. else {
  1257. end = range.start;
  1258. }
  1259. return end;
  1260. };
  1261. this.applyDeltas = function(deltas) {
  1262. for (var i=0; i<deltas.length; i++) {
  1263. var delta = deltas[i];
  1264. var range = Range.fromPoints(delta.range.start, delta.range.end);
  1265. if (delta.action == "insertLines")
  1266. this.insertLines(range.start.row, delta.lines);
  1267. else if (delta.action == "insertText")
  1268. this.insert(range.start, delta.text);
  1269. else if (delta.action == "removeLines")
  1270. this.removeLines(range.start.row, range.end.row - 1);
  1271. else if (delta.action == "removeText")
  1272. this.remove(range);
  1273. }
  1274. };
  1275. this.revertDeltas = function(deltas) {
  1276. for (var i=deltas.length-1; i>=0; i--) {
  1277. var delta = deltas[i];
  1278. var range = Range.fromPoints(delta.range.start, delta.range.end);
  1279. if (delta.action == "insertLines")
  1280. this.removeLines(range.start.row, range.end.row - 1);
  1281. else if (delta.action == "insertText")
  1282. this.remove(range);
  1283. else if (delta.action == "removeLines")
  1284. this.insertLines(range.start.row, delta.lines);
  1285. else if (delta.action == "removeText")
  1286. this.insert(range.start, delta.text);
  1287. }
  1288. };
  1289. this.indexToPosition = function(index, startRow) {
  1290. var lines = this.$lines || this.getAllLines();
  1291. var newlineLength = this.getNewLineCharacter().length;
  1292. for (var i = startRow || 0, l = lines.length; i < l; i++) {
  1293. index -= lines[i].length + newlineLength;
  1294. if (index < 0)
  1295. return {row: i, column: index + lines[i].length + newlineLength};
  1296. }
  1297. return {row: l-1, column: lines[l-1].length};
  1298. };
  1299. this.positionToIndex = function(pos, startRow) {
  1300. var lines = this.$lines || this.getAllLines();
  1301. var newlineLength = this.getNewLineCharacter().length;
  1302. var index = 0;
  1303. var row = Math.min(pos.row, lines.length);
  1304. for (var i = startRow || 0; i < row; ++i)
  1305. index += lines[i].length;
  1306. return index + newlineLength * i + pos.column;
  1307. };
  1308. }).call(Document.prototype);
  1309. exports.Document = Document;
  1310. });
  1311. define('ace/range', ['require', 'exports', 'module' ], function(require, exports, module) {
  1312. var Range = function(startRow, startColumn, endRow, endColumn) {
  1313. this.start = {
  1314. row: startRow,
  1315. column: startColumn
  1316. };
  1317. this.end = {
  1318. row: endRow,
  1319. column: endColumn
  1320. };
  1321. };
  1322. (function() {
  1323. this.isEqual = function(range) {
  1324. return this.start.row == range.start.row &&
  1325. this.end.row == range.end.row &&
  1326. this.start.column == range.start.column &&
  1327. this.end.column == range.end.column
  1328. };
  1329. this.toString = function() {
  1330. return ("Range: [" + this.start.row + "/" + this.start.column +
  1331. "] -> [" + this.end.row + "/" + this.end.column + "]");
  1332. };
  1333. this.contains = function(row, column) {
  1334. return this.compare(row, column) == 0;
  1335. };
  1336. this.compareRange = function(range) {
  1337. var cmp,
  1338. end = range.end,
  1339. start = range.start;
  1340. cmp = this.compare(end.row, end.column);
  1341. if (cmp == 1) {
  1342. cmp = this.compare(start.row, start.column);
  1343. if (cmp == 1) {
  1344. return 2;
  1345. } else if (cmp == 0) {
  1346. return 1;
  1347. } else {
  1348. return 0;
  1349. }
  1350. } else if (cmp == -1) {
  1351. return -2;
  1352. } else {
  1353. cmp = this.compare(start.row, start.column);
  1354. if (cmp == -1) {
  1355. return -1;
  1356. } else if (cmp == 1) {
  1357. return 42;
  1358. } else {
  1359. return 0;
  1360. }
  1361. }
  1362. };
  1363. this.comparePoint = function(p) {
  1364. return this.compare(p.row, p.column);
  1365. };
  1366. this.containsRange = function(range) {
  1367. return this.comparePoint(range.start) == 0 && this.comparePoint(range.end) == 0;
  1368. };
  1369. this.intersects = function(range) {
  1370. var cmp = this.compareRange(range);
  1371. return (cmp == -1 || cmp == 0 || cmp == 1);
  1372. };
  1373. this.isEnd = function(row, column) {
  1374. return this.end.row == row && this.end.column == column;
  1375. };
  1376. this.isStart = function(row, column) {
  1377. return this.start.row == row && this.start.column == column;
  1378. };
  1379. this.setStart = function(row, column) {
  1380. if (typeof row == "object") {
  1381. this.start.column = row.column;
  1382. this.start.row = row.row;
  1383. } else {
  1384. this.start.row = row;
  1385. this.start.column = column;
  1386. }
  1387. };
  1388. this.setEnd = function(row, column) {
  1389. if (typeof row == "object") {
  1390. this.end.column = row.column;
  1391. this.end.row = row.row;
  1392. } else {
  1393. this.end.row = row;
  1394. this.end.column = column;
  1395. }
  1396. };
  1397. this.inside = function(row, column) {
  1398. if (this.compare(row, column) == 0) {
  1399. if (this.isEnd(row, column) || this.isStart(row, column)) {
  1400. return false;
  1401. } else {
  1402. return true;
  1403. }
  1404. }
  1405. return false;
  1406. };
  1407. this.insideStart = function(row, column) {
  1408. if (this.compare(row, column) == 0) {
  1409. if (this.isEnd(row, column)) {
  1410. return false;
  1411. } else {
  1412. return true;
  1413. }
  1414. }
  1415. return false;
  1416. };
  1417. this.insideEnd = function(row, column) {
  1418. if (this.compare(row, column) == 0) {
  1419. if (this.isStart(row, column)) {
  1420. return false;
  1421. } else {
  1422. return true;
  1423. }
  1424. }
  1425. return false;
  1426. };
  1427. this.compare = function(row, column) {
  1428. if (!this.isMultiLine()) {
  1429. if (row === this.start.row) {
  1430. return column < this.start.column ? -1 : (column > this.end.column ? 1 : 0);
  1431. };
  1432. }
  1433. if (row < this.start.row)
  1434. return -1;
  1435. if (row > this.end.row)
  1436. return 1;
  1437. if (this.start.row === row)
  1438. return column >= this.start.column ? 0 : -1;
  1439. if (this.end.row === row)
  1440. return column <= this.end.column ? 0 : 1;
  1441. return 0;
  1442. };
  1443. this.compareStart = function(row, column) {
  1444. if (this.start.row == row && this.start.column == column) {
  1445. return -1;
  1446. } else {
  1447. return this.compare(row, column);
  1448. }
  1449. };
  1450. this.compareEnd = function(row, column) {
  1451. if (this.end.row == row && this.end.column == column) {
  1452. return 1;
  1453. } else {
  1454. return this.compare(row, column);
  1455. }
  1456. };
  1457. this.compareInside = function(row, column) {
  1458. if (this.end.row == row && this.end.column == column) {
  1459. return 1;
  1460. } else if (this.start.row == row && this.start.column == column) {
  1461. return -1;
  1462. } else {
  1463. return this.compare(row, column);
  1464. }
  1465. };
  1466. this.clipRows = function(firstRow, lastRow) {
  1467. if (this.end.row > lastRow) {
  1468. var end = {
  1469. row: lastRow+1,
  1470. column: 0
  1471. };
  1472. }
  1473. if (this.start.row > lastRow) {
  1474. var start = {
  1475. row: lastRow+1,
  1476. column: 0
  1477. };
  1478. }
  1479. if (this.start.row < firstRow) {
  1480. var start = {
  1481. row: firstRow,
  1482. column: 0
  1483. };
  1484. }
  1485. if (this.end.row < firstRow) {
  1486. var end = {
  1487. row: firstRow,
  1488. column: 0
  1489. };
  1490. }
  1491. return Range.fromPoints(start || this.start, end || this.end);
  1492. };
  1493. this.extend = function(row, column) {
  1494. var cmp = this.compare(row, column);
  1495. if (cmp == 0)
  1496. return this;
  1497. else if (cmp == -1)
  1498. var start = {row: row, column: column};
  1499. else
  1500. var end = {row: row, column: column};
  1501. return Range.fromPoints(start || this.start, end || this.end);
  1502. };
  1503. this.isEmpty = function() {
  1504. return (this.start.row == this.end.row && this.start.column == this.end.column);
  1505. };
  1506. this.isMultiLine = function() {
  1507. return (this.start.row !== this.end.row);
  1508. };
  1509. this.clone = function() {
  1510. return Range.fromPoints(this.start, this.end);
  1511. };
  1512. this.collapseRows = function() {
  1513. if (this.end.column == 0)
  1514. return new Range(this.start.row, 0, Math.max(this.start.row, this.end.row-1), 0)
  1515. else
  1516. return new Range(this.start.row, 0, this.end.row, 0)
  1517. };
  1518. this.toScreenRange = function(session) {
  1519. var screenPosStart =
  1520. session.documentToScreenPosition(this.start);
  1521. var screenPosEnd =
  1522. session.documentToScreenPosition(this.end);
  1523. return new Range(
  1524. screenPosStart.row, screenPosStart.column,
  1525. screenPosEnd.row, screenPosEnd.column
  1526. );
  1527. };
  1528. }).call(Range.prototype);
  1529. Range.fromPoints = function(start, end) {
  1530. return new Range(start.row, start.column, end.row, end.column);
  1531. };
  1532. exports.Range = Range;
  1533. });
  1534. define('ace/anchor', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/event_emitter'], function(require, exports, module) {
  1535. var oop = require("./lib/oop");
  1536. var EventEmitter = require("./lib/event_emitter").EventEmitter;
  1537. var Anchor = exports.Anchor = function(doc, row, column) {
  1538. this.document = doc;
  1539. if (typeof column == "undefined")
  1540. this.setPosition(row.row, row.column);
  1541. else
  1542. this.setPosition(row, column);
  1543. this.$onChange = this.onChange.bind(this);
  1544. doc.on("change", this.$onChange);
  1545. };
  1546. (function() {
  1547. oop.implement(this, EventEmitter);
  1548. this.getPosition = function() {
  1549. return this.$clipPositionToDocument(this.row, this.column);
  1550. };
  1551. this.getDocument = function() {
  1552. return this.document;
  1553. };
  1554. this.onChange = function(e) {
  1555. var delta = e.data;
  1556. var range = delta.range;
  1557. if (range.start.row == range.end.row && range.start.row != this.row)
  1558. return;
  1559. if (range.start.row > this.row)
  1560. return;
  1561. if (range.start.row == this.row && range.start.column > this.column)
  1562. return;
  1563. var row = this.row;
  1564. var column = this.column;
  1565. if (delta.action === "insertText") {
  1566. if (range.start.row === row && range.start.column <= column) {
  1567. if (range.start.row === range.end.row) {
  1568. column += range.end.column - range.start.column;
  1569. }
  1570. else {
  1571. column -= range.start.column;
  1572. row += range.end.row - range.start.row;
  1573. }
  1574. }
  1575. else if (range.start.row !== range.end.row && range.start.row < row) {
  1576. row += range.end.row - range.start.row;
  1577. }
  1578. } else if (delta.action === "insertLines") {
  1579. if (range.start.row <= row) {
  1580. row += range.end.row - range.start.row;
  1581. }
  1582. }
  1583. else if (delta.action == "removeText") {
  1584. if (range.start.row == row && range.start.column < column) {
  1585. if (range.end.column >= column)
  1586. column = range.start.column;
  1587. else
  1588. column = Math.max(0, column - (range.end.column - range.start.column));
  1589. } else if (range.start.row !== range.end.row && range.start.row < row) {
  1590. if (range.end.row == row) {
  1591. column = Math.max(0, column - range.end.column) + range.start.column;
  1592. }
  1593. row -= (range.end.row - range.start.row);
  1594. }
  1595. else if (range.end.row == row) {
  1596. row -= range.end.row - range.start.row;
  1597. column = Math.max(0, column - range.end.column) + range.start.column;
  1598. }
  1599. } else if (delta.action == "removeLines") {
  1600. if (range.start.row <= row) {
  1601. if (range.end.row <= row)
  1602. row -= range.end.row - range.start.row;
  1603. else {
  1604. row = range.start.row;
  1605. column = 0;
  1606. }
  1607. }
  1608. }
  1609. this.setPosition(row, column, true);
  1610. };
  1611. this.setPosition = function(row, column, noClip) {
  1612. var pos;
  1613. if (noClip) {
  1614. pos = {
  1615. row: row,
  1616. column: column
  1617. };
  1618. }
  1619. else {
  1620. pos = this.$clipPositionToDocument(row, column);
  1621. }
  1622. if (this.row == pos.row && this.column == pos.column)
  1623. return;
  1624. var old = {
  1625. row: this.row,
  1626. column: this.column
  1627. };
  1628. this.row = pos.row;
  1629. this.column = pos.column;
  1630. this._emit("change", {
  1631. old: old,
  1632. value: pos
  1633. });
  1634. };
  1635. this.detach = function() {
  1636. this.document.removeEventListener("change", this.$onChange);
  1637. };
  1638. this.$clipPositionToDocument = function(row, column) {
  1639. var pos = {};
  1640. if (row >= this.document.getLength()) {
  1641. pos.row = Math.max(0, this.document.getLength() - 1);
  1642. pos.column = this.document.getLine(pos.row).length;
  1643. }
  1644. else if (row < 0) {
  1645. pos.row = 0;
  1646. pos.column = 0;
  1647. }
  1648. else {
  1649. pos.row = row;
  1650. pos.column = Math.min(this.document.getLine(pos.row).length, Math.max(0, column));
  1651. }
  1652. if (column < 0)
  1653. pos.column = 0;
  1654. return pos;
  1655. };
  1656. }).call(Anchor.prototype);
  1657. });
  1658. define('ace/lib/lang', ['require', 'exports', 'module' ], function(require, exports, module) {
  1659. exports.stringReverse = function(string) {
  1660. return string.split("").reverse().join("");
  1661. };
  1662. exports.stringRepeat = function (string, count) {
  1663. var result = '';
  1664. while (count > 0) {
  1665. if (count & 1)
  1666. result += string;
  1667. if (count >>= 1)
  1668. string += string;
  1669. }
  1670. return result;
  1671. };
  1672. var trimBeginRegexp = /^\s\s*/;
  1673. var trimEndRegexp = /\s\s*$/;
  1674. exports.stringTrimLeft = function (string) {
  1675. return string.replace(trimBeginRegexp, '');
  1676. };
  1677. exports.stringTrimRight = function (string) {
  1678. return string.replace(trimEndRegexp, '');
  1679. };
  1680. exports.copyObject = function(obj) {
  1681. var copy = {};
  1682. for (var key in obj) {
  1683. copy[key] = obj[key];
  1684. }
  1685. return copy;
  1686. };
  1687. exports.copyArray = function(array){
  1688. var copy = [];
  1689. for (var i=0, l=array.length; i<l; i++) {
  1690. if (array[i] && typeof array[i] == "object")
  1691. copy[i] = this.copyObject( array[i] );
  1692. else
  1693. copy[i] = array[i];
  1694. }
  1695. return copy;
  1696. };
  1697. exports.deepCopy = function (obj) {
  1698. if (typeof obj != "object") {
  1699. return obj;
  1700. }
  1701. var copy = obj.constructor();
  1702. for (var key in obj) {
  1703. if (typeof obj[key] == "object") {
  1704. copy[key] = this.deepCopy(obj[key]);
  1705. } else {
  1706. copy[key] = obj[key];
  1707. }
  1708. }
  1709. return copy;
  1710. };
  1711. exports.arrayToMap = function(arr) {
  1712. var map = {};
  1713. for (var i=0; i<arr.length; i++) {
  1714. map[arr[i]] = 1;
  1715. }
  1716. return map;
  1717. };
  1718. exports.createMap = function(props) {
  1719. var map = Object.create(null);
  1720. for (var i in props) {
  1721. map[i] = props[i];
  1722. }
  1723. return map;
  1724. };
  1725. exports.arrayRemove = function(array, value) {
  1726. for (var i = 0; i <= array.length; i++) {
  1727. if (value === array[i]) {
  1728. array.splice(i, 1);
  1729. }
  1730. }
  1731. };
  1732. exports.escapeRegExp = function(str) {
  1733. return str.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1');
  1734. };
  1735. exports.escapeHTML = function(str) {
  1736. return str.replace(/&/g, "&#38;").replace(/"/g, "&#34;").replace(/'/g, "&#39;").replace(/</g, "&#60;");
  1737. };
  1738. exports.getMatchOffsets = function(string, regExp) {
  1739. var matches = [];
  1740. string.replace(regExp, function(str) {
  1741. matches.push({
  1742. offset: arguments[arguments.length-2],
  1743. length: str.length
  1744. });
  1745. });
  1746. return matches;
  1747. };
  1748. exports.deferredCall = function(fcn) {
  1749. var timer = null;
  1750. var callback = function() {
  1751. timer = null;
  1752. fcn();
  1753. };
  1754. var deferred = function(timeout) {
  1755. deferred.cancel();
  1756. timer = setTimeout(callback, timeout || 0);
  1757. return deferred;
  1758. };
  1759. deferred.schedule = deferred;
  1760. deferred.call = function() {
  1761. this.cancel();
  1762. fcn();
  1763. return deferred;
  1764. };
  1765. deferred.cancel = function() {
  1766. clearTimeout(timer);
  1767. timer = null;
  1768. return deferred;
  1769. };
  1770. return deferred;
  1771. };
  1772. exports.delayedCall = function(fcn, defaultTimeout) {
  1773. var timer = null;
  1774. var callback = function() {
  1775. timer = null;
  1776. fcn();
  1777. };
  1778. var _self = function(timeout) {
  1779. timer && clearTimeout(timer);
  1780. timer = setTimeout(callback, timeout || defaultTimeout);
  1781. };
  1782. _self.delay = _self;
  1783. _self.schedule = function(timeout) {
  1784. if (timer == null)
  1785. timer = setTimeout(callback, timeout || 0);
  1786. };
  1787. _self.call = function() {
  1788. this.cancel();
  1789. fcn();
  1790. };
  1791. _self.cancel = function() {
  1792. timer && clearTimeout(timer);
  1793. timer = null;
  1794. };
  1795. _self.isPending = function() {
  1796. return timer;
  1797. };
  1798. return _self;
  1799. };
  1800. });
  1801. define('ace/mode/php/php', ['require', 'exports', 'module' ], function(require, exports, module) {
  1802. var PHP = {Constants:{}};
  1803. PHP.Constants.T_INCLUDE = 262;
  1804. PHP.Constants.T_INCLUDE_ONCE = 261;
  1805. PHP.Constants.T_EVAL = 260;
  1806. PHP.Constants.T_REQUIRE = 259;
  1807. PHP.Constants.T_REQUIRE_ONCE = 258;
  1808. PHP.Constants.T_LOGICAL_OR = 263;
  1809. PHP.Constants.T_LOGICAL_XOR = 264;
  1810. PHP.Constants.T_LOGICAL_AND = 265;
  1811. PHP.Constants.T_PRINT = 266;
  1812. PHP.Constants.T_PLUS_EQUAL = 277;
  1813. PHP.Constants.T_MINUS_EQUAL = 276;
  1814. PHP.Constants.T_MUL_EQUAL = 275;
  1815. PHP.Constants.T_DIV_EQUAL = 274;
  1816. PHP.Constants.T_CONCAT_EQUAL = 273;
  1817. PHP.Constants.T_MOD_EQUAL = 272;
  1818. PHP.Constants.T_AND_EQUAL = 271;
  1819. PHP.Constants.T_OR_EQUAL = 270;
  1820. PHP.Constants.T_XOR_EQUAL = 269;
  1821. PHP.Constants.T_SL_EQUAL = 268;
  1822. PHP.Constants.T_SR_EQUAL = 267;
  1823. PHP.Constants.T_BOOLEAN_OR = 278;
  1824. PHP.Constants.T_BOOLEAN_AND = 279;
  1825. PHP.Constants.T_IS_EQUAL = 283;
  1826. PHP.Constants.T_IS_NOT_EQUAL = 282;
  1827. PHP.Constants.T_IS_IDENTICAL = 281;
  1828. PHP.Constants.T_IS_NOT_IDENTICAL = 280;
  1829. PHP.Constants.T_IS_SMALLER_OR_EQUAL = 285;
  1830. PHP.Constants.T_IS_GREATER_OR_EQUAL = 284;
  1831. PHP.Constants.T_SL = 287;
  1832. PHP.Constants.T_SR = 286;
  1833. PHP.Constants.T_INSTANCEOF = 288;
  1834. PHP.Constants.T_INC = 297;
  1835. PHP.Constants.T_DEC = 296;
  1836. PHP.Constants.T_INT_CAST = 295;
  1837. PHP.Constants.T_DOUBLE_CAST = 294;
  1838. PHP.Constants.T_STRING_CAST = 293;
  1839. PHP.Constants.T_ARRAY_CAST = 292;
  1840. PHP.Constants.T_OBJECT_CAST = 291;
  1841. PHP.Constants.T_BOOL_CAST = 290;
  1842. PHP.Constants.T_UNSET_CAST = 289;
  1843. PHP.Constants.T_NEW = 299;
  1844. PHP.Constants.T_CLONE = 298;
  1845. PHP.Constants.T_EXIT = 300;
  1846. PHP.Constants.T_IF = 301;
  1847. PHP.Constants.T_ELSEIF = 302;
  1848. PHP.Constants.T_ELSE = 303;
  1849. PHP.Constants.T_ENDIF = 304;
  1850. PHP.Constants.T_LNUMBER = 305;
  1851. PHP.Constants.T_DNUMBER = 306;
  1852. PHP.Constants.T_STRING = 307;
  1853. PHP.Constants.T_STRING_VARNAME = 308;
  1854. PHP.Constants.T_VARIABLE = 309;
  1855. PHP.Constants.T_NUM_STRING = 310;
  1856. PHP.Constants.T_INLINE_HTML = 311;
  1857. PHP.Constants.T_CHARACTER = 312;
  1858. PHP.Constants.T_BAD_CHARACTER = 313;
  1859. PHP.Constants.T_ENCAPSED_AND_WHITESPACE = 314;
  1860. PHP.Constants.T_CONSTANT_ENCAPSED_STRING = 315;
  1861. PHP.Constants.T_ECHO = 316;
  1862. PHP.Constants.T_DO = 317;
  1863. PHP.Constants.T_WHILE = 318;
  1864. PHP.Constants.T_ENDWHILE = 319;
  1865. PHP.Constants.T_FOR = 320;
  1866. PHP.Constants.T_ENDFOR = 321;
  1867. PHP.Constants.T_FOREACH = 322;
  1868. PHP.Constants.T_ENDFOREACH = 323;
  1869. PHP.Constants.T_DECLARE = 324;
  1870. PHP.Constants.T_ENDDECLARE = 325;
  1871. PHP.Constants.T_AS = 326;
  1872. PHP.Constants.T_SWITCH = 327;
  1873. PHP.Constants.T_ENDSWITCH = 328;
  1874. PHP.Constants.T_CASE = 329;
  1875. PHP.Constants.T_DEFAULT = 330;
  1876. PHP.Constants.T_BREAK = 331;
  1877. PHP.Constants.T_CONTINUE = 332;
  1878. PHP.Constants.T_GOTO = 333;
  1879. PHP.Constants.T_FUNCTION = 334;
  1880. PHP.Constants.T_CONST = 335;
  1881. PHP.Constants.T_RETURN = 336;
  1882. PHP.Constants.T_TRY = 337;
  1883. PHP.Constants.T_CATCH = 338;
  1884. PHP.Constants.T_THROW = 339;
  1885. PHP.Constants.T_USE = 340;
  1886. PHP.Constants.T_GLOBAL = 341;
  1887. PHP.Constants.T_STATIC = 347;
  1888. PHP.Constants.T_ABSTRACT = 346;
  1889. PHP.Constants.T_FINAL = 345;
  1890. PHP.Constants.T_PRIVATE = 344;
  1891. PHP.Constants.T_PROTECTED = 343;
  1892. PHP.Constants.T_PUBLIC = 342;
  1893. PHP.Constants.T_VAR = 348;
  1894. PHP.Constants.T_UNSET = 349;
  1895. PHP.Constants.T_ISSET = 350;
  1896. PHP.Constants.T_EMPTY = 351;
  1897. PHP.Constants.T_HALT_COMPILER = 352;
  1898. PHP.Constants.T_CLASS = 353;
  1899. PHP.Constants.T_INTERFACE = 354;
  1900. PHP.Constants.T_EXTENDS = 355;
  1901. PHP.Constants.T_IMPLEMENTS = 356;
  1902. PHP.Constants.T_OBJECT_OPERATOR = 357;
  1903. PHP.Constants.T_DOUBLE_ARROW = 358;
  1904. PHP.Constants.T_LIST = 359;
  1905. PHP.Constants.T_ARRAY = 360;
  1906. PHP.Constants.T_CLASS_C = 361;
  1907. PHP.Constants.T_TRAIT_C = 381;
  1908. PHP.Constants.T_METHOD_C = 362;
  1909. PHP.Constants.T_FUNC_C = 363;
  1910. PHP.Constants.T_LINE = 364;
  1911. PHP.Constants.T_FILE = 365;
  1912. PHP.Constants.T_COMMENT = 366;
  1913. PHP.Constants.T_DOC_COMMENT = 367;
  1914. PHP.Constants.T_OPEN_TAG = 368;
  1915. PHP.Constants.T_OPEN_TAG_WITH_ECHO = 369;
  1916. PHP.Constants.T_CLOSE_TAG = 370;
  1917. PHP.Constants.T_WHITESPACE = 371;
  1918. PHP.Constants.T_START_HEREDOC = 372;
  1919. PHP.Constants.T_END_HEREDOC = 373;
  1920. PHP.Constants.T_DOLLAR_OPEN_CURLY_BRACES = 374;
  1921. PHP.Constants.T_CURLY_OPEN = 375;
  1922. PHP.Constants.T_PAAMAYIM_NEKUDOTAYIM = 376;
  1923. PHP.Constants.T_DOUBLE_COLON = 376;
  1924. PHP.Constants.T_NAMESPACE = 377;
  1925. PHP.Constants.T_NS_C = 378;
  1926. PHP.Constants.T_DIR = 379;
  1927. PHP.Constants.T_NS_SEPARATOR = 380;
  1928. PHP.Lexer = function( src, ini ) {
  1929. var heredoc,
  1930. lineBreaker = function( result ) {
  1931. if (result.match(/\n/) !== null) {
  1932. var quote = result.substring(0, 1);
  1933. result = '[' + result.split(/\n/).join( quote + "," + quote ) + '].join("\\n")';
  1934. }
  1935. return result;
  1936. },
  1937. prev,
  1938. openTag = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag) ) ? /(\<\?php\s|\<\?|\<\%|\<script language\=('|")?php('|")?\>)/i : /(\<\?php\s|<\?=|\<script language\=('|")?php('|")?\>)/i),
  1939. openTagStart = (ini === undefined || (/^(on|true|1)$/i.test(ini.short_open_tag)) ? /^(\<\?php\s|\<\?|\<\%|\<script language\=('|")?php('|")?\>)/i : /^(\<\?php\s|<\?=|\<script language\=('|")?php('|")?\>)/i),
  1940. tokens = [
  1941. {
  1942. value: PHP.Constants.T_ABSTRACT,
  1943. re: /^abstract(?=\s)/i
  1944. },
  1945. {
  1946. value: PHP.Constants.T_IMPLEMENTS,
  1947. re: /^implements(?=\s)/i
  1948. },
  1949. {
  1950. value: PHP.Constants.T_INTERFACE,
  1951. re: /^interface(?=\s)/i
  1952. },
  1953. {
  1954. value: PHP.Constants.T_CONST,
  1955. re: /^const(?=\s)/i
  1956. },
  1957. {
  1958. value: PHP.Constants.T_STATIC,
  1959. re: /^static(?=\s)/i
  1960. },
  1961. {
  1962. value: PHP.Constants.T_FINAL,
  1963. re: /^final(?=\s)/i
  1964. },
  1965. {
  1966. value: PHP.Constants.T_VAR,
  1967. re: /^var(?=\s)/i
  1968. },
  1969. {
  1970. value: PHP.Constants.T_GLOBAL,
  1971. re: /^global(?=\s)/i
  1972. },
  1973. {
  1974. value: PHP.Constants.T_CLONE,
  1975. re: /^clone(?=\s)/i
  1976. },
  1977. {
  1978. value: PHP.Constants.T_THROW,
  1979. re: /^throw(?=\s)/i
  1980. },
  1981. {
  1982. value: PHP.Constants.T_EXTENDS,
  1983. re: /^extends(?=\s)/i
  1984. },
  1985. {
  1986. value: PHP.Constants.T_AND_EQUAL,
  1987. re: /^&=/
  1988. },
  1989. {
  1990. value: PHP.Constants.T_AS,
  1991. re: /^as(?=\s)/i
  1992. },
  1993. {
  1994. value: PHP.Constants.T_ARRAY_CAST,
  1995. re: /^\(array\)/i
  1996. },
  1997. {
  1998. value: PHP.Constants.T_BOOL_CAST,
  1999. re: /^\((bool|boolean)\)/i
  2000. },
  2001. {
  2002. value: PHP.Constants.T_DOUBLE_CAST,
  2003. re: /^\((real|float|double)\)/i
  2004. },
  2005. {
  2006. value: PHP.Constants.T_INT_CAST,
  2007. re: /^\((int|integer)\)/i
  2008. },
  2009. {
  2010. value: PHP.Constants.T_OBJECT_CAST,
  2011. re: /^\(object\)/i
  2012. },
  2013. {
  2014. value: PHP.Constants.T_STRING_CAST,
  2015. re: /^\(string\)/i
  2016. },
  2017. {
  2018. value: PHP.Constants.T_UNSET_CAST,
  2019. re: /^\(unset\)/i
  2020. },
  2021. {
  2022. value: PHP.Constants.T_TRY,
  2023. re: /^try(?=\s*{)/i
  2024. },
  2025. {
  2026. value: PHP.Constants.T_CATCH,
  2027. re: /^catch(?=\s*\()/i
  2028. },
  2029. {
  2030. value: PHP.Constants.T_INSTANCEOF,
  2031. re: /^instanceof(?=\s)/i
  2032. },
  2033. {
  2034. value: PHP.Constants.T_LOGICAL_OR,
  2035. re: /^or(?=\s)/i
  2036. },
  2037. {
  2038. value: PHP.Constants.T_LOGICAL_AND,
  2039. re: /^and(?=\s)/i
  2040. },
  2041. {
  2042. value: PHP.Constants.T_LOGICAL_XOR,
  2043. re: /^xor(?=\s)/i
  2044. },
  2045. {
  2046. value: PHP.Constants.T_BOOLEAN_AND,
  2047. re: /^&&/
  2048. },
  2049. {
  2050. value: PHP.Constants.T_BOOLEAN_OR,
  2051. re: /^\|\|/
  2052. },
  2053. {
  2054. value: PHP.Constants.T_CONTINUE,
  2055. re: /^continue(?=\s|;)/i
  2056. },
  2057. {
  2058. value: PHP.Constants.T_BREAK,
  2059. re: /^break(?=\s|;)/i
  2060. },
  2061. {
  2062. value: PHP.Constants.T_ENDDECLARE,
  2063. re: /^enddeclare(?=\s|;)/i
  2064. },
  2065. {
  2066. value: PHP.Constants.T_ENDFOR,
  2067. re: /^endfor(?=\s|;)/i
  2068. },
  2069. {
  2070. value: PHP.Constants.T_ENDFOREACH,
  2071. re: /^endforeach(?=\s|;)/i
  2072. },
  2073. {
  2074. value: PHP.Constants.T_ENDIF,
  2075. re: /^endif(?=\s|;)/i
  2076. },
  2077. {
  2078. value: PHP.Constants.T_ENDSWITCH,
  2079. re: /^endswitch(?=\s|;)/i
  2080. },
  2081. {
  2082. value: PHP.Constants.T_ENDWHILE,
  2083. re: /^endwhile(?=\s|;)/i
  2084. },
  2085. {
  2086. value: PHP.Constants.T_CASE,
  2087. re: /^case(?=\s)/i
  2088. },
  2089. {
  2090. value: PHP.Constants.T_DEFAULT,
  2091. re: /^default(?=\s|:)/i
  2092. },
  2093. {
  2094. value: PHP.Constants.T_SWITCH,
  2095. re: /^switch(?=[ (])/i
  2096. },
  2097. {
  2098. value: PHP.Constants.T_EXIT,
  2099. re: /^(exit|die)(?=[ \(;])/i
  2100. },
  2101. {
  2102. value: PHP.Constants.T_CLOSE_TAG,
  2103. re: /^(\?\>|\%\>|\<\/script\>)\s?\s?/i,
  2104. func: function( result ) {
  2105. insidePHP = false;
  2106. return result;
  2107. }
  2108. },
  2109. {
  2110. value: PHP.Constants.T_DOUBLE_ARROW,
  2111. re: /^\=\>/
  2112. },
  2113. {
  2114. value: PHP.Constants.T_DOUBLE_COLON,
  2115. re: /^\:\:/
  2116. },
  2117. {
  2118. value: PHP.Constants.T_METHOD_C,
  2119. re: /^__METHOD__/
  2120. },
  2121. {
  2122. value: PHP.Constants.T_LINE,
  2123. re: /^__LINE__/
  2124. },
  2125. {
  2126. value: PHP.Constants.T_FILE,
  2127. re: /^__FILE__/
  2128. },
  2129. {
  2130. value: PHP.Constants.T_FUNC_C,
  2131. re: /^__FUNCTION__/
  2132. },
  2133. {
  2134. value: PHP.Constants.T_NS_C,
  2135. re: /^__NAMESPACE__/
  2136. },
  2137. {
  2138. value: PHP.Constants.T_TRAIT_C,
  2139. re: /^__TRAIT__/
  2140. },
  2141. {
  2142. value: PHP.Constants.T_DIR,
  2143. re: /^__DIR__/
  2144. },
  2145. {
  2146. value: PHP.Constants.T_CLASS_C,
  2147. re: /^__CLASS__/
  2148. },
  2149. {
  2150. value: PHP.Constants.T_INC,
  2151. re: /^\+\+/
  2152. },
  2153. {
  2154. value: PHP.Constants.T_DEC,
  2155. re: /^\-\-/
  2156. },
  2157. {
  2158. value: PHP.Constants.T_CONCAT_EQUAL,
  2159. re: /^\.\=/
  2160. },
  2161. {
  2162. value: PHP.Constants.T_DIV_EQUAL,
  2163. re: /^\/\=/
  2164. },
  2165. {
  2166. value: PHP.Constants.T_XOR_EQUAL,
  2167. re: /^\^\=/
  2168. },
  2169. {
  2170. value: PHP.Constants.T_MUL_EQUAL,
  2171. re: /^\*\=/
  2172. },
  2173. {
  2174. value: PHP.Constants.T_MOD_EQUAL,
  2175. re: /^\%\=/
  2176. },
  2177. {
  2178. value: PHP.Constants.T_SL_EQUAL,
  2179. re: /^<<=/
  2180. },
  2181. {
  2182. value: PHP.Constants.T_START_HEREDOC,
  2183. re: /^<<<[A-Z_0-9]+\s/i,
  2184. func: function( result ){
  2185. heredoc = result.substring(3, result.length - 1);
  2186. return result;
  2187. }
  2188. },
  2189. {
  2190. value: PHP.Constants.T_SL,
  2191. re: /^<</
  2192. },
  2193. {
  2194. value: PHP.Constants.T_IS_SMALLER_OR_EQUAL,
  2195. re: /^<=/
  2196. },
  2197. {
  2198. value: PHP.Constants.T_SR_EQUAL,
  2199. re: /^>>=/
  2200. },
  2201. {
  2202. value: PHP.Constants.T_SR,
  2203. re: /^>>/
  2204. },
  2205. {
  2206. value: PHP.Constants.T_IS_GREATER_OR_EQUAL,
  2207. re: /^>=/
  2208. },
  2209. {
  2210. value: PHP.Constants.T_OR_EQUAL,
  2211. re: /^\|\=/
  2212. },
  2213. {
  2214. value: PHP.Constants.T_PLUS_EQUAL,
  2215. re: /^\+\=/
  2216. },
  2217. {
  2218. value: PHP.Constants.T_MINUS_EQUAL,
  2219. re: /^-\=/
  2220. },
  2221. {
  2222. value: PHP.Constants.T_OBJECT_OPERATOR,
  2223. re: /^\-\>/i
  2224. },
  2225. {
  2226. value: PHP.Constants.T_CLASS,
  2227. re: /^class(?=[\s\{])/i,
  2228. afterWhitespace: true
  2229. },
  2230. {
  2231. value: PHP.Constants.T_PUBLIC,
  2232. re: /^public(?=[\s])/i
  2233. },
  2234. {
  2235. value: PHP.Constants.T_PRIVATE,
  2236. re: /^private(?=[\s])/i
  2237. },
  2238. {
  2239. value: PHP.Constants.T_PROTECTED,
  2240. re: /^protected(?=[\s])/i
  2241. },
  2242. {
  2243. value: PHP.Constants.T_ARRAY,
  2244. re: /^array(?=\s*?\()/i
  2245. },
  2246. {
  2247. value: PHP.Constants.T_EMPTY,
  2248. re: /^empty(?=[ \(])/i
  2249. },
  2250. {
  2251. value: PHP.Constants.T_ISSET,
  2252. re: /^isset(?=[ \(])/i
  2253. },
  2254. {
  2255. value: PHP.Constants.T_UNSET,
  2256. re: /^unset(?=[ \(])/i
  2257. },
  2258. {
  2259. value: PHP.Constants.T_RETURN,
  2260. re: /^return(?=[ "'(;])/i
  2261. },
  2262. {
  2263. value: PHP.Constants.T_FUNCTION,
  2264. re: /^function(?=[ "'(;])/i
  2265. },
  2266. {
  2267. value: PHP.Constants.T_ECHO,
  2268. re: /^echo(?=[ "'(;])/i
  2269. },
  2270. {
  2271. value: PHP.Constants.T_LIST,
  2272. re: /^list(?=\s*?\()/i
  2273. },
  2274. {
  2275. value: PHP.Constants.T_PRINT,
  2276. re: /^print(?=[ "'(;])/i
  2277. },
  2278. {
  2279. value: PHP.Constants.T_INCLUDE,
  2280. re: /^include(?=[ "'(;])/i
  2281. },
  2282. {
  2283. value: PHP.Constants.T_INCLUDE_ONCE,
  2284. re: /^include_once(?=[ "'(;])/i
  2285. },
  2286. {
  2287. value: PHP.Constants.T_REQUIRE,
  2288. re: /^require(?=[ "'(;])/i
  2289. },
  2290. {
  2291. value: PHP.Constants.T_REQUIRE_ONCE,
  2292. re: /^require_once(?=[ "'(;])/i
  2293. },
  2294. {
  2295. value: PHP.Constants.T_NEW,
  2296. re: /^new(?=[ ])/i
  2297. },
  2298. {
  2299. value: PHP.Constants.T_COMMENT,
  2300. re: /^\/\*([\S\s]*?)(?:\*\/|$)/
  2301. },
  2302. {
  2303. value: PHP.Constants.T_COMMENT,
  2304. re: /^\/\/.*(\s)?/
  2305. },
  2306. {
  2307. value: PHP.Constants.T_COMMENT,
  2308. re: /^\#.*(\s)?/
  2309. },
  2310. {
  2311. value: PHP.Constants.T_ELSEIF,
  2312. re: /^elseif(?=[\s(])/i
  2313. },
  2314. {
  2315. value: PHP.Constants.T_GOTO,
  2316. re: /^goto(?=[\s(])/i
  2317. },
  2318. {
  2319. value: PHP.Constants.T_ELSE,
  2320. re: /^else(?=[\s{:])/i
  2321. },
  2322. {
  2323. value: PHP.Constants.T_IF,
  2324. re: /^if(?=[\s(])/i
  2325. },
  2326. {
  2327. value: PHP.Constants.T_DO,
  2328. re: /^do(?=[ {])/i
  2329. },
  2330. {
  2331. value: PHP.Constants.T_WHILE,
  2332. re: /^while(?=[ (])/i
  2333. },
  2334. {
  2335. value: PHP.Constants.T_FOREACH,
  2336. re: /^foreach(?=[ (])/i
  2337. },
  2338. {
  2339. value: PHP.Constants.T_ISSET,
  2340. re: /^isset(?=[ (])/i
  2341. },
  2342. {
  2343. value: PHP.Constants.T_IS_IDENTICAL,
  2344. re: /^===/
  2345. },
  2346. {
  2347. value: PHP.Constants.T_IS_EQUAL,
  2348. re: /^==/
  2349. },
  2350. {
  2351. value: PHP.Constants.T_IS_NOT_IDENTICAL,
  2352. re: /^\!==/
  2353. },
  2354. {
  2355. value: PHP.Constants.T_IS_NOT_EQUAL,
  2356. re: /^(\!=|\<\>)/
  2357. },
  2358. {
  2359. value: PHP.Constants.T_FOR,
  2360. re: /^for(?=[ (])/i
  2361. },
  2362. {
  2363. value: PHP.Constants.T_DNUMBER,
  2364. re: /^[0-9]*\.[0-9]+([eE][-]?[0-9]*)?/
  2365. },
  2366. {
  2367. value: PHP.Constants.T_LNUMBER,
  2368. re: /^(0x[0-9A-F]+|[0-9]+)/i
  2369. },
  2370. {
  2371. value: PHP.Constants.T_OPEN_TAG_WITH_ECHO,
  2372. re: /^(\<\?=|\<\%=)/i
  2373. },
  2374. {
  2375. value: PHP.Constants.T_OPEN_TAG,
  2376. re: openTagStart
  2377. },
  2378. {
  2379. value: PHP.Constants.T_VARIABLE,
  2380. re: /^\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/
  2381. },
  2382. {
  2383. value: PHP.Constants.T_WHITESPACE,
  2384. re: /^\s+/
  2385. },
  2386. {
  2387. value: PHP.Constants.T_CONSTANT_ENCAPSED_STRING,
  2388. re: /^("(?:[^"\\]|\\[\s\S])*"|'(?:[^'\\]|\\[\s\S])*')/,
  2389. func: function( result, token ) {
  2390. var curlyOpen = 0,
  2391. len,
  2392. bracketOpen = 0;
  2393. if (result.substring( 0,1 ) === "'") {
  2394. return result;
  2395. }
  2396. var match = result.match( /(?:[^\\]|\\.)*[^\\]\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/g );
  2397. if ( match !== null ) {
  2398. while( result.length > 0 ) {
  2399. len = result.length;
  2400. match = result.match( /^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\@\^\%\"\'\{\}]/ );
  2401. if ( match !== null ) {
  2402. results.push( match[ 0 ] );
  2403. result = result.substring( 1 );
  2404. if ( curlyOpen > 0 && match[ 0 ] === "}") {
  2405. curlyOpen--;
  2406. }
  2407. if ( match[ 0 ] === "[" ) {
  2408. bracketOpen++;
  2409. }
  2410. if ( match[ 0 ] === "]" ) {
  2411. bracketOpen--;
  2412. }
  2413. }
  2414. match = result.match(/^\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/);
  2415. if ( match !== null ) {
  2416. results.push([
  2417. parseInt(PHP.Constants.T_VARIABLE, 10),
  2418. match[ 0 ],
  2419. line
  2420. ]);
  2421. result = result.substring( match[ 0 ].length );
  2422. match = result.match(/^(\-\>)([a-zA-Z0-9_\x7f-\xff]*)/);
  2423. if ( match !== null ) {
  2424. results.push([
  2425. parseInt(PHP.Constants.T_OBJECT_OPERATOR, 10),
  2426. match[ 1 ],
  2427. line
  2428. ]);
  2429. results.push([
  2430. parseInt(PHP.Constants.T_STRING, 10),
  2431. match[ 2 ],
  2432. line
  2433. ]);
  2434. result = result.substring( match[ 0 ].length );
  2435. }
  2436. if ( result.match( /^\[/g ) !== null ) {
  2437. continue;
  2438. }
  2439. }
  2440. var re;
  2441. if ( curlyOpen > 0) {
  2442. re = /^([^\\\$"{}\]]|\\.)+/g;
  2443. } else {
  2444. re = /^([^\\\$"{]|\\.|{[^\$])+/g;
  2445. }
  2446. while(( match = result.match( re )) !== null ) {
  2447. if (result.length === 1) {
  2448. throw new Error(match);
  2449. }
  2450. results.push([
  2451. parseInt(( curlyOpen > 0 ) ? PHP.Constants.T_CONSTANT_ENCAPSED_STRING : PHP.Constants.T_ENCAPSED_AND_WHITESPACE, 10),
  2452. match[ 0 ],
  2453. line
  2454. ]);
  2455. line += match[ 0 ].split('\n').length - 1;
  2456. result = result.substring( match[ 0 ].length );
  2457. }
  2458. if( result.match(/^{\$/) !== null ) {
  2459. results.push([
  2460. parseInt(PHP.Constants.T_CURLY_OPEN, 10),
  2461. "{",
  2462. line
  2463. ]);
  2464. result = result.substring( 1 );
  2465. curlyOpen++;
  2466. }
  2467. if (len === result.length) {
  2468. if ((match = result.match( /^(([^\\]|\\.)*?[^\\]\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)/g )) !== null) {
  2469. return;
  2470. }
  2471. }
  2472. }
  2473. return undefined;
  2474. }
  2475. return result;
  2476. }
  2477. },
  2478. {
  2479. value: PHP.Constants.T_STRING,
  2480. re: /^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/
  2481. },
  2482. {
  2483. value: -1,
  2484. re: /^[\[\]\;\:\?\(\)\!\.\,\>\<\=\+\-\/\*\|\&\{\}\@\^\%\"\'\$\~]/
  2485. }];
  2486. var results = [],
  2487. line = 1,
  2488. insidePHP = false,
  2489. cancel = true;
  2490. if ( src === null ) {
  2491. return results;
  2492. }
  2493. if ( typeof src !== "string" ) {
  2494. src = src.toString();
  2495. }
  2496. while (src.length > 0 && cancel === true) {
  2497. if ( insidePHP === true ) {
  2498. if ( heredoc !== undefined ) {
  2499. var regexp = new RegExp('([\\S\\s]*)(\\r\\n|\\n|\\r)(' + heredoc + ')(;|\\r\\n|\\n)',"i");
  2500. var result = src.match( regexp );
  2501. if ( result !== null ) {
  2502. results.push([
  2503. parseInt(PHP.Constants.T_ENCAPSED_AND_WHITESPACE, 10),
  2504. result[ 1 ].replace(/^\n/g,"").replace(/\\\$/g,"$") + "\n",
  2505. line
  2506. ]);
  2507. line += result[ 1 ].split('\n').length;
  2508. results.push([
  2509. parseInt(PHP.Constants.T_END_HEREDOC, 10),
  2510. result[ 3 ],
  2511. line
  2512. ]);
  2513. src = src.substring( result[1].length + result[2].length + result[3].length );
  2514. heredoc = undefined;
  2515. }
  2516. if (result === null) {
  2517. throw Error("sup");
  2518. }
  2519. } else {
  2520. cancel = tokens.some(function( token ){
  2521. if ( token.afterWhitespace === true ) {
  2522. var last = results[ results.length - 1 ];
  2523. if ( !Array.isArray( last ) || (last[ 0 ] !== PHP.Constants.T_WHITESPACE && last[ 0 ] !== PHP.Constants.T_OPEN_TAG && last[ 0 ] !== PHP.Constants.T_COMMENT)) {
  2524. return false;
  2525. }
  2526. }
  2527. var result = src.match( token.re );
  2528. if ( result !== null ) {
  2529. if ( token.value !== -1) {
  2530. var resultString = result[ 0 ];
  2531. if (token.func !== undefined ) {
  2532. resultString = token.func( resultString, token );
  2533. }
  2534. if (resultString !== undefined ) {
  2535. results.push([
  2536. parseInt(token.value, 10),
  2537. resultString,
  2538. line
  2539. ]);
  2540. line += resultString.split('\n').length - 1;
  2541. }
  2542. } else {
  2543. results.push( result[ 0 ] );
  2544. }
  2545. src = src.substring(result[ 0 ].length);
  2546. return true;
  2547. }
  2548. return false;
  2549. });
  2550. }
  2551. } else {
  2552. var result = openTag.exec( src );
  2553. if ( result !== null ) {
  2554. if ( result.index > 0 ) {
  2555. var resultString = src.substring(0, result.index);
  2556. results.push ([
  2557. parseInt(PHP.Constants.T_INLINE_HTML, 10),
  2558. resultString,
  2559. line
  2560. ]);
  2561. line += resultString.split('\n').length - 1;
  2562. src = src.substring( result.index );
  2563. }
  2564. insidePHP = true;
  2565. } else {
  2566. results.push ([
  2567. parseInt(PHP.Constants.T_INLINE_HTML, 10),
  2568. src.replace(/^\n/, ""),
  2569. line
  2570. ]);
  2571. return results;
  2572. }
  2573. }
  2574. }
  2575. return results;
  2576. };
  2577. PHP.Parser = function ( preprocessedTokens, eval ) {
  2578. var yybase = this.yybase,
  2579. yydefault = this.yydefault,
  2580. yycheck = this.yycheck,
  2581. yyaction = this.yyaction,
  2582. yylen = this.yylen,
  2583. yygbase = this.yygbase,
  2584. yygcheck = this.yygcheck,
  2585. yyp = this.yyp,
  2586. yygoto = this.yygoto,
  2587. yylhs = this.yylhs,
  2588. terminals = this.terminals,
  2589. translate = this.translate,
  2590. yygdefault = this.yygdefault;
  2591. this.pos = -1;
  2592. this.line = 1;
  2593. this.tokenMap = this.createTokenMap( );
  2594. this.dropTokens = {};
  2595. this.dropTokens[ PHP.Constants.T_WHITESPACE ] = 1;
  2596. this.dropTokens[ PHP.Constants.T_OPEN_TAG ] = 1;
  2597. var tokens = [];
  2598. preprocessedTokens.forEach( function( token, index ) {
  2599. if ( typeof token === "object" && token[ 0 ] === PHP.Constants.T_OPEN_TAG_WITH_ECHO) {
  2600. tokens.push([
  2601. PHP.Constants.T_OPEN_TAG,
  2602. token[ 1 ],
  2603. token[ 2 ]
  2604. ]);
  2605. tokens.push([
  2606. PHP.Constants.T_ECHO,
  2607. token[ 1 ],
  2608. token[ 2 ]
  2609. ]);
  2610. } else {
  2611. tokens.push( token );
  2612. }
  2613. });
  2614. this.tokens = tokens;
  2615. var tokenId = this.TOKEN_NONE;
  2616. this.startAttributes = {
  2617. 'startLine': 1
  2618. };
  2619. this.endAttributes = {};
  2620. var attributeStack = [ this.startAttributes ];
  2621. var state = 0;
  2622. var stateStack = [ state ];
  2623. this.yyastk = [];
  2624. this.stackPos = 0;
  2625. var yyn;
  2626. var origTokenId;
  2627. for (;;) {
  2628. if ( yybase[ state ] === 0 ) {
  2629. yyn = yydefault[ state ];
  2630. } else {
  2631. if (tokenId === this.TOKEN_NONE ) {
  2632. origTokenId = this.getNextToken( );
  2633. tokenId = (origTokenId >= 0 && origTokenId < this.TOKEN_MAP_SIZE) ? translate[ origTokenId ] : this.TOKEN_INVALID;
  2634. attributeStack[ this.stackPos ] = this.startAttributes;
  2635. }
  2636. if (((yyn = yybase[ state ] + tokenId) >= 0
  2637. && yyn < this.YYLAST && yycheck[ yyn ] === tokenId
  2638. || (state < this.YY2TBLSTATE
  2639. && (yyn = yybase[state + this.YYNLSTATES] + tokenId) >= 0
  2640. && yyn < this.YYLAST
  2641. && yycheck[ yyn ] === tokenId))
  2642. && (yyn = yyaction[ yyn ]) !== this.YYDEFAULT ) {
  2643. if (yyn > 0) {
  2644. ++this.stackPos;
  2645. stateStack[ this.stackPos ] = state = yyn;
  2646. this.yyastk[ this.stackPos ] = this.tokenValue;
  2647. attributeStack[ this.stackPos ] = this.startAttributes;
  2648. tokenId = this.TOKEN_NONE;
  2649. if (yyn < this.YYNLSTATES)
  2650. continue;
  2651. yyn -= this.YYNLSTATES;
  2652. } else {
  2653. yyn = -yyn;
  2654. }
  2655. } else {
  2656. yyn = yydefault[ state ];
  2657. }
  2658. }
  2659. for (;;) {
  2660. if ( yyn === 0 ) {
  2661. return this.yyval;
  2662. } else if (yyn !== this.YYUNEXPECTED ) {
  2663. for (var attr in this.endAttributes) {
  2664. attributeStack[ this.stackPos - yylen[ yyn ] ][ attr ] = this.endAttributes[ attr ];
  2665. }
  2666. try {
  2667. this['yyn' + yyn](attributeStack[ this.stackPos - yylen[ yyn ] ]);
  2668. } catch (e) {
  2669. throw e;
  2670. }
  2671. this.stackPos -= yylen[ yyn ];
  2672. yyn = yylhs[ yyn ];
  2673. if ((yyp = yygbase[ yyn ] + stateStack[ this.stackPos ]) >= 0
  2674. && yyp < this.YYGLAST
  2675. && yygcheck[ yyp ] === yyn) {
  2676. state = yygoto[ yyp ];
  2677. } else {
  2678. state = yygdefault[ yyn ];
  2679. }
  2680. ++this.stackPos;
  2681. stateStack[ this.stackPos ] = state;
  2682. this.yyastk[ this.stackPos ] = this.yyval;
  2683. attributeStack[ this.stackPos ] = this.startAttributes;
  2684. } else {
  2685. if (eval !== true) {
  2686. var expected = [];
  2687. for (var i = 0; i < this.TOKEN_MAP_SIZE; ++i) {
  2688. if ((yyn = yybase[ state ] + i) >= 0 && yyn < this.YYLAST && yycheck[ yyn ] == i
  2689. || state < this.YY2TBLSTATE
  2690. && (yyn = yybase[ state + this.YYNLSTATES] + i)
  2691. && yyn < this.YYLAST && yycheck[ yyn ] == i
  2692. ) {
  2693. if (yyaction[ yyn ] != this.YYUNEXPECTED) {
  2694. if (expected.length == 4) {
  2695. expected = [];
  2696. break;
  2697. }
  2698. expected.push( this.terminals[ i ] );
  2699. }
  2700. }
  2701. }
  2702. var expectedString = '';
  2703. if (expected.length) {
  2704. expectedString = ', expecting ' + expected.join(' or ');
  2705. }
  2706. throw new PHP.ParseError('syntax error, unexpected ' + terminals[ tokenId ] + expectedString, this.startAttributes['startLine']);
  2707. } else {
  2708. return this.startAttributes['startLine'];
  2709. }
  2710. }
  2711. if (state < this.YYNLSTATES)
  2712. break;
  2713. yyn = state - this.YYNLSTATES;
  2714. }
  2715. }
  2716. };
  2717. PHP.ParseError = function( msg, line ) {
  2718. this.message = msg;
  2719. this.line = line;
  2720. };
  2721. PHP.Parser.prototype.MODIFIER_PUBLIC = 1;
  2722. PHP.Parser.prototype.MODIFIER_PROTECTED = 2;
  2723. PHP.Parser.prototype.MODIFIER_PRIVATE = 4;
  2724. PHP.Parser.prototype.MODIFIER_STATIC = 8;
  2725. PHP.Parser.prototype.MODIFIER_ABSTRACT = 16;
  2726. PHP.Parser.prototype.MODIFIER_FINAL = 32;
  2727. PHP.Parser.prototype.getNextToken = function( ) {
  2728. this.startAttributes = {};
  2729. this.endAttributes = {};
  2730. var token,
  2731. tmp;
  2732. while (this.tokens[++this.pos] !== undefined) {
  2733. token = this.tokens[this.pos];
  2734. if (typeof token === "string") {
  2735. this.startAttributes['startLine'] = this.line;
  2736. this.endAttributes['endLine'] = this.line;
  2737. this.tokenValue = token;
  2738. return token.charCodeAt(0);
  2739. } else {
  2740. this.line += ((tmp = token[ 1 ].match(/\n/g)) === null) ? 0 : tmp.length;
  2741. if (PHP.Constants.T_COMMENT === token[0]) {
  2742. if (!Array.isArray(this.startAttributes['comments'])) {
  2743. this.startAttributes['comments'] = [];
  2744. }
  2745. this.startAttributes['comments'].push( {
  2746. type: "comment",
  2747. comment: token[1],
  2748. line: token[2]
  2749. });
  2750. } else if (PHP.Constants.T_DOC_COMMENT === token[0]) {
  2751. this.startAttributes['comments'].push( new PHPParser_Comment_Doc(token[1], token[2]) );
  2752. } else if (this.dropTokens[token[0]] === undefined) {
  2753. this.tokenValue = token[1];
  2754. this.startAttributes['startLine'] = token[2];
  2755. this.endAttributes['endLine'] = this.line;
  2756. return this.tokenMap[token[0]];
  2757. }
  2758. }
  2759. }
  2760. this.startAttributes['startLine'] = this.line;
  2761. return 0;
  2762. };
  2763. PHP.Parser.prototype.tokenName = function( token ) {
  2764. var constants = ["T_INCLUDE","T_INCLUDE_ONCE","T_EVAL","T_REQUIRE","T_REQUIRE_ONCE","T_LOGICAL_OR","T_LOGICAL_XOR","T_LOGICAL_AND","T_PRINT","T_PLUS_EQUAL","T_MINUS_EQUAL","T_MUL_EQUAL","T_DIV_EQUAL","T_CONCAT_EQUAL","T_MOD_EQUAL","T_AND_EQUAL","T_OR_EQUAL","T_XOR_EQUAL","T_SL_EQUAL","T_SR_EQUAL","T_BOOLEAN_OR","T_BOOLEAN_AND","T_IS_EQUAL","T_IS_NOT_EQUAL","T_IS_IDENTICAL","T_IS_NOT_IDENTICAL","T_IS_SMALLER_OR_EQUAL","T_IS_GREATER_OR_EQUAL","T_SL","T_SR","T_INSTANCEOF","T_INC","T_DEC","T_INT_CAST","T_DOUBLE_CAST","T_STRING_CAST","T_ARRAY_CAST","T_OBJECT_CAST","T_BOOL_CAST","T_UNSET_CAST","T_NEW","T_CLONE","T_EXIT","T_IF","T_ELSEIF","T_ELSE","T_ENDIF","T_LNUMBER","T_DNUMBER","T_STRING","T_STRING_VARNAME","T_VARIABLE","T_NUM_STRING","T_INLINE_HTML","T_CHARACTER","T_BAD_CHARACTER","T_ENCAPSED_AND_WHITESPACE","T_CONSTANT_ENCAPSED_STRING","T_ECHO","T_DO","T_WHILE","T_ENDWHILE","T_FOR","T_ENDFOR","T_FOREACH","T_ENDFOREACH","T_DECLARE","T_ENDDECLARE","T_AS","T_SWITCH","T_ENDSWITCH","T_CASE","T_DEFAULT","T_BREAK","T_CONTINUE","T_GOTO","T_FUNCTION","T_CONST","T_RETURN","T_TRY","T_CATCH","T_THROW","T_USE","T_INSTEADOF","T_GLOBAL","T_STATIC","T_ABSTRACT","T_FINAL","T_PRIVATE","T_PROTECTED","T_PUBLIC","T_VAR","T_UNSET","T_ISSET","T_EMPTY","T_HALT_COMPILER","T_CLASS","T_TRAIT","T_INTERFACE","T_EXTENDS","T_IMPLEMENTS","T_OBJECT_OPERATOR","T_DOUBLE_ARROW","T_LIST","T_ARRAY","T_CALLABLE","T_CLASS_C","T_TRAIT_C","T_METHOD_C","T_FUNC_C","T_LINE","T_FILE","T_COMMENT","T_DOC_COMMENT","T_OPEN_TAG","T_OPEN_TAG_WITH_ECHO","T_CLOSE_TAG","T_WHITESPACE","T_START_HEREDOC","T_END_HEREDOC","T_DOLLAR_OPEN_CURLY_BRACES","T_CURLY_OPEN","T_PAAMAYIM_NEKUDOTAYIM","T_DOUBLE_COLON","T_NAMESPACE","T_NS_C","T_DIR","T_NS_SEPARATOR"];
  2765. var current = "UNKNOWN";
  2766. constants.some(function( constant ) {
  2767. if (PHP.Constants[ constant ] === token) {
  2768. current = constant;
  2769. return true;
  2770. } else {
  2771. return false;
  2772. }
  2773. });
  2774. return current;
  2775. };
  2776. PHP.Parser.prototype.createTokenMap = function() {
  2777. var tokenMap = {},
  2778. name,
  2779. i;
  2780. var T_DOUBLE_COLON = PHP.Constants.T_PAAMAYIM_NEKUDOTAYIM;
  2781. for ( i = 256; i < 1000; ++i ) {
  2782. if ( T_DOUBLE_COLON === i ) {
  2783. tokenMap[ i ] = this.T_PAAMAYIM_NEKUDOTAYIM;
  2784. } else if( PHP.Constants.T_OPEN_TAG_WITH_ECHO === i ) {
  2785. tokenMap[ i ] = PHP.Constants.T_ECHO;
  2786. } else if( PHP.Constants.T_CLOSE_TAG === i ) {
  2787. tokenMap[ i ] = 59;
  2788. } else if ( 'UNKNOWN' !== (name = this.tokenName( i ) ) ) {
  2789. tokenMap[ i ] = this[name];
  2790. }
  2791. }
  2792. return tokenMap;
  2793. };
  2794. PHP.Parser.prototype.TOKEN_NONE = -1;
  2795. PHP.Parser.prototype.TOKEN_INVALID = 149;
  2796. PHP.Parser.prototype.TOKEN_MAP_SIZE = 384;
  2797. PHP.Parser.prototype.YYLAST = 913;
  2798. PHP.Parser.prototype.YY2TBLSTATE = 328;
  2799. PHP.Parser.prototype.YYGLAST = 415;
  2800. PHP.Parser.prototype.YYNLSTATES = 544;
  2801. PHP.Parser.prototype.YYUNEXPECTED = 32767;
  2802. PHP.Parser.prototype.YYDEFAULT = -32766;
  2803. PHP.Parser.prototype.YYERRTOK = 256;
  2804. PHP.Parser.prototype.T_INCLUDE = 257;
  2805. PHP.Parser.prototype.T_INCLUDE_ONCE = 258;
  2806. PHP.Parser.prototype.T_EVAL = 259;
  2807. PHP.Parser.prototype.T_REQUIRE = 260;
  2808. PHP.Parser.prototype.T_REQUIRE_ONCE = 261;
  2809. PHP.Parser.prototype.T_LOGICAL_OR = 262;
  2810. PHP.Parser.prototype.T_LOGICAL_XOR = 263;
  2811. PHP.Parser.prototype.T_LOGICAL_AND = 264;
  2812. PHP.Parser.prototype.T_PRINT = 265;
  2813. PHP.Parser.prototype.T_PLUS_EQUAL = 266;
  2814. PHP.Parser.prototype.T_MINUS_EQUAL = 267;
  2815. PHP.Parser.prototype.T_MUL_EQUAL = 268;
  2816. PHP.Parser.prototype.T_DIV_EQUAL = 269;
  2817. PHP.Parser.prototype.T_CONCAT_EQUAL = 270;
  2818. PHP.Parser.prototype.T_MOD_EQUAL = 271;
  2819. PHP.Parser.prototype.T_AND_EQUAL = 272;
  2820. PHP.Parser.prototype.T_OR_EQUAL = 273;
  2821. PHP.Parser.prototype.T_XOR_EQUAL = 274;
  2822. PHP.Parser.prototype.T_SL_EQUAL = 275;
  2823. PHP.Parser.prototype.T_SR_EQUAL = 276;
  2824. PHP.Parser.prototype.T_BOOLEAN_OR = 277;
  2825. PHP.Parser.prototype.T_BOOLEAN_AND = 278;
  2826. PHP.Parser.prototype.T_IS_EQUAL = 279;
  2827. PHP.Parser.prototype.T_IS_NOT_EQUAL = 280;
  2828. PHP.Parser.prototype.T_IS_IDENTICAL = 281;
  2829. PHP.Parser.prototype.T_IS_NOT_IDENTICAL = 282;
  2830. PHP.Parser.prototype.T_IS_SMALLER_OR_EQUAL = 283;
  2831. PHP.Parser.prototype.T_IS_GREATER_OR_EQUAL = 284;
  2832. PHP.Parser.prototype.T_SL = 285;
  2833. PHP.Parser.prototype.T_SR = 286;
  2834. PHP.Parser.prototype.T_INSTANCEOF = 287;
  2835. PHP.Parser.prototype.T_INC = 288;
  2836. PHP.Parser.prototype.T_DEC = 289;
  2837. PHP.Parser.prototype.T_INT_CAST = 290;
  2838. PHP.Parser.prototype.T_DOUBLE_CAST = 291;
  2839. PHP.Parser.prototype.T_STRING_CAST = 292;
  2840. PHP.Parser.prototype.T_ARRAY_CAST = 293;
  2841. PHP.Parser.prototype.T_OBJECT_CAST = 294;
  2842. PHP.Parser.prototype.T_BOOL_CAST = 295;
  2843. PHP.Parser.prototype.T_UNSET_CAST = 296;
  2844. PHP.Parser.prototype.T_NEW = 297;
  2845. PHP.Parser.prototype.T_CLONE = 298;
  2846. PHP.Parser.prototype.T_EXIT = 299;
  2847. PHP.Parser.prototype.T_IF = 300;
  2848. PHP.Parser.prototype.T_ELSEIF = 301;
  2849. PHP.Parser.prototype.T_ELSE = 302;
  2850. PHP.Parser.prototype.T_ENDIF = 303;
  2851. PHP.Parser.prototype.T_LNUMBER = 304;
  2852. PHP.Parser.prototype.T_DNUMBER = 305;
  2853. PHP.Parser.prototype.T_STRING = 306;
  2854. PHP.Parser.prototype.T_STRING_VARNAME = 307;
  2855. PHP.Parser.prototype.T_VARIABLE = 308;
  2856. PHP.Parser.prototype.T_NUM_STRING = 309;
  2857. PHP.Parser.prototype.T_INLINE_HTML = 310;
  2858. PHP.Parser.prototype.T_CHARACTER = 311;
  2859. PHP.Parser.prototype.T_BAD_CHARACTER = 312;
  2860. PHP.Parser.prototype.T_ENCAPSED_AND_WHITESPACE = 313;
  2861. PHP.Parser.prototype.T_CONSTANT_ENCAPSED_STRING = 314;
  2862. PHP.Parser.prototype.T_ECHO = 315;
  2863. PHP.Parser.prototype.T_DO = 316;
  2864. PHP.Parser.prototype.T_WHILE = 317;
  2865. PHP.Parser.prototype.T_ENDWHILE = 318;
  2866. PHP.Parser.prototype.T_FOR = 319;
  2867. PHP.Parser.prototype.T_ENDFOR = 320;
  2868. PHP.Parser.prototype.T_FOREACH = 321;
  2869. PHP.Parser.prototype.T_ENDFOREACH = 322;
  2870. PHP.Parser.prototype.T_DECLARE = 323;
  2871. PHP.Parser.prototype.T_ENDDECLARE = 324;
  2872. PHP.Parser.prototype.T_AS = 325;
  2873. PHP.Parser.prototype.T_SWITCH = 326;
  2874. PHP.Parser.prototype.T_ENDSWITCH = 327;
  2875. PHP.Parser.prototype.T_CASE = 328;
  2876. PHP.Parser.prototype.T_DEFAULT = 329;
  2877. PHP.Parser.prototype.T_BREAK = 330;
  2878. PHP.Parser.prototype.T_CONTINUE = 331;
  2879. PHP.Parser.prototype.T_GOTO = 332;
  2880. PHP.Parser.prototype.T_FUNCTION = 333;
  2881. PHP.Parser.prototype.T_CONST = 334;
  2882. PHP.Parser.prototype.T_RETURN = 335;
  2883. PHP.Parser.prototype.T_TRY = 336;
  2884. PHP.Parser.prototype.T_CATCH = 337;
  2885. PHP.Parser.prototype.T_THROW = 338;
  2886. PHP.Parser.prototype.T_USE = 339;
  2887. PHP.Parser.prototype.T_INSTEADOF = 340;
  2888. PHP.Parser.prototype.T_GLOBAL = 341;
  2889. PHP.Parser.prototype.T_STATIC = 342;
  2890. PHP.Parser.prototype.T_ABSTRACT = 343;
  2891. PHP.Parser.prototype.T_FINAL = 344;
  2892. PHP.Parser.prototype.T_PRIVATE = 345;
  2893. PHP.Parser.prototype.T_PROTECTED = 346;
  2894. PHP.Parser.prototype.T_PUBLIC = 347;
  2895. PHP.Parser.prototype.T_VAR = 348;
  2896. PHP.Parser.prototype.T_UNSET = 349;
  2897. PHP.Parser.prototype.T_ISSET = 350;
  2898. PHP.Parser.prototype.T_EMPTY = 351;
  2899. PHP.Parser.prototype.T_HALT_COMPILER = 352;
  2900. PHP.Parser.prototype.T_CLASS = 353;
  2901. PHP.Parser.prototype.T_TRAIT = 354;
  2902. PHP.Parser.prototype.T_INTERFACE = 355;
  2903. PHP.Parser.prototype.T_EXTENDS = 356;
  2904. PHP.Parser.prototype.T_IMPLEMENTS = 357;
  2905. PHP.Parser.prototype.T_OBJECT_OPERATOR = 358;
  2906. PHP.Parser.prototype.T_DOUBLE_ARROW = 359;
  2907. PHP.Parser.prototype.T_LIST = 360;
  2908. PHP.Parser.prototype.T_ARRAY = 361;
  2909. PHP.Parser.prototype.T_CALLABLE = 362;
  2910. PHP.Parser.prototype.T_CLASS_C = 363;
  2911. PHP.Parser.prototype.T_TRAIT_C = 364;
  2912. PHP.Parser.prototype.T_METHOD_C = 365;
  2913. PHP.Parser.prototype.T_FUNC_C = 366;
  2914. PHP.Parser.prototype.T_LINE = 367;
  2915. PHP.Parser.prototype.T_FILE = 368;
  2916. PHP.Parser.prototype.T_COMMENT = 369;
  2917. PHP.Parser.prototype.T_DOC_COMMENT = 370;
  2918. PHP.Parser.prototype.T_OPEN_TAG = 371;
  2919. PHP.Parser.prototype.T_OPEN_TAG_WITH_ECHO = 372;
  2920. PHP.Parser.prototype.T_CLOSE_TAG = 373;
  2921. PHP.Parser.prototype.T_WHITESPACE = 374;
  2922. PHP.Parser.prototype.T_START_HEREDOC = 375;
  2923. PHP.Parser.prototype.T_END_HEREDOC = 376;
  2924. PHP.Parser.prototype.T_DOLLAR_OPEN_CURLY_BRACES = 377;
  2925. PHP.Parser.prototype.T_CURLY_OPEN = 378;
  2926. PHP.Parser.prototype.T_PAAMAYIM_NEKUDOTAYIM = 379;
  2927. PHP.Parser.prototype.T_NAMESPACE = 380;
  2928. PHP.Parser.prototype.T_NS_C = 381;
  2929. PHP.Parser.prototype.T_DIR = 382;
  2930. PHP.Parser.prototype.T_NS_SEPARATOR = 383;
  2931. PHP.Parser.prototype.terminals = [
  2932. "$EOF",
  2933. "error",
  2934. "T_INCLUDE",
  2935. "T_INCLUDE_ONCE",
  2936. "T_EVAL",
  2937. "T_REQUIRE",
  2938. "T_REQUIRE_ONCE",
  2939. "','",
  2940. "T_LOGICAL_OR",
  2941. "T_LOGICAL_XOR",
  2942. "T_LOGICAL_AND",
  2943. "T_PRINT",
  2944. "'='",
  2945. "T_PLUS_EQUAL",
  2946. "T_MINUS_EQUAL",
  2947. "T_MUL_EQUAL",
  2948. "T_DIV_EQUAL",
  2949. "T_CONCAT_EQUAL",
  2950. "T_MOD_EQUAL",
  2951. "T_AND_EQUAL",
  2952. "T_OR_EQUAL",
  2953. "T_XOR_EQUAL",
  2954. "T_SL_EQUAL",
  2955. "T_SR_EQUAL",
  2956. "'?'",
  2957. "':'",
  2958. "T_BOOLEAN_OR",
  2959. "T_BOOLEAN_AND",
  2960. "'|'",
  2961. "'^'",
  2962. "'&'",
  2963. "T_IS_EQUAL",
  2964. "T_IS_NOT_EQUAL",
  2965. "T_IS_IDENTICAL",
  2966. "T_IS_NOT_IDENTICAL",
  2967. "'<'",
  2968. "T_IS_SMALLER_OR_EQUAL",
  2969. "'>'",
  2970. "T_IS_GREATER_OR_EQUAL",
  2971. "T_SL",
  2972. "T_SR",
  2973. "'+'",
  2974. "'-'",
  2975. "'.'",
  2976. "'*'",
  2977. "'/'",
  2978. "'%'",
  2979. "'!'",
  2980. "T_INSTANCEOF",
  2981. "'~'",
  2982. "T_INC",
  2983. "T_DEC",
  2984. "T_INT_CAST",
  2985. "T_DOUBLE_CAST",
  2986. "T_STRING_CAST",
  2987. "T_ARRAY_CAST",
  2988. "T_OBJECT_CAST",
  2989. "T_BOOL_CAST",
  2990. "T_UNSET_CAST",
  2991. "'@'",
  2992. "'['",
  2993. "T_NEW",
  2994. "T_CLONE",
  2995. "T_EXIT",
  2996. "T_IF",
  2997. "T_ELSEIF",
  2998. "T_ELSE",
  2999. "T_ENDIF",
  3000. "T_LNUMBER",
  3001. "T_DNUMBER",
  3002. "T_STRING",
  3003. "T_STRING_VARNAME",
  3004. "T_VARIABLE",
  3005. "T_NUM_STRING",
  3006. "T_INLINE_HTML",
  3007. "T_ENCAPSED_AND_WHITESPACE",
  3008. "T_CONSTANT_ENCAPSED_STRING",
  3009. "T_ECHO",
  3010. "T_DO",
  3011. "T_WHILE",
  3012. "T_ENDWHILE",
  3013. "T_FOR",
  3014. "T_ENDFOR",
  3015. "T_FOREACH",
  3016. "T_ENDFOREACH",
  3017. "T_DECLARE",
  3018. "T_ENDDECLARE",
  3019. "T_AS",
  3020. "T_SWITCH",
  3021. "T_ENDSWITCH",
  3022. "T_CASE",
  3023. "T_DEFAULT",
  3024. "T_BREAK",
  3025. "T_CONTINUE",
  3026. "T_GOTO",
  3027. "T_FUNCTION",
  3028. "T_CONST",
  3029. "T_RETURN",
  3030. "T_TRY",
  3031. "T_CATCH",
  3032. "T_THROW",
  3033. "T_USE",
  3034. "T_INSTEADOF",
  3035. "T_GLOBAL",
  3036. "T_STATIC",
  3037. "T_ABSTRACT",
  3038. "T_FINAL",
  3039. "T_PRIVATE",
  3040. "T_PROTECTED",
  3041. "T_PUBLIC",
  3042. "T_VAR",
  3043. "T_UNSET",
  3044. "T_ISSET",
  3045. "T_EMPTY",
  3046. "T_HALT_COMPILER",
  3047. "T_CLASS",
  3048. "T_TRAIT",
  3049. "T_INTERFACE",
  3050. "T_EXTENDS",
  3051. "T_IMPLEMENTS",
  3052. "T_OBJECT_OPERATOR",
  3053. "T_DOUBLE_ARROW",
  3054. "T_LIST",
  3055. "T_ARRAY",
  3056. "T_CALLABLE",
  3057. "T_CLASS_C",
  3058. "T_TRAIT_C",
  3059. "T_METHOD_C",
  3060. "T_FUNC_C",
  3061. "T_LINE",
  3062. "T_FILE",
  3063. "T_START_HEREDOC",
  3064. "T_END_HEREDOC",
  3065. "T_DOLLAR_OPEN_CURLY_BRACES",
  3066. "T_CURLY_OPEN",
  3067. "T_PAAMAYIM_NEKUDOTAYIM",
  3068. "T_NAMESPACE",
  3069. "T_NS_C",
  3070. "T_DIR",
  3071. "T_NS_SEPARATOR",
  3072. "';'",
  3073. "'{'",
  3074. "'}'",
  3075. "'('",
  3076. "')'",
  3077. "'$'",
  3078. "']'",
  3079. "'`'",
  3080. "'\"'"
  3081. , "???"
  3082. ];
  3083. PHP.Parser.prototype.translate = [
  3084. 0, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3085. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3086. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3087. 149, 149, 149, 47, 148, 149, 145, 46, 30, 149,
  3088. 143, 144, 44, 41, 7, 42, 43, 45, 149, 149,
  3089. 149, 149, 149, 149, 149, 149, 149, 149, 25, 140,
  3090. 35, 12, 37, 24, 59, 149, 149, 149, 149, 149,
  3091. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3092. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3093. 149, 60, 149, 146, 29, 149, 147, 149, 149, 149,
  3094. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3095. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3096. 149, 149, 149, 141, 28, 142, 49, 149, 149, 149,
  3097. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3098. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3099. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3100. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3101. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3102. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3103. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3104. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3105. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3106. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3107. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3108. 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
  3109. 149, 149, 149, 149, 149, 149, 1, 2, 3, 4,
  3110. 5, 6, 8, 9, 10, 11, 13, 14, 15, 16,
  3111. 17, 18, 19, 20, 21, 22, 23, 26, 27, 31,
  3112. 32, 33, 34, 36, 38, 39, 40, 48, 50, 51,
  3113. 52, 53, 54, 55, 56, 57, 58, 61, 62, 63,
  3114. 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
  3115. 74, 149, 149, 75, 76, 77, 78, 79, 80, 81,
  3116. 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
  3117. 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
  3118. 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
  3119. 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
  3120. 122, 123, 124, 125, 126, 127, 128, 129, 130, 149,
  3121. 149, 149, 149, 149, 149, 131, 132, 133, 134, 135,
  3122. 136, 137, 138, 139
  3123. ];
  3124. PHP.Parser.prototype.yyaction = [
  3125. 61, 62, 363, 63, 64,-32766,-32766,-32766, 509, 65,
  3126. 708, 709, 710, 707, 706, 705,-32766,-32766,-32766,-32766,
  3127. -32766,-32766, 132,-32766,-32766,-32766,-32766,-32766,-32767,-32767,
  3128. -32767,-32767,-32766, 335,-32766,-32766,-32766,-32766,-32766, 66,
  3129. 67, 351, 663, 664, 40, 68, 548, 69, 232, 233,
  3130. 70, 71, 72, 73, 74, 75, 76, 77, 30, 246,
  3131. 78, 336, 364, -112, 0, 469, 833, 834, 365, 641,
  3132. 890, 436, 590, 41, 835, 53, 27, 366, 294, 367,
  3133. 687, 368, 921, 369, 923, 922, 370,-32766,-32766,-32766,
  3134. 42, 43, 371, 339, 126, 44, 372, 337, 79, 297,
  3135. 349, 292, 293,-32766, 918,-32766,-32766, 373, 374, 375,
  3136. 376, 377, 391, 199, 361, 338, 573, 613, 378, 379,
  3137. 380, 381, 845, 839, 840, 841, 842, 836, 837, 253,
  3138. -32766, 87, 88, 89, 391, 843, 838, 338, 597, 519,
  3139. 128, 80, 129, 273, 332, 257, 261, 47, 673, 90,
  3140. 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
  3141. 101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
  3142. 799, 247, 884, 108, 109, 110, 226, 247, 21,-32766,
  3143. 310,-32766,-32766,-32766, 642, 548,-32766,-32766,-32766,-32766,
  3144. 56, 353,-32766,-32766,-32766, 55,-32766,-32766,-32766,-32766,
  3145. -32766, 58,-32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766,
  3146. -32766, 557,-32766,-32766, 518,-32766, 548, 890,-32766, 390,
  3147. -32766, 228, 252,-32766,-32766,-32766,-32766,-32766, 275,-32766,
  3148. 234,-32766, 587, 588,-32766,-32766,-32766,-32766,-32766,-32766,
  3149. -32766, 46, 236,-32766,-32766, 281,-32766, 682, 348,-32766,
  3150. 390,-32766, 346, 333, 521,-32766,-32766,-32766, 271, 911,
  3151. 262, 237, 446, 911,-32766, 894, 59, 700, 358, 135,
  3152. 548, 123, 538, 35,-32766, 333, 122,-32766,-32766,-32766,
  3153. 271,-32766, 124,-32766, 692,-32766,-32766,-32766,-32766, 700,
  3154. 273, 22,-32766,-32766,-32766,-32766, 239,-32766,-32766, 612,
  3155. -32766, 548, 134,-32766, 390,-32766, 462, 354,-32766,-32766,
  3156. -32766,-32766,-32766, 227,-32766, 238,-32766, 845, 542,-32766,
  3157. 856, 611, 200,-32766,-32766,-32766, 259, 280,-32766,-32766,
  3158. 201,-32766, 855, 129,-32766, 390, 130, 202, 333, 206,
  3159. -32766,-32766,-32766, 271,-32766,-32766,-32766, 125, 601,-32766,
  3160. 136, 299, 700, 489, 28, 548, 105, 106, 107,-32766,
  3161. 498, 499,-32766,-32766,-32766, 207,-32766, 133,-32766, 525,
  3162. -32766,-32766,-32766,-32766, 663, 664, 527,-32766,-32766,-32766,
  3163. -32766, 528,-32766,-32766, 610,-32766, 548, 427,-32766, 390,
  3164. -32766, 532, 539,-32766,-32766,-32766,-32766,-32766, 240,-32766,
  3165. 247,-32766, 697, 543,-32766, 554, 523, 608,-32766,-32766,
  3166. -32766, 686, 535,-32766,-32766, 54,-32766, 57, 60,-32766,
  3167. 390, 246, -155, 278, 345,-32766,-32766,-32766, 506, 347,
  3168. -152, 471, 402, 403,-32766, 405, 404, 272, 493, 416,
  3169. 548, 318, 417, 505,-32766, 517, 548,-32766,-32766,-32766,
  3170. 549,-32766, 562,-32766, 916,-32766,-32766,-32766,-32766, 564,
  3171. 826, 848,-32766,-32766,-32766,-32766, 694,-32766,-32766, 485,
  3172. -32766, 548, 487,-32766, 390,-32766, 504, 802,-32766,-32766,
  3173. -32766,-32766,-32766, 279,-32766, 911,-32766, 502, 492,-32766,
  3174. 413, 483, 269,-32766,-32766,-32766, 243, 337,-32766,-32766,
  3175. 418,-32766, 454, 229,-32766, 390, 274, 373, 374, 344,
  3176. -32766,-32766,-32766, 360, 614,-32766, 573, 613, 378, 379,
  3177. -274, 548, 615, -332, 844,-32766, 258, 51,-32766,-32766,
  3178. -32766, 270,-32766, 346,-32766, 52,-32766, 260, 0,-32766,
  3179. -333,-32766,-32766,-32766,-32766,-32766,-32766, 205,-32766,-32766,
  3180. 49,-32766, 548, 424,-32766, 390,-32766, -266, 264,-32766,
  3181. -32766,-32766,-32766,-32766, 409,-32766, 343,-32766, 265, 312,
  3182. -32766, 470, 513, -275,-32766,-32766,-32766, 920, 337,-32766,
  3183. -32766, 530,-32766, 531, 600,-32766, 390, 592, 373, 374,
  3184. 578, 581,-32766,-32766, 644, 629,-32766, 573, 613, 378,
  3185. 379, 635, 548, 636, 576, 627,-32766, 625, 693,-32766,
  3186. -32766,-32766, 691,-32766, 591,-32766, 582,-32766, 203, 204,
  3187. -32766, 584, 583,-32766,-32766,-32766,-32766, 586, 599,-32766,
  3188. -32766, 589,-32766, 690, 558,-32766, 390, 197, 683, 919,
  3189. 86, 520, 522,-32766, 524, 833, 834, 529, 533,-32766,
  3190. 534, 537, 541, 835, 48, 111, 112, 113, 114, 115,
  3191. 116, 117, 118, 119, 120, 121, 127, 31, 633, 337,
  3192. 330, 634, 585,-32766, 32, 291, 337, 330, 478, 373,
  3193. 374, 917, 291, 891, 889, 875, 373, 374, 553, 613,
  3194. 378, 379, 737, 739, 887, 553, 613, 378, 379, 824,
  3195. 451, 675, 839, 840, 841, 842, 836, 837, 320, 895,
  3196. 277, 885, 23, 33, 843, 838, 556, 277, 337, 330,
  3197. -32766, 34,-32766, 555, 291, 36, 37, 38, 373, 374,
  3198. 39, 45, 50, 81, 82, 83, 84, 553, 613, 378,
  3199. 379,-32767,-32767,-32767,-32767, 103, 104, 105, 106, 107,
  3200. 337, 85, 131, 137, 337, 138, 198, 224, 225, 277,
  3201. 373, 374, -332, 230, 373, 374, 24, 337, 231, 573,
  3202. 613, 378, 379, 573, 613, 378, 379, 373, 374, 235,
  3203. 248, 249, 250, 337, 251, 0, 573, 613, 378, 379,
  3204. 276, 329, 331, 373, 374,-32766, 337, 574, 490, 792,
  3205. 337, 609, 573, 613, 378, 379, 373, 374, 25, 300,
  3206. 373, 374, 319, 337, 795, 573, 613, 378, 379, 573,
  3207. 613, 378, 379, 373, 374, 516, 355, 359, 445, 482,
  3208. 796, 507, 573, 613, 378, 379, 508, 548, 337, 890,
  3209. 775, 791, 337, 604, 803, 808, 806, 698, 373, 374,
  3210. 888, 807, 373, 374,-32766,-32766,-32766, 573, 613, 378,
  3211. 379, 573, 613, 378, 379, 873, 832, 804, 872, 851,
  3212. -32766, 809,-32766,-32766,-32766,-32766, 805, 20, 26, 29,
  3213. 298, 480, 515, 770, 778, 827, 457, 0, 900, 455,
  3214. 774, 0, 0, 0, 874, 870, 886, 823, 915, 852,
  3215. 869, 488, 0, 391, 793, 0, 338, 0, 0, 0,
  3216. 340, 0, 273
  3217. ];
  3218. PHP.Parser.prototype.yycheck = [
  3219. 2, 3, 4, 5, 6, 8, 9, 10, 70, 11,
  3220. 104, 105, 106, 107, 108, 109, 8, 9, 10, 8,
  3221. 9, 24, 60, 26, 27, 28, 29, 30, 31, 32,
  3222. 33, 34, 24, 7, 26, 27, 28, 29, 30, 41,
  3223. 42, 7, 123, 124, 7, 47, 70, 49, 50, 51,
  3224. 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
  3225. 62, 63, 64, 144, 0, 75, 68, 69, 70, 25,
  3226. 72, 70, 74, 7, 76, 77, 78, 79, 7, 81,
  3227. 142, 83, 70, 85, 72, 73, 88, 8, 9, 10,
  3228. 92, 93, 94, 95, 7, 97, 98, 95, 100, 7,
  3229. 7, 103, 104, 24, 142, 26, 27, 105, 106, 111,
  3230. 112, 113, 136, 7, 7, 139, 114, 115, 116, 117,
  3231. 122, 123, 132, 125, 126, 127, 128, 129, 130, 131,
  3232. 8, 8, 9, 10, 136, 137, 138, 139, 140, 141,
  3233. 25, 143, 141, 145, 142, 147, 148, 24, 72, 26,
  3234. 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
  3235. 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
  3236. 144, 48, 72, 44, 45, 46, 30, 48, 144, 64,
  3237. 72, 8, 9, 10, 140, 70, 8, 9, 10, 74,
  3238. 60, 25, 77, 78, 79, 60, 81, 24, 83, 26,
  3239. 85, 60, 24, 88, 26, 27, 28, 92, 93, 94,
  3240. 64, 140, 97, 98, 70, 100, 70, 72, 103, 104,
  3241. 74, 145, 7, 77, 78, 79, 111, 81, 7, 83,
  3242. 30, 85, 140, 140, 88, 8, 9, 10, 92, 93,
  3243. 94, 133, 134, 97, 98, 145, 100, 140, 7, 103,
  3244. 104, 24, 139, 96, 141, 140, 141, 111, 101, 75,
  3245. 75, 30, 70, 75, 64, 70, 60, 110, 121, 12,
  3246. 70, 141, 25, 143, 74, 96, 141, 77, 78, 79,
  3247. 101, 81, 141, 83, 140, 85, 140, 141, 88, 110,
  3248. 145, 144, 92, 93, 94, 64, 7, 97, 98, 142,
  3249. 100, 70, 141, 103, 104, 74, 145, 141, 77, 78,
  3250. 79, 111, 81, 7, 83, 30, 85, 132, 25, 88,
  3251. 132, 142, 12, 92, 93, 94, 120, 60, 97, 98,
  3252. 12, 100, 148, 141, 103, 104, 141, 12, 96, 12,
  3253. 140, 141, 111, 101, 8, 9, 10, 141, 25, 64,
  3254. 90, 91, 110, 65, 66, 70, 41, 42, 43, 74,
  3255. 65, 66, 77, 78, 79, 12, 81, 25, 83, 25,
  3256. 85, 140, 141, 88, 123, 124, 25, 92, 93, 94,
  3257. 64, 25, 97, 98, 142, 100, 70, 120, 103, 104,
  3258. 74, 25, 25, 77, 78, 79, 111, 81, 30, 83,
  3259. 48, 85, 140, 141, 88, 140, 141, 30, 92, 93,
  3260. 94, 140, 141, 97, 98, 60, 100, 60, 60, 103,
  3261. 104, 61, 72, 75, 70, 140, 141, 111, 67, 70,
  3262. 87, 99, 70, 70, 64, 70, 72, 102, 89, 70,
  3263. 70, 71, 70, 70, 74, 70, 70, 77, 78, 79,
  3264. 70, 81, 70, 83, 70, 85, 140, 141, 88, 70,
  3265. 144, 70, 92, 93, 94, 64, 70, 97, 98, 72,
  3266. 100, 70, 72, 103, 104, 74, 72, 72, 77, 78,
  3267. 79, 111, 81, 75, 83, 75, 85, 89, 86, 88,
  3268. 79, 101, 118, 92, 93, 94, 87, 95, 97, 98,
  3269. 87, 100, 87, 87, 103, 104, 118, 105, 106, 95,
  3270. 140, 141, 111, 95, 115, 64, 114, 115, 116, 117,
  3271. 135, 70, 115, 120, 132, 74, 120, 140, 77, 78,
  3272. 79, 119, 81, 139, 83, 140, 85, 120, -1, 88,
  3273. 120, 140, 141, 92, 93, 94, 64, 121, 97, 98,
  3274. 121, 100, 70, 122, 103, 104, 74, 135, 135, 77,
  3275. 78, 79, 111, 81, 139, 83, 139, 85, 135, 135,
  3276. 88, 135, 135, 135, 92, 93, 94, 142, 95, 97,
  3277. 98, 140, 100, 140, 140, 103, 104, 140, 105, 106,
  3278. 140, 140, 141, 111, 140, 140, 64, 114, 115, 116,
  3279. 117, 140, 70, 140, 140, 140, 74, 140, 140, 77,
  3280. 78, 79, 140, 81, 140, 83, 140, 85, 41, 42,
  3281. 88, 140, 140, 141, 92, 93, 94, 140, 140, 97,
  3282. 98, 140, 100, 140, 140, 103, 104, 60, 140, 142,
  3283. 141, 141, 141, 111, 141, 68, 69, 141, 141, 72,
  3284. 141, 141, 141, 76, 12, 13, 14, 15, 16, 17,
  3285. 18, 19, 20, 21, 22, 23, 141, 143, 142, 95,
  3286. 96, 142, 140, 141, 143, 101, 95, 96, 142, 105,
  3287. 106, 142, 101, 142, 142, 142, 105, 106, 114, 115,
  3288. 116, 117, 50, 51, 142, 114, 115, 116, 117, 142,
  3289. 123, 142, 125, 126, 127, 128, 129, 130, 131, 142,
  3290. 136, 142, 144, 143, 137, 138, 142, 136, 95, 96,
  3291. 143, 143, 145, 142, 101, 143, 143, 143, 105, 106,
  3292. 143, 143, 143, 143, 143, 143, 143, 114, 115, 116,
  3293. 117, 35, 36, 37, 38, 39, 40, 41, 42, 43,
  3294. 95, 143, 143, 143, 95, 143, 143, 143, 143, 136,
  3295. 105, 106, 120, 143, 105, 106, 144, 95, 143, 114,
  3296. 115, 116, 117, 114, 115, 116, 117, 105, 106, 143,
  3297. 143, 143, 143, 95, 143, -1, 114, 115, 116, 117,
  3298. 143, 143, 143, 105, 106, 143, 95, 142, 80, 146,
  3299. 95, 142, 114, 115, 116, 117, 105, 106, 144, 144,
  3300. 105, 106, 144, 95, 142, 114, 115, 116, 117, 114,
  3301. 115, 116, 117, 105, 106, 82, 144, 144, 144, 144,
  3302. 142, 84, 114, 115, 116, 117, 144, 70, 95, 72,
  3303. 144, 144, 95, 142, 144, 146, 144, 142, 105, 106,
  3304. 146, 144, 105, 106, 8, 9, 10, 114, 115, 116,
  3305. 117, 114, 115, 116, 117, 144, 144, 144, 144, 144,
  3306. 24, 104, 26, 27, 28, 29, 144, 144, 144, 144,
  3307. 144, 144, 144, 144, 144, 144, 144, -1, 144, 144,
  3308. 144, -1, -1, -1, 146, 146, 146, 146, 146, 146,
  3309. 146, 146, -1, 136, 147, -1, 139, -1, -1, -1,
  3310. 143, -1, 145
  3311. ];
  3312. PHP.Parser.prototype.yybase = [
  3313. 0, 574, 581, 623, 655, 2, 718, 402, 747, 659,
  3314. 672, 688, 743, 701, 705, 483, 483, 483, 483, 483,
  3315. 351, 356, 366, 366, 367, 366, 344, -2, -2, -2,
  3316. 200, 200, 231, 231, 231, 231, 231, 231, 231, 231,
  3317. 200, 231, 451, 482, 532, 316, 370, 115, 146, 285,
  3318. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  3319. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  3320. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  3321. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  3322. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  3323. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  3324. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  3325. 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
  3326. 401, 401, 401, 401, 401, 401, 401, 401, 401, 44,
  3327. 474, 429, 476, 481, 487, 488, 739, 740, 741, 734,
  3328. 733, 416, 736, 539, 541, 342, 542, 543, 552, 557,
  3329. 559, 536, 567, 737, 755, 569, 735, 738, 123, 123,
  3330. 123, 123, 123, 123, 123, 123, 123, 122, 11, 336,
  3331. 336, 336, 336, 336, 336, 336, 336, 336, 336, 336,
  3332. 336, 336, 336, 336, 227, 227, 173, 577, 577, 577,
  3333. 577, 577, 577, 577, 577, 577, 577, 577, 79, 178,
  3334. 846, 8, -3, -3, -3, -3, 642, 706, 706, 706,
  3335. 706, 157, 179, 242, 431, 431, 360, 431, 525, 368,
  3336. 767, 767, 767, 767, 767, 767, 767, 767, 767, 767,
  3337. 767, 767, 350, 375, 315, 315, 652, 652, -81, -81,
  3338. -81, -81, 251, 185, 188, 184, -62, 348, 195, 195,
  3339. 195, 408, 392, 410, 1, 192, 129, 129, 129, -24,
  3340. -24, -24, -24, 499, -24, -24, -24, 113, 108, 108,
  3341. 12, 161, 349, 526, 271, 398, 529, 438, 130, 206,
  3342. 265, 427, 76, 414, 427, 288, 295, 76, 166, 44,
  3343. 262, 422, 141, 491, 372, 494, 413, 71, 92, 93,
  3344. 267, 135, 100, 34, 415, 745, 746, 742, -38, 420,
  3345. -10, 135, 147, 744, 498, 107, 26, 493, 144, 377,
  3346. 363, 369, 332, 363, 400, 377, 588, 377, 376, 377,
  3347. 360, 37, 582, 376, 377, 374, 376, 388, 363, 364,
  3348. 412, 369, 377, 441, 443, 390, 106, 332, 377, 390,
  3349. 377, 400, 64, 590, 591, 323, 592, 589, 593, 649,
  3350. 608, 362, 500, 399, 407, 620, 625, 636, 365, 354,
  3351. 614, 524, 425, 359, 355, 423, 570, 578, 357, 406,
  3352. 414, 394, 352, 403, 531, 433, 403, 653, 434, 385,
  3353. 417, 411, 444, 310, 318, 501, 425, 668, 757, 380,
  3354. 637, 684, 403, 609, 387, 87, 325, 638, 382, 403,
  3355. 639, 403, 696, 503, 615, 403, 697, 384, 435, 425,
  3356. 352, 352, 352, 700, 66, 699, 583, 702, 707, 704,
  3357. 748, 721, 749, 584, 750, 358, 583, 722, 751, 682,
  3358. 215, 613, 422, 436, 389, 447, 221, 257, 752, 403,
  3359. 403, 506, 499, 403, 395, 685, 397, 426, 753, 392,
  3360. 391, 647, 683, 403, 418, 754, 221, 723, 587, 724,
  3361. 450, 568, 507, 648, 509, 327, 725, 353, 497, 610,
  3362. 454, 622, 455, 461, 404, 510, 373, 732, 612, 247,
  3363. 361, 664, 463, 405, 692, 641, 464, 465, 511, 343,
  3364. 437, 335, 409, 396, 665, 293, 467, 468, 472, 0,
  3365. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3366. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3367. 0, 0, 0, 0, 0, -2, -2, -2, -2, -2,
  3368. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3369. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3370. -2, 0, 0, 0, -2, -2, -2, -2, -2, -2,
  3371. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3372. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3373. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3374. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3375. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3376. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3377. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3378. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3379. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3380. -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
  3381. -2, -2, -2, 123, 123, 123, 123, 123, 123, 123,
  3382. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  3383. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  3384. 123, 123, 0, 0, 0, 0, 0, 0, 0, 0,
  3385. 0, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  3386. 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
  3387. 123, 767, 767, 767, 767, 767, 767, 767, 767, 767,
  3388. 767, 767, 123, 123, 123, 123, 123, 123, 123, 123,
  3389. 0, 129, 129, 129, 129, -94, -94, -94, 767, 767,
  3390. 767, 767, 767, 767, 0, 0, 0, 0, 0, 0,
  3391. 0, 0, 0, 0, 0, 0, -94, -94, 129, 129,
  3392. 767, 767, -24, -24, -24, -24, -24, 108, 108, 108,
  3393. -24, 108, 145, 145, 145, 108, 108, 108, 100, 100,
  3394. 0, 0, 0, 0, 0, 0, 0, 145, 0, 0,
  3395. 0, 376, 0, 0, 0, 145, 260, 260, 221, 260,
  3396. 260, 135, 0, 0, 425, 376, 0, 364, 376, 0,
  3397. 0, 0, 0, 0, 0, 531, 0, 87, 637, 241,
  3398. 425, 0, 0, 0, 0, 0, 0, 0, 425, 289,
  3399. 289, 306, 0, 358, 0, 0, 0, 306, 241, 0,
  3400. 0, 221
  3401. ];
  3402. PHP.Parser.prototype.yydefault = [
  3403. 3,32767,32767, 1,32767,32767,32767,32767,32767,32767,
  3404. 32767,32767,32767,32767,32767, 104, 96, 110, 95, 106,
  3405. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3406. 358, 358, 122, 122, 122, 122, 122, 122, 122, 122,
  3407. 316,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3408. 173, 173, 173,32767, 348, 348, 348, 348, 348, 348,
  3409. 348,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3410. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3411. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3412. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3413. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3414. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3415. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3416. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3417. 32767, 363,32767,32767,32767,32767,32767,32767,32767,32767,
  3418. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3419. 32767,32767,32767,32767,32767,32767,32767,32767, 232, 233,
  3420. 235, 236, 172, 125, 349, 362, 171, 199, 201, 250,
  3421. 200, 177, 182, 183, 184, 185, 186, 187, 188, 189,
  3422. 190, 191, 192, 176, 229, 228, 197, 313, 313, 316,
  3423. 32767,32767,32767,32767,32767,32767,32767,32767, 198, 202,
  3424. 204, 203, 219, 220, 217, 218, 175, 221, 222, 223,
  3425. 224, 157, 157, 157, 357, 357,32767, 357,32767,32767,
  3426. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3427. 32767,32767, 158,32767, 211, 212, 276, 276, 117, 117,
  3428. 117, 117, 117,32767,32767,32767,32767, 284,32767,32767,
  3429. 32767,32767,32767, 286,32767,32767, 206, 207, 205,32767,
  3430. 32767,32767,32767,32767,32767,32767,32767,32767, 285,32767,
  3431. 32767,32767,32767,32767,32767,32767,32767, 334, 321, 272,
  3432. 32767,32767,32767, 265,32767, 107, 109,32767,32767,32767,
  3433. 32767, 302, 339,32767,32767,32767, 17,32767,32767,32767,
  3434. 370, 334,32767,32767, 19,32767,32767,32767,32767, 227,
  3435. 32767, 338, 332,32767,32767,32767,32767,32767,32767, 63,
  3436. 32767,32767,32767,32767,32767, 63, 281, 63,32767, 63,
  3437. 32767, 315, 287,32767, 63, 74,32767, 72,32767,32767,
  3438. 76,32767, 63, 93, 93, 254, 315, 54, 63, 254,
  3439. 63,32767,32767,32767,32767, 4,32767,32767,32767,32767,
  3440. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3441. 32767,32767, 267,32767, 323,32767, 337, 336, 324,32767,
  3442. 265,32767, 215, 194, 266,32767, 196,32767,32767, 270,
  3443. 273,32767,32767,32767, 134,32767, 268, 180,32767,32767,
  3444. 32767,32767, 365,32767,32767, 174,32767,32767,32767, 130,
  3445. 32767, 61, 332,32767,32767, 355,32767,32767, 332, 269,
  3446. 208, 209, 210,32767, 121,32767, 310,32767,32767,32767,
  3447. 32767,32767,32767, 327,32767, 333,32767,32767,32767,32767,
  3448. 111,32767, 302,32767,32767,32767, 75,32767,32767, 178,
  3449. 126,32767,32767, 364,32767,32767,32767, 320,32767,32767,
  3450. 32767,32767,32767, 62,32767,32767, 77,32767,32767,32767,
  3451. 32767, 332,32767,32767,32767, 115,32767, 169,32767,32767,
  3452. 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
  3453. 32767, 332,32767,32767,32767,32767,32767,32767,32767, 4,
  3454. 32767, 151,32767,32767,32767,32767,32767,32767,32767, 25,
  3455. 25, 3, 137, 3, 137, 25, 101, 25, 25, 137,
  3456. 93, 93, 25, 25, 25, 144, 25, 25, 25, 25,
  3457. 25, 25, 25, 25
  3458. ];
  3459. PHP.Parser.prototype.yygoto = [
  3460. 141, 141, 173, 173, 173, 173, 173, 173, 173, 173,
  3461. 141, 173, 142, 143, 144, 148, 153, 155, 181, 175,
  3462. 172, 172, 172, 172, 174, 174, 174, 174, 174, 174,
  3463. 174, 168, 169, 170, 171, 179, 757, 758, 392, 760,
  3464. 781, 782, 783, 784, 785, 786, 787, 789, 725, 145,
  3465. 146, 147, 149, 150, 151, 152, 154, 177, 178, 180,
  3466. 196, 208, 209, 210, 211, 212, 213, 214, 215, 217,
  3467. 218, 219, 220, 244, 245, 266, 267, 268, 430, 431,
  3468. 432, 182, 183, 184, 185, 186, 187, 188, 189, 190,
  3469. 191, 192, 156, 157, 158, 159, 176, 160, 194, 161,
  3470. 162, 163, 164, 195, 165, 193, 139, 166, 167, 452,
  3471. 452, 452, 452, 452, 452, 452, 452, 452, 452, 452,
  3472. 453, 453, 453, 453, 453, 453, 453, 453, 453, 453,
  3473. 453, 551, 551, 551, 464, 491, 394, 394, 394, 394,
  3474. 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
  3475. 394, 394, 394, 394, 407, 552, 552, 552, 810, 810,
  3476. 662, 662, 662, 662, 662, 594, 283, 595, 510, 399,
  3477. 399, 567, 679, 632, 849, 850, 863, 660, 714, 426,
  3478. 222, 622, 622, 622, 622, 223, 617, 623, 494, 395,
  3479. 395, 395, 395, 395, 395, 395, 395, 395, 395, 395,
  3480. 395, 395, 395, 395, 395, 395, 395, 465, 472, 514,
  3481. 904, 398, 398, 425, 425, 459, 425, 419, 322, 421,
  3482. 421, 393, 396, 412, 422, 428, 460, 463, 473, 481,
  3483. 501, 5, 476, 284, 327, 1, 15, 2, 6, 7,
  3484. 550, 550, 550, 8, 9, 10, 668, 16, 11, 17,
  3485. 12, 18, 13, 19, 14, 704, 328, 881, 881, 643,
  3486. 628, 626, 626, 624, 626, 526, 401, 652, 647, 847,
  3487. 847, 847, 847, 847, 847, 847, 847, 847, 847, 847,
  3488. 437, 438, 441, 447, 477, 479, 497, 290, 910, 910,
  3489. 400, 400, 486, 880, 880, 263, 913, 910, 303, 255,
  3490. 723, 306, 822, 821, 306, 896, 896, 896, 861, 304,
  3491. 323, 410, 913, 913, 897, 316, 420, 769, 658, 559,
  3492. 879, 671, 536, 324, 466, 565, 311, 311, 311, 801,
  3493. 241, 676, 496, 439, 440, 442, 444, 448, 475, 631,
  3494. 858, 311, 285, 286, 603, 495, 712, 0, 406, 321,
  3495. 0, 0, 0, 314, 0, 0, 429, 0, 0, 0,
  3496. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3497. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3498. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3499. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3500. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3501. 0, 0, 0, 0, 411
  3502. ];
  3503. PHP.Parser.prototype.yygcheck = [
  3504. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3505. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3506. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3507. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3508. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3509. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3510. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3511. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3512. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3513. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3514. 15, 15, 15, 15, 15, 15, 15, 15, 15, 35,
  3515. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  3516. 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
  3517. 86, 6, 6, 6, 21, 21, 35, 35, 35, 35,
  3518. 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
  3519. 35, 35, 35, 35, 71, 7, 7, 7, 35, 35,
  3520. 35, 35, 35, 35, 35, 29, 44, 29, 35, 86,
  3521. 86, 12, 12, 12, 12, 12, 12, 12, 12, 75,
  3522. 40, 35, 35, 35, 35, 40, 35, 35, 35, 82,
  3523. 82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
  3524. 82, 82, 82, 82, 82, 82, 82, 36, 36, 36,
  3525. 104, 82, 82, 28, 28, 28, 28, 28, 28, 28,
  3526. 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
  3527. 28, 13, 42, 42, 42, 2, 13, 2, 13, 13,
  3528. 5, 5, 5, 13, 13, 13, 54, 13, 13, 13,
  3529. 13, 13, 13, 13, 13, 67, 67, 83, 83, 5,
  3530. 5, 5, 5, 5, 5, 5, 5, 5, 5, 93,
  3531. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  3532. 52, 52, 52, 52, 52, 52, 52, 4, 105, 105,
  3533. 89, 89, 94, 84, 84, 92, 105, 105, 26, 92,
  3534. 71, 4, 91, 91, 4, 84, 84, 84, 97, 30,
  3535. 70, 30, 105, 105, 102, 27, 30, 72, 50, 10,
  3536. 84, 55, 46, 9, 30, 11, 90, 90, 90, 80,
  3537. 30, 56, 30, 85, 85, 85, 85, 85, 85, 43,
  3538. 96, 90, 44, 44, 34, 77, 69, -1, 4, 90,
  3539. -1, -1, -1, 4, -1, -1, 4, -1, -1, -1,
  3540. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  3541. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  3542. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  3543. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  3544. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  3545. -1, -1, -1, -1, 71
  3546. ];
  3547. PHP.Parser.prototype.yygbase = [
  3548. 0, 0, -286, 0, 10, 239, 130, 154, 0, -10,
  3549. 25, -23, -29, -289, 0, -30, 0, 0, 0, 0,
  3550. 0, 83, 0, 0, 0, 0, 245, 84, -11, 142,
  3551. -28, 0, 0, 0, -13, -88, -42, 0, 0, 0,
  3552. -344, 0, -38, -12, -188, 0, 23, 0, 0, 0,
  3553. 66, 0, 247, 0, 205, 24, -18, 0, 0, 0,
  3554. 0, 0, 0, 0, 0, 0, 0, 13, 0, -15,
  3555. 85, 74, 70, 0, 0, 148, 0, -14, 0, 0,
  3556. -6, 0, -35, 11, 47, 278, -77, 0, 0, 44,
  3557. 68, 43, 38, 72, 94, 0, -16, 109, 0, 0,
  3558. 0, 0, 87, 0, 170, 34, 0
  3559. ];
  3560. PHP.Parser.prototype.yygdefault = [
  3561. -32768, 362, 3, 546, 382, 570, 571, 572, 307, 305,
  3562. 560, 566, 467, 4, 568, 140, 295, 575, 296, 500,
  3563. 577, 414, 579, 580, 308, 309, 415, 315, 216, 593,
  3564. 503, 313, 596, 357, 602, 301, 449, 383, 350, 461,
  3565. 221, 423, 456, 630, 282, 638, 540, 646, 649, 450,
  3566. 657, 352, 433, 434, 667, 672, 677, 680, 334, 325,
  3567. 474, 684, 685, 256, 689, 511, 512, 703, 242, 711,
  3568. 317, 724, 342, 788, 790, 397, 408, 484, 797, 326,
  3569. 800, 384, 385, 386, 387, 435, 818, 815, 289, 866,
  3570. 287, 443, 254, 853, 468, 356, 903, 862, 288, 388,
  3571. 389, 302, 898, 341, 905, 912, 458
  3572. ];
  3573. PHP.Parser.prototype.yylhs = [
  3574. 0, 1, 2, 2, 4, 4, 3, 3, 3, 3,
  3575. 3, 3, 3, 3, 3, 8, 8, 10, 10, 10,
  3576. 10, 9, 9, 11, 13, 13, 14, 14, 14, 14,
  3577. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  3578. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  3579. 5, 5, 5, 5, 5, 5, 5, 5, 33, 33,
  3580. 34, 27, 27, 30, 30, 6, 7, 7, 7, 37,
  3581. 37, 37, 38, 38, 41, 41, 39, 39, 42, 42,
  3582. 22, 22, 29, 29, 32, 32, 31, 31, 43, 23,
  3583. 23, 23, 23, 44, 44, 45, 45, 46, 46, 20,
  3584. 20, 16, 16, 47, 18, 18, 48, 17, 17, 19,
  3585. 19, 36, 36, 49, 49, 50, 50, 51, 51, 51,
  3586. 51, 52, 52, 53, 53, 54, 54, 24, 24, 55,
  3587. 55, 55, 25, 25, 56, 56, 40, 40, 57, 57,
  3588. 57, 57, 62, 62, 63, 63, 64, 64, 64, 64,
  3589. 65, 66, 66, 61, 61, 58, 58, 60, 60, 68,
  3590. 68, 67, 67, 67, 67, 67, 67, 59, 59, 69,
  3591. 69, 26, 26, 21, 21, 15, 15, 15, 15, 15,
  3592. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3593. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3594. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3595. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3596. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3597. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3598. 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
  3599. 15, 15, 15, 71, 77, 77, 79, 79, 80, 81,
  3600. 81, 81, 81, 81, 81, 86, 86, 35, 35, 35,
  3601. 72, 72, 87, 87, 82, 82, 88, 88, 88, 88,
  3602. 88, 73, 73, 73, 76, 76, 76, 78, 78, 93,
  3603. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  3604. 93, 93, 93, 12, 12, 12, 12, 12, 12, 74,
  3605. 74, 74, 74, 94, 94, 96, 96, 95, 95, 97,
  3606. 97, 28, 28, 28, 28, 99, 99, 98, 98, 98,
  3607. 98, 98, 100, 100, 84, 84, 89, 89, 83, 83,
  3608. 101, 101, 101, 101, 90, 90, 90, 90, 85, 85,
  3609. 91, 91, 91, 70, 70, 102, 102, 102, 75, 75,
  3610. 103, 103, 104, 104, 104, 104, 92, 92, 92, 92,
  3611. 105, 105, 105, 105, 105, 105, 105, 106, 106, 106
  3612. ];
  3613. PHP.Parser.prototype.yylen = [
  3614. 1, 1, 2, 0, 1, 3, 1, 1, 1, 1,
  3615. 3, 5, 4, 3, 3, 3, 1, 1, 3, 2,
  3616. 4, 3, 1, 3, 2, 0, 1, 1, 1, 1,
  3617. 3, 7, 10, 5, 7, 9, 5, 2, 3, 2,
  3618. 3, 2, 3, 3, 3, 3, 1, 2, 5, 7,
  3619. 8, 10, 5, 1, 5, 3, 3, 2, 1, 2,
  3620. 8, 1, 3, 0, 1, 9, 7, 6, 5, 1,
  3621. 2, 2, 0, 2, 0, 2, 0, 2, 1, 3,
  3622. 1, 4, 1, 4, 1, 4, 1, 3, 3, 3,
  3623. 4, 4, 5, 0, 2, 4, 3, 1, 1, 1,
  3624. 4, 0, 2, 5, 0, 2, 6, 0, 2, 0,
  3625. 3, 1, 0, 1, 3, 3, 5, 0, 1, 1,
  3626. 1, 1, 0, 1, 3, 1, 2, 3, 1, 1,
  3627. 2, 4, 3, 1, 1, 3, 2, 0, 3, 3,
  3628. 8, 3, 1, 3, 0, 2, 4, 5, 4, 4,
  3629. 3, 1, 1, 1, 3, 1, 1, 0, 1, 1,
  3630. 2, 1, 1, 1, 1, 1, 1, 1, 3, 1,
  3631. 3, 3, 1, 0, 1, 1, 6, 3, 4, 4,
  3632. 1, 2, 3, 3, 3, 3, 3, 3, 3, 3,
  3633. 3, 3, 3, 2, 2, 2, 2, 3, 3, 3,
  3634. 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  3635. 3, 3, 3, 2, 2, 2, 2, 3, 3, 3,
  3636. 3, 3, 3, 3, 3, 3, 3, 3, 5, 4,
  3637. 4, 4, 2, 2, 4, 2, 2, 2, 2, 2,
  3638. 2, 2, 2, 2, 2, 2, 1, 4, 3, 3,
  3639. 2, 9, 10, 3, 0, 4, 1, 3, 2, 4,
  3640. 6, 8, 4, 4, 4, 1, 1, 1, 2, 3,
  3641. 1, 1, 1, 1, 1, 1, 0, 3, 3, 4,
  3642. 4, 0, 2, 3, 0, 1, 1, 0, 3, 1,
  3643. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  3644. 3, 2, 1, 1, 3, 2, 2, 4, 3, 1,
  3645. 3, 3, 3, 0, 2, 0, 1, 3, 1, 3,
  3646. 1, 1, 1, 1, 1, 6, 4, 3, 6, 4,
  3647. 4, 4, 1, 3, 1, 2, 1, 1, 4, 1,
  3648. 3, 6, 4, 4, 4, 4, 1, 4, 0, 1,
  3649. 1, 3, 1, 3, 1, 1, 4, 0, 0, 2,
  3650. 3, 1, 3, 1, 4, 2, 2, 2, 1, 2,
  3651. 1, 4, 3, 3, 3, 6, 3, 1, 1, 1
  3652. ];
  3653. PHP.Parser.prototype.yyn0 = function () {
  3654. this.yyval = this.yyastk[ this.stackPos ];
  3655. };
  3656. PHP.Parser.prototype.yyn1 = function ( attributes ) {
  3657. this.yyval = this.Stmt_Namespace_postprocess(this.yyastk[ this.stackPos-(1-1) ]);
  3658. };
  3659. PHP.Parser.prototype.yyn2 = function ( attributes ) {
  3660. if (Array.isArray(this.yyastk[ this.stackPos-(2-2) ])) { this.yyval = this.yyastk[ this.stackPos-(2-1) ].concat( this.yyastk[ this.stackPos-(2-2) ]); } else { this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ]; };
  3661. };
  3662. PHP.Parser.prototype.yyn3 = function ( attributes ) {
  3663. this.yyval = [];
  3664. };
  3665. PHP.Parser.prototype.yyn4 = function ( attributes ) {
  3666. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3667. };
  3668. PHP.Parser.prototype.yyn5 = function ( attributes ) {
  3669. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3670. };
  3671. PHP.Parser.prototype.yyn6 = function ( attributes ) {
  3672. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3673. };
  3674. PHP.Parser.prototype.yyn7 = function ( attributes ) {
  3675. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3676. };
  3677. PHP.Parser.prototype.yyn8 = function ( attributes ) {
  3678. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3679. };
  3680. PHP.Parser.prototype.yyn9 = function ( attributes ) {
  3681. this.yyval = this.Node_Stmt_HaltCompiler(attributes);
  3682. };
  3683. PHP.Parser.prototype.yyn10 = function ( attributes ) {
  3684. this.yyval = this.Node_Stmt_Namespace(this.Node_Name(this.yyastk[ this.stackPos-(3-2) ], attributes), null, attributes);
  3685. };
  3686. PHP.Parser.prototype.yyn11 = function ( attributes ) {
  3687. this.yyval = this.Node_Stmt_Namespace(this.Node_Name(this.yyastk[ this.stackPos-(5-2) ], attributes), this.yyastk[ this.stackPos-(5-4) ], attributes);
  3688. };
  3689. PHP.Parser.prototype.yyn12 = function ( attributes ) {
  3690. this.yyval = this.Node_Stmt_Namespace(null, this.yyastk[ this.stackPos-(4-3) ], attributes);
  3691. };
  3692. PHP.Parser.prototype.yyn13 = function ( attributes ) {
  3693. this.yyval = this.Node_Stmt_Use(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3694. };
  3695. PHP.Parser.prototype.yyn14 = function ( attributes ) {
  3696. this.yyval = this.Node_Stmt_Const(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3697. };
  3698. PHP.Parser.prototype.yyn15 = function ( attributes ) {
  3699. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3700. };
  3701. PHP.Parser.prototype.yyn16 = function ( attributes ) {
  3702. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3703. };
  3704. PHP.Parser.prototype.yyn17 = function ( attributes ) {
  3705. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(1-1) ], attributes), null, attributes);
  3706. };
  3707. PHP.Parser.prototype.yyn18 = function ( attributes ) {
  3708. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(3-1) ], attributes), this.yyastk[ this.stackPos-(3-3) ], attributes);
  3709. };
  3710. PHP.Parser.prototype.yyn19 = function ( attributes ) {
  3711. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(2-2) ], attributes), null, attributes);
  3712. };
  3713. PHP.Parser.prototype.yyn20 = function ( attributes ) {
  3714. this.yyval = this.Node_Stmt_UseUse(this.Node_Name(this.yyastk[ this.stackPos-(4-2) ], attributes), this.yyastk[ this.stackPos-(4-4) ], attributes);
  3715. };
  3716. PHP.Parser.prototype.yyn21 = function ( attributes ) {
  3717. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3718. };
  3719. PHP.Parser.prototype.yyn22 = function ( attributes ) {
  3720. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3721. };
  3722. PHP.Parser.prototype.yyn23 = function ( attributes ) {
  3723. this.yyval = this.Node_Const(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3724. };
  3725. PHP.Parser.prototype.yyn24 = function ( attributes ) {
  3726. if (Array.isArray(this.yyastk[ this.stackPos-(2-2) ])) { this.yyval = this.yyastk[ this.stackPos-(2-1) ].concat( this.yyastk[ this.stackPos-(2-2) ]); } else { this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ]; };
  3727. };
  3728. PHP.Parser.prototype.yyn25 = function ( attributes ) {
  3729. this.yyval = [];
  3730. };
  3731. PHP.Parser.prototype.yyn26 = function ( attributes ) {
  3732. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3733. };
  3734. PHP.Parser.prototype.yyn27 = function ( attributes ) {
  3735. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3736. };
  3737. PHP.Parser.prototype.yyn28 = function ( attributes ) {
  3738. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3739. };
  3740. PHP.Parser.prototype.yyn29 = function ( attributes ) {
  3741. throw new Error('__halt_compiler() can only be used from the outermost scope');
  3742. };
  3743. PHP.Parser.prototype.yyn30 = function ( attributes ) {
  3744. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3745. };
  3746. PHP.Parser.prototype.yyn31 = function ( attributes ) {
  3747. this.yyval = this.Node_Stmt_If(this.yyastk[ this.stackPos-(7-3) ], {'stmts': Array.isArray(this.yyastk[ this.stackPos-(7-5) ]) ? this.yyastk[ this.stackPos-(7-5) ] : [this.yyastk[ this.stackPos-(7-5) ]], 'elseifs': this.yyastk[ this.stackPos-(7-6) ], 'Else': this.yyastk[ this.stackPos-(7-7) ]}, attributes);
  3748. };
  3749. PHP.Parser.prototype.yyn32 = function ( attributes ) {
  3750. this.yyval = this.Node_Stmt_If(this.yyastk[ this.stackPos-(10-3) ], {'stmts': this.yyastk[ this.stackPos-(10-6) ], 'elseifs': this.yyastk[ this.stackPos-(10-7) ], 'else': this.yyastk[ this.stackPos-(10-8) ]}, attributes);
  3751. };
  3752. PHP.Parser.prototype.yyn33 = function ( attributes ) {
  3753. this.yyval = this.Node_Stmt_While(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  3754. };
  3755. PHP.Parser.prototype.yyn34 = function ( attributes ) {
  3756. this.yyval = this.Node_Stmt_Do(this.yyastk[ this.stackPos-(7-5) ], Array.isArray(this.yyastk[ this.stackPos-(7-2) ]) ? this.yyastk[ this.stackPos-(7-2) ] : [this.yyastk[ this.stackPos-(7-2) ]], attributes);
  3757. };
  3758. PHP.Parser.prototype.yyn35 = function ( attributes ) {
  3759. this.yyval = this.Node_Stmt_For({'init': this.yyastk[ this.stackPos-(9-3) ], 'cond': this.yyastk[ this.stackPos-(9-5) ], 'loop': this.yyastk[ this.stackPos-(9-7) ], 'stmts': this.yyastk[ this.stackPos-(9-9) ]}, attributes);
  3760. };
  3761. PHP.Parser.prototype.yyn36 = function ( attributes ) {
  3762. this.yyval = this.Node_Stmt_Switch(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  3763. };
  3764. PHP.Parser.prototype.yyn37 = function ( attributes ) {
  3765. this.yyval = this.Node_Stmt_Break(null, attributes);
  3766. };
  3767. PHP.Parser.prototype.yyn38 = function ( attributes ) {
  3768. this.yyval = this.Node_Stmt_Break(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3769. };
  3770. PHP.Parser.prototype.yyn39 = function ( attributes ) {
  3771. this.yyval = this.Node_Stmt_Continue(null, attributes);
  3772. };
  3773. PHP.Parser.prototype.yyn40 = function ( attributes ) {
  3774. this.yyval = this.Node_Stmt_Continue(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3775. };
  3776. PHP.Parser.prototype.yyn41 = function ( attributes ) {
  3777. this.yyval = this.Node_Stmt_Return(null, attributes);
  3778. };
  3779. PHP.Parser.prototype.yyn42 = function ( attributes ) {
  3780. this.yyval = this.Node_Stmt_Return(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3781. };
  3782. PHP.Parser.prototype.yyn43 = function ( attributes ) {
  3783. this.yyval = this.Node_Stmt_Global(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3784. };
  3785. PHP.Parser.prototype.yyn44 = function ( attributes ) {
  3786. this.yyval = this.Node_Stmt_Static(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3787. };
  3788. PHP.Parser.prototype.yyn45 = function ( attributes ) {
  3789. this.yyval = this.Node_Stmt_Echo(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3790. };
  3791. PHP.Parser.prototype.yyn46 = function ( attributes ) {
  3792. this.yyval = this.Node_Stmt_InlineHTML(this.yyastk[ this.stackPos-(1-1) ], attributes);
  3793. };
  3794. PHP.Parser.prototype.yyn47 = function ( attributes ) {
  3795. this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3796. };
  3797. PHP.Parser.prototype.yyn48 = function ( attributes ) {
  3798. this.yyval = this.Node_Stmt_Unset(this.yyastk[ this.stackPos-(5-3) ], attributes);
  3799. };
  3800. PHP.Parser.prototype.yyn49 = function ( attributes ) {
  3801. this.yyval = this.Node_Stmt_Foreach(this.yyastk[ this.stackPos-(7-3) ], this.yyastk[ this.stackPos-(7-5) ], {'keyVar': null, 'byRef': false, 'stmts': this.yyastk[ this.stackPos-(7-7) ]}, attributes);
  3802. };
  3803. PHP.Parser.prototype.yyn50 = function ( attributes ) {
  3804. this.yyval = this.Node_Stmt_Foreach(this.yyastk[ this.stackPos-(8-3) ], this.yyastk[ this.stackPos-(8-6) ], {'keyVar': null, 'byRef': true, 'stmts': this.yyastk[ this.stackPos-(8-8) ]}, attributes);
  3805. };
  3806. PHP.Parser.prototype.yyn51 = function ( attributes ) {
  3807. this.yyval = this.Node_Stmt_Foreach(this.yyastk[ this.stackPos-(10-3) ], this.yyastk[ this.stackPos-(10-8) ], {'keyVar': this.yyastk[ this.stackPos-(10-5) ], 'byRef': this.yyastk[ this.stackPos-(10-7) ], 'stmts': this.yyastk[ this.stackPos-(10-10) ]}, attributes);
  3808. };
  3809. PHP.Parser.prototype.yyn52 = function ( attributes ) {
  3810. this.yyval = this.Node_Stmt_Declare(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  3811. };
  3812. PHP.Parser.prototype.yyn53 = function ( attributes ) {
  3813. this.yyval = [];
  3814. };
  3815. PHP.Parser.prototype.yyn54 = function ( attributes ) {
  3816. this.yyval = this.Node_Stmt_TryCatch(this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  3817. };
  3818. PHP.Parser.prototype.yyn55 = function ( attributes ) {
  3819. this.yyval = this.Node_Stmt_Throw(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3820. };
  3821. PHP.Parser.prototype.yyn56 = function ( attributes ) {
  3822. this.yyval = this.Node_Stmt_Goto(this.yyastk[ this.stackPos-(3-2) ], attributes);
  3823. };
  3824. PHP.Parser.prototype.yyn57 = function ( attributes ) {
  3825. this.yyval = this.Node_Stmt_Label(this.yyastk[ this.stackPos-(2-1) ], attributes);
  3826. };
  3827. PHP.Parser.prototype.yyn58 = function ( attributes ) {
  3828. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3829. };
  3830. PHP.Parser.prototype.yyn59 = function ( attributes ) {
  3831. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3832. };
  3833. PHP.Parser.prototype.yyn60 = function ( attributes ) {
  3834. this.yyval = this.Node_Stmt_Catch(this.yyastk[ this.stackPos-(8-3) ], this.yyastk[ this.stackPos-(8-4) ].substring( 1 ), this.yyastk[ this.stackPos-(8-7) ], attributes);
  3835. };
  3836. PHP.Parser.prototype.yyn61 = function ( attributes ) {
  3837. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3838. };
  3839. PHP.Parser.prototype.yyn62 = function ( attributes ) {
  3840. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3841. };
  3842. PHP.Parser.prototype.yyn63 = function ( attributes ) {
  3843. this.yyval = false;
  3844. };
  3845. PHP.Parser.prototype.yyn64 = function ( attributes ) {
  3846. this.yyval = true;
  3847. };
  3848. PHP.Parser.prototype.yyn65 = function ( attributes ) {
  3849. this.yyval = this.Node_Stmt_Function(this.yyastk[ this.stackPos-(9-3) ], {'byRef': this.yyastk[ this.stackPos-(9-2) ], 'params': this.yyastk[ this.stackPos-(9-5) ], 'stmts': this.yyastk[ this.stackPos-(9-8) ]}, attributes);
  3850. };
  3851. PHP.Parser.prototype.yyn66 = function ( attributes ) {
  3852. this.yyval = this.Node_Stmt_Class(this.yyastk[ this.stackPos-(7-2) ], {'type': this.yyastk[ this.stackPos-(7-1) ], 'Extends': this.yyastk[ this.stackPos-(7-3) ], 'Implements': this.yyastk[ this.stackPos-(7-4) ], 'stmts': this.yyastk[ this.stackPos-(7-6) ]}, attributes);
  3853. };
  3854. PHP.Parser.prototype.yyn67 = function ( attributes ) {
  3855. this.yyval = this.Node_Stmt_Interface(this.yyastk[ this.stackPos-(6-2) ], {'Extends': this.yyastk[ this.stackPos-(6-3) ], 'stmts': this.yyastk[ this.stackPos-(6-5) ]}, attributes);
  3856. };
  3857. PHP.Parser.prototype.yyn68 = function ( attributes ) {
  3858. this.yyval = this.Node_Stmt_Trait(this.yyastk[ this.stackPos-(5-2) ], this.yyastk[ this.stackPos-(5-4) ], attributes);
  3859. };
  3860. PHP.Parser.prototype.yyn69 = function ( attributes ) {
  3861. this.yyval = 0;
  3862. };
  3863. PHP.Parser.prototype.yyn70 = function ( attributes ) {
  3864. this.yyval = this.MODIFIER_ABSTRACT;
  3865. };
  3866. PHP.Parser.prototype.yyn71 = function ( attributes ) {
  3867. this.yyval = this.MODIFIER_FINAL;
  3868. };
  3869. PHP.Parser.prototype.yyn72 = function ( attributes ) {
  3870. this.yyval = null;
  3871. };
  3872. PHP.Parser.prototype.yyn73 = function ( attributes ) {
  3873. this.yyval = this.yyastk[ this.stackPos-(2-2) ];
  3874. };
  3875. PHP.Parser.prototype.yyn74 = function ( attributes ) {
  3876. this.yyval = [];
  3877. };
  3878. PHP.Parser.prototype.yyn75 = function ( attributes ) {
  3879. this.yyval = this.yyastk[ this.stackPos-(2-2) ];
  3880. };
  3881. PHP.Parser.prototype.yyn76 = function ( attributes ) {
  3882. this.yyval = [];
  3883. };
  3884. PHP.Parser.prototype.yyn77 = function ( attributes ) {
  3885. this.yyval = this.yyastk[ this.stackPos-(2-2) ];
  3886. };
  3887. PHP.Parser.prototype.yyn78 = function ( attributes ) {
  3888. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3889. };
  3890. PHP.Parser.prototype.yyn79 = function ( attributes ) {
  3891. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3892. };
  3893. PHP.Parser.prototype.yyn80 = function ( attributes ) {
  3894. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  3895. };
  3896. PHP.Parser.prototype.yyn81 = function ( attributes ) {
  3897. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3898. };
  3899. PHP.Parser.prototype.yyn82 = function ( attributes ) {
  3900. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  3901. };
  3902. PHP.Parser.prototype.yyn83 = function ( attributes ) {
  3903. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3904. };
  3905. PHP.Parser.prototype.yyn84 = function ( attributes ) {
  3906. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  3907. };
  3908. PHP.Parser.prototype.yyn85 = function ( attributes ) {
  3909. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3910. };
  3911. PHP.Parser.prototype.yyn86 = function ( attributes ) {
  3912. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3913. };
  3914. PHP.Parser.prototype.yyn87 = function ( attributes ) {
  3915. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3916. };
  3917. PHP.Parser.prototype.yyn88 = function ( attributes ) {
  3918. this.yyval = this.Node_Stmt_DeclareDeclare(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  3919. };
  3920. PHP.Parser.prototype.yyn89 = function ( attributes ) {
  3921. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  3922. };
  3923. PHP.Parser.prototype.yyn90 = function ( attributes ) {
  3924. this.yyval = this.yyastk[ this.stackPos-(4-3) ];
  3925. };
  3926. PHP.Parser.prototype.yyn91 = function ( attributes ) {
  3927. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3928. };
  3929. PHP.Parser.prototype.yyn92 = function ( attributes ) {
  3930. this.yyval = this.yyastk[ this.stackPos-(5-3) ];
  3931. };
  3932. PHP.Parser.prototype.yyn93 = function ( attributes ) {
  3933. this.yyval = [];
  3934. };
  3935. PHP.Parser.prototype.yyn94 = function ( attributes ) {
  3936. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3937. };
  3938. PHP.Parser.prototype.yyn95 = function ( attributes ) {
  3939. this.yyval = this.Node_Stmt_Case(this.yyastk[ this.stackPos-(4-2) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  3940. };
  3941. PHP.Parser.prototype.yyn96 = function ( attributes ) {
  3942. this.yyval = this.Node_Stmt_Case(null, this.yyastk[ this.stackPos-(3-3) ], attributes);
  3943. };
  3944. PHP.Parser.prototype.yyn97 = function () {
  3945. this.yyval = this.yyastk[ this.stackPos ];
  3946. };
  3947. PHP.Parser.prototype.yyn98 = function () {
  3948. this.yyval = this.yyastk[ this.stackPos ];
  3949. };
  3950. PHP.Parser.prototype.yyn99 = function ( attributes ) {
  3951. this.yyval = Array.isArray(this.yyastk[ this.stackPos-(1-1) ]) ? this.yyastk[ this.stackPos-(1-1) ] : [this.yyastk[ this.stackPos-(1-1) ]];
  3952. };
  3953. PHP.Parser.prototype.yyn100 = function ( attributes ) {
  3954. this.yyval = this.yyastk[ this.stackPos-(4-2) ];
  3955. };
  3956. PHP.Parser.prototype.yyn101 = function ( attributes ) {
  3957. this.yyval = [];
  3958. };
  3959. PHP.Parser.prototype.yyn102 = function ( attributes ) {
  3960. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3961. };
  3962. PHP.Parser.prototype.yyn103 = function ( attributes ) {
  3963. this.yyval = this.Node_Stmt_ElseIf(this.yyastk[ this.stackPos-(5-3) ], Array.isArray(this.yyastk[ this.stackPos-(5-5) ]) ? this.yyastk[ this.stackPos-(5-5) ] : [this.yyastk[ this.stackPos-(5-5) ]], attributes);
  3964. };
  3965. PHP.Parser.prototype.yyn104 = function ( attributes ) {
  3966. this.yyval = [];
  3967. };
  3968. PHP.Parser.prototype.yyn105 = function ( attributes ) {
  3969. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  3970. };
  3971. PHP.Parser.prototype.yyn106 = function ( attributes ) {
  3972. this.yyval = this.Node_Stmt_ElseIf(this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-6) ], attributes);
  3973. };
  3974. PHP.Parser.prototype.yyn107 = function ( attributes ) {
  3975. this.yyval = null;
  3976. };
  3977. PHP.Parser.prototype.yyn108 = function ( attributes ) {
  3978. this.yyval = this.Node_Stmt_Else(Array.isArray(this.yyastk[ this.stackPos-(2-2) ]) ? this.yyastk[ this.stackPos-(2-2) ] : [this.yyastk[ this.stackPos-(2-2) ]], attributes);
  3979. };
  3980. PHP.Parser.prototype.yyn109 = function ( attributes ) {
  3981. this.yyval = null;
  3982. };
  3983. PHP.Parser.prototype.yyn110 = function ( attributes ) {
  3984. this.yyval = this.Node_Stmt_Else(this.yyastk[ this.stackPos-(3-3) ], attributes);
  3985. };
  3986. PHP.Parser.prototype.yyn111 = function ( attributes ) {
  3987. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  3988. };
  3989. PHP.Parser.prototype.yyn112 = function ( attributes ) {
  3990. this.yyval = [];
  3991. };
  3992. PHP.Parser.prototype.yyn113 = function ( attributes ) {
  3993. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  3994. };
  3995. PHP.Parser.prototype.yyn114 = function ( attributes ) {
  3996. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  3997. };
  3998. PHP.Parser.prototype.yyn115 = function ( attributes ) {
  3999. this.yyval = this.Node_Param(this.yyastk[ this.stackPos-(3-3) ].substring( 1 ), null, this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-2) ], attributes);
  4000. };
  4001. PHP.Parser.prototype.yyn116 = function ( attributes ) {
  4002. this.yyval = this.Node_Param(this.yyastk[ this.stackPos-(5-3) ].substring( 1 ), this.yyastk[ this.stackPos-(5-5) ], this.yyastk[ this.stackPos-(5-1) ], this.yyastk[ this.stackPos-(5-2) ], attributes);
  4003. };
  4004. PHP.Parser.prototype.yyn117 = function ( attributes ) {
  4005. this.yyval = null;
  4006. };
  4007. PHP.Parser.prototype.yyn118 = function ( attributes ) {
  4008. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4009. };
  4010. PHP.Parser.prototype.yyn119 = function ( attributes ) {
  4011. this.yyval = 'array';
  4012. };
  4013. PHP.Parser.prototype.yyn120 = function ( attributes ) {
  4014. this.yyval = 'callable';
  4015. };
  4016. PHP.Parser.prototype.yyn121 = function ( attributes ) {
  4017. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4018. };
  4019. PHP.Parser.prototype.yyn122 = function ( attributes ) {
  4020. this.yyval = [];
  4021. };
  4022. PHP.Parser.prototype.yyn123 = function ( attributes ) {
  4023. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4024. };
  4025. PHP.Parser.prototype.yyn124 = function ( attributes ) {
  4026. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4027. };
  4028. PHP.Parser.prototype.yyn125 = function ( attributes ) {
  4029. this.yyval = this.Node_Arg(this.yyastk[ this.stackPos-(1-1) ], false, attributes);
  4030. };
  4031. PHP.Parser.prototype.yyn126 = function ( attributes ) {
  4032. this.yyval = this.Node_Arg(this.yyastk[ this.stackPos-(2-2) ], true, attributes);
  4033. };
  4034. PHP.Parser.prototype.yyn127 = function ( attributes ) {
  4035. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4036. };
  4037. PHP.Parser.prototype.yyn128 = function ( attributes ) {
  4038. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4039. };
  4040. PHP.Parser.prototype.yyn129 = function ( attributes ) {
  4041. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  4042. };
  4043. PHP.Parser.prototype.yyn130 = function ( attributes ) {
  4044. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4045. };
  4046. PHP.Parser.prototype.yyn131 = function ( attributes ) {
  4047. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-3) ], attributes);
  4048. };
  4049. PHP.Parser.prototype.yyn132 = function ( attributes ) {
  4050. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4051. };
  4052. PHP.Parser.prototype.yyn133 = function ( attributes ) {
  4053. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4054. };
  4055. PHP.Parser.prototype.yyn134 = function ( attributes ) {
  4056. this.yyval = this.Node_Stmt_StaticVar(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), null, attributes);
  4057. };
  4058. PHP.Parser.prototype.yyn135 = function ( attributes ) {
  4059. this.yyval = this.Node_Stmt_StaticVar(this.yyastk[ this.stackPos-(3-1) ].substring( 1 ), this.yyastk[ this.stackPos-(3-3) ], attributes);
  4060. };
  4061. PHP.Parser.prototype.yyn136 = function ( attributes ) {
  4062. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4063. };
  4064. PHP.Parser.prototype.yyn137 = function ( attributes ) {
  4065. this.yyval = [];
  4066. };
  4067. PHP.Parser.prototype.yyn138 = function ( attributes ) {
  4068. this.yyval = this.Node_Stmt_Property(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-2) ], attributes);
  4069. };
  4070. PHP.Parser.prototype.yyn139 = function ( attributes ) {
  4071. this.yyval = this.Node_Stmt_ClassConst(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4072. };
  4073. PHP.Parser.prototype.yyn140 = function ( attributes ) {
  4074. this.yyval = this.Node_Stmt_ClassMethod(this.yyastk[ this.stackPos-(8-4) ], {'type': this.yyastk[ this.stackPos-(8-1) ], 'byRef': this.yyastk[ this.stackPos-(8-3) ], 'params': this.yyastk[ this.stackPos-(8-6) ], 'stmts': this.yyastk[ this.stackPos-(8-8) ]}, attributes);
  4075. };
  4076. PHP.Parser.prototype.yyn141 = function ( attributes ) {
  4077. this.yyval = this.Node_Stmt_TraitUse(this.yyastk[ this.stackPos-(3-2) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4078. };
  4079. PHP.Parser.prototype.yyn142 = function ( attributes ) {
  4080. this.yyval = [];
  4081. };
  4082. PHP.Parser.prototype.yyn143 = function ( attributes ) {
  4083. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4084. };
  4085. PHP.Parser.prototype.yyn144 = function ( attributes ) {
  4086. this.yyval = [];
  4087. };
  4088. PHP.Parser.prototype.yyn145 = function ( attributes ) {
  4089. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4090. };
  4091. PHP.Parser.prototype.yyn146 = function ( attributes ) {
  4092. this.yyval = this.Node_Stmt_TraitUseAdaptation_Precedence(this.yyastk[ this.stackPos-(4-1) ][0], this.yyastk[ this.stackPos-(4-1) ][1], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4093. };
  4094. PHP.Parser.prototype.yyn147 = function ( attributes ) {
  4095. this.yyval = this.Node_Stmt_TraitUseAdaptation_Alias(this.yyastk[ this.stackPos-(5-1) ][0], this.yyastk[ this.stackPos-(5-1) ][1], this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-4) ], attributes);
  4096. };
  4097. PHP.Parser.prototype.yyn148 = function ( attributes ) {
  4098. this.yyval = this.Node_Stmt_TraitUseAdaptation_Alias(this.yyastk[ this.stackPos-(4-1) ][0], this.yyastk[ this.stackPos-(4-1) ][1], this.yyastk[ this.stackPos-(4-3) ], null, attributes);
  4099. };
  4100. PHP.Parser.prototype.yyn149 = function ( attributes ) {
  4101. this.yyval = this.Node_Stmt_TraitUseAdaptation_Alias(this.yyastk[ this.stackPos-(4-1) ][0], this.yyastk[ this.stackPos-(4-1) ][1], null, this.yyastk[ this.stackPos-(4-3) ], attributes);
  4102. };
  4103. PHP.Parser.prototype.yyn150 = function ( attributes ) {
  4104. this.yyval = array(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ]);
  4105. };
  4106. PHP.Parser.prototype.yyn151 = function ( attributes ) {
  4107. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4108. };
  4109. PHP.Parser.prototype.yyn152 = function ( attributes ) {
  4110. this.yyval = array(null, this.yyastk[ this.stackPos-(1-1) ]);
  4111. };
  4112. PHP.Parser.prototype.yyn153 = function ( attributes ) {
  4113. this.yyval = null;
  4114. };
  4115. PHP.Parser.prototype.yyn154 = function ( attributes ) {
  4116. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4117. };
  4118. PHP.Parser.prototype.yyn155 = function ( attributes ) {
  4119. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4120. };
  4121. PHP.Parser.prototype.yyn156 = function ( attributes ) {
  4122. this.yyval = this.MODIFIER_PUBLIC;
  4123. };
  4124. PHP.Parser.prototype.yyn157 = function ( attributes ) {
  4125. this.yyval = this.MODIFIER_PUBLIC;
  4126. };
  4127. PHP.Parser.prototype.yyn158 = function ( attributes ) {
  4128. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4129. };
  4130. PHP.Parser.prototype.yyn159 = function ( attributes ) {
  4131. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4132. };
  4133. PHP.Parser.prototype.yyn160 = function ( attributes ) {
  4134. this.Stmt_Class_verifyModifier(this.yyastk[ this.stackPos-(2-1) ], this.yyastk[ this.stackPos-(2-2) ]); this.yyval = this.yyastk[ this.stackPos-(2-1) ] | this.yyastk[ this.stackPos-(2-2) ];
  4135. };
  4136. PHP.Parser.prototype.yyn161 = function ( attributes ) {
  4137. this.yyval = this.MODIFIER_PUBLIC;
  4138. };
  4139. PHP.Parser.prototype.yyn162 = function ( attributes ) {
  4140. this.yyval = this.MODIFIER_PROTECTED;
  4141. };
  4142. PHP.Parser.prototype.yyn163 = function ( attributes ) {
  4143. this.yyval = this.MODIFIER_PRIVATE;
  4144. };
  4145. PHP.Parser.prototype.yyn164 = function ( attributes ) {
  4146. this.yyval = this.MODIFIER_STATIC;
  4147. };
  4148. PHP.Parser.prototype.yyn165 = function ( attributes ) {
  4149. this.yyval = this.MODIFIER_ABSTRACT;
  4150. };
  4151. PHP.Parser.prototype.yyn166 = function ( attributes ) {
  4152. this.yyval = this.MODIFIER_FINAL;
  4153. };
  4154. PHP.Parser.prototype.yyn167 = function ( attributes ) {
  4155. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4156. };
  4157. PHP.Parser.prototype.yyn168 = function ( attributes ) {
  4158. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4159. };
  4160. PHP.Parser.prototype.yyn169 = function ( attributes ) {
  4161. this.yyval = this.Node_Stmt_PropertyProperty(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), null, attributes);
  4162. };
  4163. PHP.Parser.prototype.yyn170 = function ( attributes ) {
  4164. this.yyval = this.Node_Stmt_PropertyProperty(this.yyastk[ this.stackPos-(3-1) ].substring( 1 ), this.yyastk[ this.stackPos-(3-3) ], attributes);
  4165. };
  4166. PHP.Parser.prototype.yyn171 = function ( attributes ) {
  4167. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4168. };
  4169. PHP.Parser.prototype.yyn172 = function ( attributes ) {
  4170. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4171. };
  4172. PHP.Parser.prototype.yyn173 = function ( attributes ) {
  4173. this.yyval = [];
  4174. };
  4175. PHP.Parser.prototype.yyn174 = function ( attributes ) {
  4176. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4177. };
  4178. PHP.Parser.prototype.yyn175 = function ( attributes ) {
  4179. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4180. };
  4181. PHP.Parser.prototype.yyn176 = function ( attributes ) {
  4182. this.yyval = this.Node_Expr_AssignList(this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-6) ], attributes);
  4183. };
  4184. PHP.Parser.prototype.yyn177 = function ( attributes ) {
  4185. this.yyval = this.Node_Expr_Assign(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4186. };
  4187. PHP.Parser.prototype.yyn178 = function ( attributes ) {
  4188. this.yyval = this.Node_Expr_AssignRef(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  4189. };
  4190. PHP.Parser.prototype.yyn179 = function ( attributes ) {
  4191. this.yyval = this.Node_Expr_AssignRef(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  4192. };
  4193. PHP.Parser.prototype.yyn180 = function ( attributes ) {
  4194. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4195. };
  4196. PHP.Parser.prototype.yyn181 = function ( attributes ) {
  4197. this.yyval = this.Node_Expr_Clone(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4198. };
  4199. PHP.Parser.prototype.yyn182 = function ( attributes ) {
  4200. this.yyval = this.Node_Expr_AssignPlus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4201. };
  4202. PHP.Parser.prototype.yyn183 = function ( attributes ) {
  4203. this.yyval = this.Node_Expr_AssignMinus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4204. };
  4205. PHP.Parser.prototype.yyn184 = function ( attributes ) {
  4206. this.yyval = this.Node_Expr_AssignMul(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4207. };
  4208. PHP.Parser.prototype.yyn185 = function ( attributes ) {
  4209. this.yyval = this.Node_Expr_AssignDiv(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4210. };
  4211. PHP.Parser.prototype.yyn186 = function ( attributes ) {
  4212. this.yyval = this.Node_Expr_AssignConcat(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4213. };
  4214. PHP.Parser.prototype.yyn187 = function ( attributes ) {
  4215. this.yyval = this.Node_Expr_AssignMod(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4216. };
  4217. PHP.Parser.prototype.yyn188 = function ( attributes ) {
  4218. this.yyval = this.Node_Expr_AssignBitwiseAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4219. };
  4220. PHP.Parser.prototype.yyn189 = function ( attributes ) {
  4221. this.yyval = this.Node_Expr_AssignBitwiseOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4222. };
  4223. PHP.Parser.prototype.yyn190 = function ( attributes ) {
  4224. this.yyval = this.Node_Expr_AssignBitwiseXor(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4225. };
  4226. PHP.Parser.prototype.yyn191 = function ( attributes ) {
  4227. this.yyval = this.Node_Expr_AssignShiftLeft(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4228. };
  4229. PHP.Parser.prototype.yyn192 = function ( attributes ) {
  4230. this.yyval = this.Node_Expr_AssignShiftRight(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4231. };
  4232. PHP.Parser.prototype.yyn193 = function ( attributes ) {
  4233. this.yyval = this.Node_Expr_PostInc(this.yyastk[ this.stackPos-(2-1) ], attributes);
  4234. };
  4235. PHP.Parser.prototype.yyn194 = function ( attributes ) {
  4236. this.yyval = this.Node_Expr_PreInc(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4237. };
  4238. PHP.Parser.prototype.yyn195 = function ( attributes ) {
  4239. this.yyval = this.Node_Expr_PostDec(this.yyastk[ this.stackPos-(2-1) ], attributes);
  4240. };
  4241. PHP.Parser.prototype.yyn196 = function ( attributes ) {
  4242. this.yyval = this.Node_Expr_PreDec(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4243. };
  4244. PHP.Parser.prototype.yyn197 = function ( attributes ) {
  4245. this.yyval = this.Node_Expr_BooleanOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4246. };
  4247. PHP.Parser.prototype.yyn198 = function ( attributes ) {
  4248. this.yyval = this.Node_Expr_BooleanAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4249. };
  4250. PHP.Parser.prototype.yyn199 = function ( attributes ) {
  4251. this.yyval = this.Node_Expr_LogicalOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4252. };
  4253. PHP.Parser.prototype.yyn200 = function ( attributes ) {
  4254. this.yyval = this.Node_Expr_LogicalAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4255. };
  4256. PHP.Parser.prototype.yyn201 = function ( attributes ) {
  4257. this.yyval = this.Node_Expr_LogicalXor(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4258. };
  4259. PHP.Parser.prototype.yyn202 = function ( attributes ) {
  4260. this.yyval = this.Node_Expr_BitwiseOr(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4261. };
  4262. PHP.Parser.prototype.yyn203 = function ( attributes ) {
  4263. this.yyval = this.Node_Expr_BitwiseAnd(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4264. };
  4265. PHP.Parser.prototype.yyn204 = function ( attributes ) {
  4266. this.yyval = this.Node_Expr_BitwiseXor(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4267. };
  4268. PHP.Parser.prototype.yyn205 = function ( attributes ) {
  4269. this.yyval = this.Node_Expr_Concat(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4270. };
  4271. PHP.Parser.prototype.yyn206 = function ( attributes ) {
  4272. this.yyval = this.Node_Expr_Plus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4273. };
  4274. PHP.Parser.prototype.yyn207 = function ( attributes ) {
  4275. this.yyval = this.Node_Expr_Minus(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4276. };
  4277. PHP.Parser.prototype.yyn208 = function ( attributes ) {
  4278. this.yyval = this.Node_Expr_Mul(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4279. };
  4280. PHP.Parser.prototype.yyn209 = function ( attributes ) {
  4281. this.yyval = this.Node_Expr_Div(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4282. };
  4283. PHP.Parser.prototype.yyn210 = function ( attributes ) {
  4284. this.yyval = this.Node_Expr_Mod(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4285. };
  4286. PHP.Parser.prototype.yyn211 = function ( attributes ) {
  4287. this.yyval = this.Node_Expr_ShiftLeft(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4288. };
  4289. PHP.Parser.prototype.yyn212 = function ( attributes ) {
  4290. this.yyval = this.Node_Expr_ShiftRight(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4291. };
  4292. PHP.Parser.prototype.yyn213 = function ( attributes ) {
  4293. this.yyval = this.Node_Expr_UnaryPlus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4294. };
  4295. PHP.Parser.prototype.yyn214 = function ( attributes ) {
  4296. this.yyval = this.Node_Expr_UnaryMinus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4297. };
  4298. PHP.Parser.prototype.yyn215 = function ( attributes ) {
  4299. this.yyval = this.Node_Expr_BooleanNot(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4300. };
  4301. PHP.Parser.prototype.yyn216 = function ( attributes ) {
  4302. this.yyval = this.Node_Expr_BitwiseNot(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4303. };
  4304. PHP.Parser.prototype.yyn217 = function ( attributes ) {
  4305. this.yyval = this.Node_Expr_Identical(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4306. };
  4307. PHP.Parser.prototype.yyn218 = function ( attributes ) {
  4308. this.yyval = this.Node_Expr_NotIdentical(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4309. };
  4310. PHP.Parser.prototype.yyn219 = function ( attributes ) {
  4311. this.yyval = this.Node_Expr_Equal(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4312. };
  4313. PHP.Parser.prototype.yyn220 = function ( attributes ) {
  4314. this.yyval = this.Node_Expr_NotEqual(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4315. };
  4316. PHP.Parser.prototype.yyn221 = function ( attributes ) {
  4317. this.yyval = this.Node_Expr_Smaller(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4318. };
  4319. PHP.Parser.prototype.yyn222 = function ( attributes ) {
  4320. this.yyval = this.Node_Expr_SmallerOrEqual(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4321. };
  4322. PHP.Parser.prototype.yyn223 = function ( attributes ) {
  4323. this.yyval = this.Node_Expr_Greater(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4324. };
  4325. PHP.Parser.prototype.yyn224 = function ( attributes ) {
  4326. this.yyval = this.Node_Expr_GreaterOrEqual(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4327. };
  4328. PHP.Parser.prototype.yyn225 = function ( attributes ) {
  4329. this.yyval = this.Node_Expr_Instanceof(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4330. };
  4331. PHP.Parser.prototype.yyn226 = function ( attributes ) {
  4332. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4333. };
  4334. PHP.Parser.prototype.yyn227 = function ( attributes ) {
  4335. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4336. };
  4337. PHP.Parser.prototype.yyn228 = function ( attributes ) {
  4338. this.yyval = this.Node_Expr_Ternary(this.yyastk[ this.stackPos-(5-1) ], this.yyastk[ this.stackPos-(5-3) ], this.yyastk[ this.stackPos-(5-5) ], attributes);
  4339. };
  4340. PHP.Parser.prototype.yyn229 = function ( attributes ) {
  4341. this.yyval = this.Node_Expr_Ternary(this.yyastk[ this.stackPos-(4-1) ], null, this.yyastk[ this.stackPos-(4-4) ], attributes);
  4342. };
  4343. PHP.Parser.prototype.yyn230 = function ( attributes ) {
  4344. this.yyval = this.Node_Expr_Isset(this.yyastk[ this.stackPos-(4-3) ], attributes);
  4345. };
  4346. PHP.Parser.prototype.yyn231 = function ( attributes ) {
  4347. this.yyval = this.Node_Expr_Empty(this.yyastk[ this.stackPos-(4-3) ], attributes);
  4348. };
  4349. PHP.Parser.prototype.yyn232 = function ( attributes ) {
  4350. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_Include", attributes);
  4351. };
  4352. PHP.Parser.prototype.yyn233 = function ( attributes ) {
  4353. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_IncludeOnce", attributes);
  4354. };
  4355. PHP.Parser.prototype.yyn234 = function ( attributes ) {
  4356. this.yyval = this.Node_Expr_Eval(this.yyastk[ this.stackPos-(4-3) ], attributes);
  4357. };
  4358. PHP.Parser.prototype.yyn235 = function ( attributes ) {
  4359. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_Require", attributes);
  4360. };
  4361. PHP.Parser.prototype.yyn236 = function ( attributes ) {
  4362. this.yyval = this.Node_Expr_Include(this.yyastk[ this.stackPos-(2-2) ], "Node_Expr_RequireOnce", attributes);
  4363. };
  4364. PHP.Parser.prototype.yyn237 = function ( attributes ) {
  4365. this.yyval = this.Node_Expr_Cast_Int(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4366. };
  4367. PHP.Parser.prototype.yyn238 = function ( attributes ) {
  4368. this.yyval = this.Node_Expr_Cast_Double(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4369. };
  4370. PHP.Parser.prototype.yyn239 = function ( attributes ) {
  4371. this.yyval = this.Node_Expr_Cast_String(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4372. };
  4373. PHP.Parser.prototype.yyn240 = function ( attributes ) {
  4374. this.yyval = this.Node_Expr_Cast_Array(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4375. };
  4376. PHP.Parser.prototype.yyn241 = function ( attributes ) {
  4377. this.yyval = this.Node_Expr_Cast_Object(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4378. };
  4379. PHP.Parser.prototype.yyn242 = function ( attributes ) {
  4380. this.yyval = this.Node_Expr_Cast_Bool(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4381. };
  4382. PHP.Parser.prototype.yyn243 = function ( attributes ) {
  4383. this.yyval = this.Node_Expr_Cast_Unset(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4384. };
  4385. PHP.Parser.prototype.yyn244 = function ( attributes ) {
  4386. this.yyval = this.Node_Expr_Exit(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4387. };
  4388. PHP.Parser.prototype.yyn245 = function ( attributes ) {
  4389. this.yyval = this.Node_Expr_ErrorSuppress(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4390. };
  4391. PHP.Parser.prototype.yyn246 = function ( attributes ) {
  4392. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4393. };
  4394. PHP.Parser.prototype.yyn247 = function ( attributes ) {
  4395. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(4-3) ], attributes);
  4396. };
  4397. PHP.Parser.prototype.yyn248 = function ( attributes ) {
  4398. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4399. };
  4400. PHP.Parser.prototype.yyn249 = function ( attributes ) {
  4401. this.yyval = this.Node_Expr_ShellExec(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4402. };
  4403. PHP.Parser.prototype.yyn250 = function ( attributes ) {
  4404. this.yyval = this.Node_Expr_Print(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4405. };
  4406. PHP.Parser.prototype.yyn251 = function ( attributes ) {
  4407. this.yyval = this.Node_Expr_Closure({'static': false, 'byRef': this.yyastk[ this.stackPos-(9-2) ], 'params': this.yyastk[ this.stackPos-(9-4) ], 'uses': this.yyastk[ this.stackPos-(9-6) ], 'stmts': this.yyastk[ this.stackPos-(9-8) ]}, attributes);
  4408. };
  4409. PHP.Parser.prototype.yyn252 = function ( attributes ) {
  4410. this.yyval = this.Node_Expr_Closure({'static': true, 'byRef': this.yyastk[ this.stackPos-(10-3) ], 'params': this.yyastk[ this.stackPos-(10-5) ], 'uses': this.yyastk[ this.stackPos-(10-7) ], 'stmts': this.yyastk[ this.stackPos-(10-9) ]}, attributes);
  4411. };
  4412. PHP.Parser.prototype.yyn253 = function ( attributes ) {
  4413. this.yyval = this.Node_Expr_New(this.yyastk[ this.stackPos-(3-2) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4414. };
  4415. PHP.Parser.prototype.yyn254 = function ( attributes ) {
  4416. this.yyval = [];
  4417. };
  4418. PHP.Parser.prototype.yyn255 = function ( attributes ) {
  4419. this.yyval = this.yyastk[ this.stackPos-(4-3) ];
  4420. };
  4421. PHP.Parser.prototype.yyn256 = function ( attributes ) {
  4422. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4423. };
  4424. PHP.Parser.prototype.yyn257 = function ( attributes ) {
  4425. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4426. };
  4427. PHP.Parser.prototype.yyn258 = function ( attributes ) {
  4428. this.yyval = this.Node_Expr_ClosureUse(this.yyastk[ this.stackPos-(2-2) ].substring( 1 ), this.yyastk[ this.stackPos-(2-1) ], attributes);
  4429. };
  4430. PHP.Parser.prototype.yyn259 = function ( attributes ) {
  4431. this.yyval = this.Node_Expr_FuncCall(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4432. };
  4433. PHP.Parser.prototype.yyn260 = function ( attributes ) {
  4434. this.yyval = this.Node_Expr_StaticCall(this.yyastk[ this.stackPos-(6-1) ], this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  4435. };
  4436. PHP.Parser.prototype.yyn261 = function ( attributes ) {
  4437. this.yyval = this.Node_Expr_StaticCall(this.yyastk[ this.stackPos-(8-1) ], this.yyastk[ this.stackPos-(8-4) ], this.yyastk[ this.stackPos-(8-7) ], attributes);
  4438. };
  4439. PHP.Parser.prototype.yyn262 = function ( attributes ) {
  4440. if (this.yyastk[ this.stackPos-(4-1) ].type === "Node_Expr_StaticPropertyFetch") {
  4441. this.yyval = this.Node_Expr_StaticCall(this.yyastk[ this.stackPos-(4-1) ].Class, this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-1) ].name, attributes), this.yyastk[ this.stackPos-(4-3) ], attributes);
  4442. } else if (this.yyastk[ this.stackPos-(4-1) ].type === "Node_Expr_ArrayDimFetch") {
  4443. var tmp = this.yyastk[ this.stackPos-(4-1) ];
  4444. while (tmp.variable.type === "Node_Expr_ArrayDimFetch") {
  4445. tmp = tmp.variable;
  4446. }
  4447. this.yyval = this.Node_Expr_StaticCall(tmp.variable.Class, this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4448. tmp.variable = this.Node_Expr_Variable(tmp.variable.name, attributes);
  4449. } else {
  4450. throw new Exception;
  4451. }
  4452. };
  4453. PHP.Parser.prototype.yyn263 = function ( attributes ) {
  4454. this.yyval = this.Node_Expr_FuncCall(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4455. };
  4456. PHP.Parser.prototype.yyn264 = function ( attributes ) {
  4457. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4458. };
  4459. PHP.Parser.prototype.yyn265 = function ( attributes ) {
  4460. this.yyval = this.Node_Name('static', attributes);
  4461. };
  4462. PHP.Parser.prototype.yyn266 = function ( attributes ) {
  4463. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4464. };
  4465. PHP.Parser.prototype.yyn267 = function ( attributes ) {
  4466. this.yyval = this.Node_Name(this.yyastk[ this.stackPos-(1-1) ], attributes);
  4467. };
  4468. PHP.Parser.prototype.yyn268 = function ( attributes ) {
  4469. this.yyval = this.Node_Name_FullyQualified(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4470. };
  4471. PHP.Parser.prototype.yyn269 = function ( attributes ) {
  4472. this.yyval = this.Node_Name_Relative(this.yyastk[ this.stackPos-(3-3) ], attributes);
  4473. };
  4474. PHP.Parser.prototype.yyn270 = function ( attributes ) {
  4475. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4476. };
  4477. PHP.Parser.prototype.yyn271 = function ( attributes ) {
  4478. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4479. };
  4480. PHP.Parser.prototype.yyn272 = function ( attributes ) {
  4481. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4482. };
  4483. PHP.Parser.prototype.yyn273 = function ( attributes ) {
  4484. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4485. };
  4486. PHP.Parser.prototype.yyn274 = function ( attributes ) {
  4487. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4488. };
  4489. PHP.Parser.prototype.yyn275 = function ( attributes ) {
  4490. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4491. };
  4492. PHP.Parser.prototype.yyn276 = function () {
  4493. this.yyval = this.yyastk[ this.stackPos ];
  4494. };
  4495. PHP.Parser.prototype.yyn277 = function ( attributes ) {
  4496. this.yyval = this.Node_Expr_PropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4497. };
  4498. PHP.Parser.prototype.yyn278 = function ( attributes ) {
  4499. this.yyval = this.Node_Expr_PropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4500. };
  4501. PHP.Parser.prototype.yyn279 = function ( attributes ) {
  4502. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4503. };
  4504. PHP.Parser.prototype.yyn280 = function ( attributes ) {
  4505. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4506. };
  4507. PHP.Parser.prototype.yyn281 = function ( attributes ) {
  4508. this.yyval = null;
  4509. };
  4510. PHP.Parser.prototype.yyn282 = function ( attributes ) {
  4511. this.yyval = null;
  4512. };
  4513. PHP.Parser.prototype.yyn283 = function ( attributes ) {
  4514. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4515. };
  4516. PHP.Parser.prototype.yyn284 = function ( attributes ) {
  4517. this.yyval = [];
  4518. };
  4519. PHP.Parser.prototype.yyn285 = function ( attributes ) {
  4520. this.yyval = [this.Scalar_String_parseEscapeSequences(this.yyastk[ this.stackPos-(1-1) ], '`')];
  4521. };
  4522. PHP.Parser.prototype.yyn286 = function ( attributes ) {
  4523. ; this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4524. };
  4525. PHP.Parser.prototype.yyn287 = function ( attributes ) {
  4526. this.yyval = [];
  4527. };
  4528. PHP.Parser.prototype.yyn288 = function ( attributes ) {
  4529. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4530. };
  4531. PHP.Parser.prototype.yyn289 = function ( attributes ) {
  4532. this.yyval = this.Node_Scalar_LNumber(this.Scalar_LNumber_parse(this.yyastk[ this.stackPos-(1-1) ]), attributes);
  4533. };
  4534. PHP.Parser.prototype.yyn290 = function ( attributes ) {
  4535. this.yyval = this.Node_Scalar_DNumber(this.Scalar_DNumber_parse(this.yyastk[ this.stackPos-(1-1) ]), attributes);
  4536. };
  4537. PHP.Parser.prototype.yyn291 = function ( attributes ) {
  4538. this.yyval = this.Scalar_String_create(this.yyastk[ this.stackPos-(1-1) ], attributes);
  4539. };
  4540. PHP.Parser.prototype.yyn292 = function ( attributes ) {
  4541. this.yyval = {type: "Node_Scalar_LineConst", attributes: attributes};
  4542. };
  4543. PHP.Parser.prototype.yyn293 = function ( attributes ) {
  4544. this.yyval = {type: "Node_Scalar_FileConst", attributes: attributes};
  4545. };
  4546. PHP.Parser.prototype.yyn294 = function ( attributes ) {
  4547. this.yyval = {type: "Node_Scalar_DirConst", attributes: attributes};
  4548. };
  4549. PHP.Parser.prototype.yyn295 = function ( attributes ) {
  4550. this.yyval = {type: "Node_Scalar_ClassConst", attributes: attributes};
  4551. };
  4552. PHP.Parser.prototype.yyn296 = function ( attributes ) {
  4553. this.yyval = {type: "Node_Scalar_TraitConst", attributes: attributes};
  4554. };
  4555. PHP.Parser.prototype.yyn297 = function ( attributes ) {
  4556. this.yyval = {type: "Node_Scalar_MethodConst", attributes: attributes};
  4557. };
  4558. PHP.Parser.prototype.yyn298 = function ( attributes ) {
  4559. this.yyval = {type: "Node_Scalar_FuncConst", attributes: attributes};
  4560. };
  4561. PHP.Parser.prototype.yyn299 = function ( attributes ) {
  4562. this.yyval = {type: "Node_Scalar_NSConst", attributes: attributes};
  4563. };
  4564. PHP.Parser.prototype.yyn300 = function ( attributes ) {
  4565. this.yyval = this.Node_Scalar_String(this.Scalar_String_parseDocString(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-2) ]), attributes);
  4566. };
  4567. PHP.Parser.prototype.yyn301 = function ( attributes ) {
  4568. this.yyval = this.Node_Scalar_String('', attributes);
  4569. };
  4570. PHP.Parser.prototype.yyn302 = function ( attributes ) {
  4571. this.yyval = this.Node_Expr_ConstFetch(this.yyastk[ this.stackPos-(1-1) ], attributes);
  4572. };
  4573. PHP.Parser.prototype.yyn303 = function ( attributes ) {
  4574. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4575. };
  4576. PHP.Parser.prototype.yyn304 = function ( attributes ) {
  4577. this.yyval = this.Node_Expr_ClassConstFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4578. };
  4579. PHP.Parser.prototype.yyn305 = function ( attributes ) {
  4580. this.yyval = this.Node_Expr_UnaryPlus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4581. };
  4582. PHP.Parser.prototype.yyn306 = function ( attributes ) {
  4583. this.yyval = this.Node_Expr_UnaryMinus(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4584. };
  4585. PHP.Parser.prototype.yyn307 = function ( attributes ) {
  4586. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(4-3) ], attributes);
  4587. };
  4588. PHP.Parser.prototype.yyn308 = function ( attributes ) {
  4589. this.yyval = this.Node_Expr_Array(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4590. };
  4591. PHP.Parser.prototype.yyn309 = function ( attributes ) {
  4592. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4593. };
  4594. PHP.Parser.prototype.yyn310 = function ( attributes ) {
  4595. this.yyval = this.Node_Expr_ClassConstFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4596. };
  4597. PHP.Parser.prototype.yyn311 = function ( attributes ) {
  4598. ; this.yyval = this.Node_Scalar_Encapsed(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4599. };
  4600. PHP.Parser.prototype.yyn312 = function ( attributes ) {
  4601. ; this.yyval = this.Node_Scalar_Encapsed(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4602. };
  4603. PHP.Parser.prototype.yyn313 = function ( attributes ) {
  4604. this.yyval = [];
  4605. };
  4606. PHP.Parser.prototype.yyn314 = function ( attributes ) {
  4607. this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4608. };
  4609. PHP.Parser.prototype.yyn315 = function () {
  4610. this.yyval = this.yyastk[ this.stackPos ];
  4611. };
  4612. PHP.Parser.prototype.yyn316 = function () {
  4613. this.yyval = this.yyastk[ this.stackPos ];
  4614. };
  4615. PHP.Parser.prototype.yyn317 = function ( attributes ) {
  4616. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4617. };
  4618. PHP.Parser.prototype.yyn318 = function ( attributes ) {
  4619. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4620. };
  4621. PHP.Parser.prototype.yyn319 = function ( attributes ) {
  4622. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(3-3) ], this.yyastk[ this.stackPos-(3-1) ], false, attributes);
  4623. };
  4624. PHP.Parser.prototype.yyn320 = function ( attributes ) {
  4625. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(1-1) ], null, false, attributes);
  4626. };
  4627. PHP.Parser.prototype.yyn321 = function ( attributes ) {
  4628. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4629. };
  4630. PHP.Parser.prototype.yyn322 = function ( attributes ) {
  4631. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4632. };
  4633. PHP.Parser.prototype.yyn323 = function ( attributes ) {
  4634. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4635. };
  4636. PHP.Parser.prototype.yyn324 = function ( attributes ) {
  4637. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4638. };
  4639. PHP.Parser.prototype.yyn325 = function ( attributes ) {
  4640. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(6-2) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  4641. };
  4642. PHP.Parser.prototype.yyn326 = function ( attributes ) {
  4643. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4644. };
  4645. PHP.Parser.prototype.yyn327 = function ( attributes ) {
  4646. this.yyval = this.Node_Expr_PropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ], attributes);
  4647. };
  4648. PHP.Parser.prototype.yyn328 = function ( attributes ) {
  4649. this.yyval = this.Node_Expr_MethodCall(this.yyastk[ this.stackPos-(6-1) ], this.yyastk[ this.stackPos-(6-3) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  4650. };
  4651. PHP.Parser.prototype.yyn329 = function ( attributes ) {
  4652. this.yyval = this.Node_Expr_FuncCall(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4653. };
  4654. PHP.Parser.prototype.yyn330 = function ( attributes ) {
  4655. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4656. };
  4657. PHP.Parser.prototype.yyn331 = function ( attributes ) {
  4658. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4659. };
  4660. PHP.Parser.prototype.yyn332 = function ( attributes ) {
  4661. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4662. };
  4663. PHP.Parser.prototype.yyn333 = function ( attributes ) {
  4664. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4665. };
  4666. PHP.Parser.prototype.yyn334 = function ( attributes ) {
  4667. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4668. };
  4669. PHP.Parser.prototype.yyn335 = function ( attributes ) {
  4670. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(2-2) ], attributes);
  4671. };
  4672. PHP.Parser.prototype.yyn336 = function ( attributes ) {
  4673. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4674. };
  4675. PHP.Parser.prototype.yyn337 = function ( attributes ) {
  4676. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4677. };
  4678. PHP.Parser.prototype.yyn338 = function ( attributes ) {
  4679. this.yyval = this.Node_Expr_StaticPropertyFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-4) ], attributes);
  4680. };
  4681. PHP.Parser.prototype.yyn339 = function ( attributes ) {
  4682. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4683. };
  4684. PHP.Parser.prototype.yyn340 = function ( attributes ) {
  4685. this.yyval = this.Node_Expr_StaticPropertyFetch(this.yyastk[ this.stackPos-(3-1) ], this.yyastk[ this.stackPos-(3-3) ].substring( 1 ), attributes);
  4686. };
  4687. PHP.Parser.prototype.yyn341 = function ( attributes ) {
  4688. this.yyval = this.Node_Expr_StaticPropertyFetch(this.yyastk[ this.stackPos-(6-1) ], this.yyastk[ this.stackPos-(6-5) ], attributes);
  4689. };
  4690. PHP.Parser.prototype.yyn342 = function ( attributes ) {
  4691. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4692. };
  4693. PHP.Parser.prototype.yyn343 = function ( attributes ) {
  4694. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4695. };
  4696. PHP.Parser.prototype.yyn344 = function ( attributes ) {
  4697. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4698. };
  4699. PHP.Parser.prototype.yyn345 = function ( attributes ) {
  4700. this.yyval = this.Node_Expr_ArrayDimFetch(this.yyastk[ this.stackPos-(4-1) ], this.yyastk[ this.stackPos-(4-3) ], attributes);
  4701. };
  4702. PHP.Parser.prototype.yyn346 = function ( attributes ) {
  4703. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  4704. };
  4705. PHP.Parser.prototype.yyn347 = function ( attributes ) {
  4706. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-3) ], attributes);
  4707. };
  4708. PHP.Parser.prototype.yyn348 = function ( attributes ) {
  4709. this.yyval = null;
  4710. };
  4711. PHP.Parser.prototype.yyn349 = function ( attributes ) {
  4712. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4713. };
  4714. PHP.Parser.prototype.yyn350 = function ( attributes ) {
  4715. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4716. };
  4717. PHP.Parser.prototype.yyn351 = function ( attributes ) {
  4718. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4719. };
  4720. PHP.Parser.prototype.yyn352 = function ( attributes ) {
  4721. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4722. };
  4723. PHP.Parser.prototype.yyn353 = function ( attributes ) {
  4724. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4725. };
  4726. PHP.Parser.prototype.yyn354 = function ( attributes ) {
  4727. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4728. };
  4729. PHP.Parser.prototype.yyn355 = function ( attributes ) {
  4730. this.yyval = this.yyastk[ this.stackPos-(1-1) ];
  4731. };
  4732. PHP.Parser.prototype.yyn356 = function ( attributes ) {
  4733. this.yyval = this.yyastk[ this.stackPos-(4-3) ];
  4734. };
  4735. PHP.Parser.prototype.yyn357 = function ( attributes ) {
  4736. this.yyval = null;
  4737. };
  4738. PHP.Parser.prototype.yyn358 = function ( attributes ) {
  4739. this.yyval = [];
  4740. };
  4741. PHP.Parser.prototype.yyn359 = function ( attributes ) {
  4742. this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4743. };
  4744. PHP.Parser.prototype.yyn360 = function ( attributes ) {
  4745. this.yyastk[ this.stackPos-(3-1) ].push( this.yyastk[ this.stackPos-(3-3) ] ); this.yyval = this.yyastk[ this.stackPos-(3-1) ];
  4746. };
  4747. PHP.Parser.prototype.yyn361 = function ( attributes ) {
  4748. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4749. };
  4750. PHP.Parser.prototype.yyn362 = function ( attributes ) {
  4751. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(3-3) ], this.yyastk[ this.stackPos-(3-1) ], false, attributes);
  4752. };
  4753. PHP.Parser.prototype.yyn363 = function ( attributes ) {
  4754. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(1-1) ], null, false, attributes);
  4755. };
  4756. PHP.Parser.prototype.yyn364 = function ( attributes ) {
  4757. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(4-4) ], this.yyastk[ this.stackPos-(4-1) ], true, attributes);
  4758. };
  4759. PHP.Parser.prototype.yyn365 = function ( attributes ) {
  4760. this.yyval = this.Node_Expr_ArrayItem(this.yyastk[ this.stackPos-(2-2) ], null, true, attributes);
  4761. };
  4762. PHP.Parser.prototype.yyn366 = function ( attributes ) {
  4763. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4764. };
  4765. PHP.Parser.prototype.yyn367 = function ( attributes ) {
  4766. this.yyastk[ this.stackPos-(2-1) ].push( this.yyastk[ this.stackPos-(2-2) ] ); this.yyval = this.yyastk[ this.stackPos-(2-1) ];
  4767. };
  4768. PHP.Parser.prototype.yyn368 = function ( attributes ) {
  4769. this.yyval = [this.yyastk[ this.stackPos-(1-1) ]];
  4770. };
  4771. PHP.Parser.prototype.yyn369 = function ( attributes ) {
  4772. this.yyval = [this.yyastk[ this.stackPos-(2-1) ], this.yyastk[ this.stackPos-(2-2) ]];
  4773. };
  4774. PHP.Parser.prototype.yyn370 = function ( attributes ) {
  4775. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  4776. };
  4777. PHP.Parser.prototype.yyn371 = function ( attributes ) {
  4778. this.yyval = this.Node_Expr_ArrayDimFetch(this.Node_Expr_Variable(this.yyastk[ this.stackPos-(4-1) ].substring( 1 ), attributes), this.yyastk[ this.stackPos-(4-3) ], attributes);
  4779. };
  4780. PHP.Parser.prototype.yyn372 = function ( attributes ) {
  4781. this.yyval = this.Node_Expr_PropertyFetch(this.Node_Expr_Variable(this.yyastk[ this.stackPos-(3-1) ].substring( 1 ), attributes), this.yyastk[ this.stackPos-(3-3) ], attributes);
  4782. };
  4783. PHP.Parser.prototype.yyn373 = function ( attributes ) {
  4784. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4785. };
  4786. PHP.Parser.prototype.yyn374 = function ( attributes ) {
  4787. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(3-2) ], attributes);
  4788. };
  4789. PHP.Parser.prototype.yyn375 = function ( attributes ) {
  4790. this.yyval = this.Node_Expr_ArrayDimFetch(this.Node_Expr_Variable(this.yyastk[ this.stackPos-(6-2) ], attributes), this.yyastk[ this.stackPos-(6-4) ], attributes);
  4791. };
  4792. PHP.Parser.prototype.yyn376 = function ( attributes ) {
  4793. this.yyval = this.yyastk[ this.stackPos-(3-2) ];
  4794. };
  4795. PHP.Parser.prototype.yyn377 = function ( attributes ) {
  4796. this.yyval = this.Node_Scalar_String(this.yyastk[ this.stackPos-(1-1) ], attributes);
  4797. };
  4798. PHP.Parser.prototype.yyn378 = function ( attributes ) {
  4799. this.yyval = this.Node_Scalar_String(this.yyastk[ this.stackPos-(1-1) ], attributes);
  4800. };
  4801. PHP.Parser.prototype.yyn379 = function ( attributes ) {
  4802. this.yyval = this.Node_Expr_Variable(this.yyastk[ this.stackPos-(1-1) ].substring( 1 ), attributes);
  4803. };
  4804. PHP.Parser.prototype.Stmt_Namespace_postprocess = function( a ) {
  4805. return a;
  4806. };
  4807. PHP.Parser.prototype.Node_Stmt_Echo = function() {
  4808. return {
  4809. type: "Node_Stmt_Echo",
  4810. exprs: arguments[ 0 ],
  4811. attributes: arguments[ 1 ]
  4812. };
  4813. };
  4814. PHP.Parser.prototype.Node_Stmt_If = function() {
  4815. return {
  4816. type: "Node_Stmt_If",
  4817. cond: arguments[ 0 ],
  4818. stmts: arguments[ 1 ].stmts,
  4819. elseifs: arguments[ 1 ].elseifs,
  4820. Else: arguments[ 1 ].Else || null,
  4821. attributes: arguments[ 2 ]
  4822. };
  4823. };
  4824. PHP.Parser.prototype.Node_Stmt_For = function() {
  4825. return {
  4826. type: "Node_Stmt_For",
  4827. init: arguments[ 0 ].init,
  4828. cond: arguments[ 0 ].cond,
  4829. loop: arguments[ 0 ].loop,
  4830. stmts: arguments[ 0 ].stmts,
  4831. attributes: arguments[ 1 ]
  4832. };
  4833. };
  4834. PHP.Parser.prototype.Node_Stmt_Function = function() {
  4835. return {
  4836. type: "Node_Stmt_Function",
  4837. name: arguments[ 0 ],
  4838. byRef: arguments[ 1 ].byRef,
  4839. params: arguments[ 1 ].params,
  4840. stmts: arguments[ 1 ].stmts,
  4841. attributes: arguments[ 2 ]
  4842. };
  4843. };
  4844. PHP.Parser.prototype.Stmt_Class_verifyModifier = function() {
  4845. };
  4846. PHP.Parser.prototype.Node_Stmt_Class = function() {
  4847. return {
  4848. type: "Node_Stmt_Class",
  4849. name: arguments[ 0 ],
  4850. Type: arguments[ 1 ].type,
  4851. Extends: arguments[ 1 ].Extends,
  4852. Implements: arguments[ 1 ].Implements,
  4853. stmts: arguments[ 1 ].stmts,
  4854. attributes: arguments[ 2 ]
  4855. };
  4856. };
  4857. PHP.Parser.prototype.Node_Stmt_ClassMethod = function() {
  4858. return {
  4859. type: "Node_Stmt_ClassMethod",
  4860. name: arguments[ 0 ],
  4861. Type: arguments[ 1 ].type,
  4862. byRef: arguments[ 1 ].byRef,
  4863. params: arguments[ 1 ].params,
  4864. stmts: arguments[ 1 ].stmts,
  4865. attributes: arguments[ 2 ]
  4866. };
  4867. };
  4868. PHP.Parser.prototype.Node_Stmt_ClassConst = function() {
  4869. return {
  4870. type: "Node_Stmt_ClassConst",
  4871. consts: arguments[ 0 ],
  4872. attributes: arguments[ 1 ]
  4873. };
  4874. };
  4875. PHP.Parser.prototype.Node_Stmt_Interface = function() {
  4876. return {
  4877. type: "Node_Stmt_Interface",
  4878. name: arguments[ 0 ],
  4879. Extends: arguments[ 1 ].Extends,
  4880. stmts: arguments[ 1 ].stmts,
  4881. attributes: arguments[ 2 ]
  4882. };
  4883. };
  4884. PHP.Parser.prototype.Node_Stmt_Throw = function() {
  4885. return {
  4886. type: "Node_Stmt_Throw",
  4887. expr: arguments[ 0 ],
  4888. attributes: arguments[ 1 ]
  4889. };
  4890. };
  4891. PHP.Parser.prototype.Node_Stmt_Catch = function() {
  4892. return {
  4893. type: "Node_Stmt_Catch",
  4894. Type: arguments[ 0 ],
  4895. variable: arguments[ 1 ],
  4896. stmts: arguments[ 2 ],
  4897. attributes: arguments[ 3 ]
  4898. };
  4899. };
  4900. PHP.Parser.prototype.Node_Stmt_TryCatch = function() {
  4901. return {
  4902. type: "Node_Stmt_TryCatch",
  4903. stmts: arguments[ 0 ],
  4904. catches: arguments[ 1 ],
  4905. attributes: arguments[ 2 ]
  4906. };
  4907. };
  4908. PHP.Parser.prototype.Node_Stmt_Foreach = function() {
  4909. return {
  4910. type: "Node_Stmt_Foreach",
  4911. expr: arguments[ 0 ],
  4912. valueVar: arguments[ 1 ],
  4913. keyVar: arguments[ 2 ].keyVar,
  4914. byRef: arguments[ 2 ].byRef,
  4915. stmts: arguments[ 2 ].stmts,
  4916. attributes: arguments[ 3 ]
  4917. };
  4918. };
  4919. PHP.Parser.prototype.Node_Stmt_While = function() {
  4920. return {
  4921. type: "Node_Stmt_While",
  4922. cond: arguments[ 0 ],
  4923. stmts: arguments[ 1 ],
  4924. attributes: arguments[ 2 ]
  4925. };
  4926. };
  4927. PHP.Parser.prototype.Node_Stmt_Do = function() {
  4928. return {
  4929. type: "Node_Stmt_Do",
  4930. cond: arguments[ 0 ],
  4931. stmts: arguments[ 1 ],
  4932. attributes: arguments[ 2 ]
  4933. };
  4934. };
  4935. PHP.Parser.prototype.Node_Stmt_Break = function() {
  4936. return {
  4937. type: "Node_Stmt_Break",
  4938. num: arguments[ 0 ],
  4939. attributes: arguments[ 1 ]
  4940. };
  4941. };
  4942. PHP.Parser.prototype.Node_Stmt_Continue = function() {
  4943. return {
  4944. type: "Node_Stmt_Continue",
  4945. num: arguments[ 0 ],
  4946. attributes: arguments[ 1 ]
  4947. };
  4948. };
  4949. PHP.Parser.prototype.Node_Stmt_Return = function() {
  4950. return {
  4951. type: "Node_Stmt_Return",
  4952. expr: arguments[ 0 ],
  4953. attributes: arguments[ 1 ]
  4954. };
  4955. };
  4956. PHP.Parser.prototype.Node_Stmt_Case = function() {
  4957. return {
  4958. type: "Node_Stmt_Case",
  4959. cond: arguments[ 0 ],
  4960. stmts: arguments[ 1 ],
  4961. attributes: arguments[ 2 ]
  4962. };
  4963. };
  4964. PHP.Parser.prototype.Node_Stmt_Switch = function() {
  4965. return {
  4966. type: "Node_Stmt_Switch",
  4967. cond: arguments[ 0 ],
  4968. cases: arguments[ 1 ],
  4969. attributes: arguments[ 2 ]
  4970. };
  4971. };
  4972. PHP.Parser.prototype.Node_Stmt_Else = function() {
  4973. return {
  4974. type: "Node_Stmt_Else",
  4975. stmts: arguments[ 0 ],
  4976. attributes: arguments[ 1 ]
  4977. };
  4978. };
  4979. PHP.Parser.prototype.Node_Stmt_ElseIf = function() {
  4980. return {
  4981. type: "Node_Stmt_ElseIf",
  4982. cond: arguments[ 0 ],
  4983. stmts: arguments[ 1 ],
  4984. attributes: arguments[ 1 ]
  4985. };
  4986. };
  4987. PHP.Parser.prototype.Node_Stmt_InlineHTML = function() {
  4988. return {
  4989. type: "Node_Stmt_InlineHTML",
  4990. value: arguments[ 0 ],
  4991. attributes: arguments[ 1 ]
  4992. };
  4993. };
  4994. PHP.Parser.prototype.Node_Stmt_StaticVar = function() {
  4995. return {
  4996. type: "Node_Stmt_StaticVar",
  4997. name: arguments[ 0 ],
  4998. def: arguments[ 1 ],
  4999. attributes: arguments[ 2 ]
  5000. };
  5001. };
  5002. PHP.Parser.prototype.Node_Stmt_Static = function() {
  5003. return {
  5004. type: "Node_Stmt_Static",
  5005. vars: arguments[ 0 ],
  5006. attributes: arguments[ 1 ]
  5007. };
  5008. };
  5009. PHP.Parser.prototype.Node_Stmt_Global = function() {
  5010. return {
  5011. type: "Node_Stmt_Global",
  5012. vars: arguments[ 0 ],
  5013. attributes: arguments[ 1 ]
  5014. };
  5015. };
  5016. PHP.Parser.prototype.Node_Stmt_PropertyProperty = function() {
  5017. return {
  5018. type: "Node_Stmt_PropertyProperty",
  5019. name: arguments[ 0 ],
  5020. def: arguments[ 1 ],
  5021. attributes: arguments[ 2 ]
  5022. };
  5023. };
  5024. PHP.Parser.prototype.Node_Stmt_Property = function() {
  5025. return {
  5026. type: "Node_Stmt_Property",
  5027. Type: arguments[ 0 ],
  5028. props: arguments[ 1 ],
  5029. attributes: arguments[ 2 ]
  5030. };
  5031. };
  5032. PHP.Parser.prototype.Node_Stmt_Unset = function() {
  5033. return {
  5034. type: "Node_Stmt_Unset",
  5035. variables: arguments[ 0 ],
  5036. attributes: arguments[ 1 ]
  5037. };
  5038. };
  5039. PHP.Parser.prototype.Node_Expr_Variable = function( a ) {
  5040. return {
  5041. type: "Node_Expr_Variable",
  5042. name: arguments[ 0 ],
  5043. attributes: arguments[ 1 ]
  5044. };
  5045. };
  5046. PHP.Parser.prototype.Node_Expr_FuncCall = function() {
  5047. return {
  5048. type: "Node_Expr_FuncCall",
  5049. func: arguments[ 0 ],
  5050. args: arguments[ 1 ],
  5051. attributes: arguments[ 2 ]
  5052. };
  5053. };
  5054. PHP.Parser.prototype.Node_Expr_MethodCall = function() {
  5055. return {
  5056. type: "Node_Expr_MethodCall",
  5057. variable: arguments[ 0 ],
  5058. name: arguments[ 1 ],
  5059. args: arguments[ 2 ],
  5060. attributes: arguments[ 3 ]
  5061. };
  5062. };
  5063. PHP.Parser.prototype.Node_Expr_StaticCall = function() {
  5064. return {
  5065. type: "Node_Expr_StaticCall",
  5066. Class: arguments[ 0 ],
  5067. func: arguments[ 1 ],
  5068. args: arguments[ 2 ],
  5069. attributes: arguments[ 3 ]
  5070. };
  5071. };
  5072. PHP.Parser.prototype.Node_Expr_Ternary = function() {
  5073. return {
  5074. type: "Node_Expr_Ternary",
  5075. cond: arguments[ 0 ],
  5076. If: arguments[ 1 ],
  5077. Else: arguments[ 2 ],
  5078. attributes: arguments[ 3 ]
  5079. };
  5080. };
  5081. PHP.Parser.prototype.Node_Expr_AssignList = function() {
  5082. return {
  5083. type: "Node_Expr_AssignList",
  5084. assignList: arguments[ 0 ],
  5085. expr: arguments[ 1 ],
  5086. attributes: arguments[ 2 ]
  5087. };
  5088. };
  5089. PHP.Parser.prototype.Node_Expr_Assign = function() {
  5090. return {
  5091. type: "Node_Expr_Assign",
  5092. variable: arguments[ 0 ],
  5093. expr: arguments[ 1 ],
  5094. attributes: arguments[ 2 ]
  5095. };
  5096. };
  5097. PHP.Parser.prototype.Node_Expr_AssignConcat = function() {
  5098. return {
  5099. type: "Node_Expr_AssignConcat",
  5100. variable: arguments[ 0 ],
  5101. expr: arguments[ 1 ],
  5102. attributes: arguments[ 2 ]
  5103. };
  5104. };
  5105. PHP.Parser.prototype.Node_Expr_AssignMinus = function() {
  5106. return {
  5107. type: "Node_Expr_AssignMinus",
  5108. variable: arguments[ 0 ],
  5109. expr: arguments[ 1 ],
  5110. attributes: arguments[ 2 ]
  5111. };
  5112. };
  5113. PHP.Parser.prototype.Node_Expr_AssignPlus = function() {
  5114. return {
  5115. type: "Node_Expr_AssignPlus",
  5116. variable: arguments[ 0 ],
  5117. expr: arguments[ 1 ],
  5118. attributes: arguments[ 2 ]
  5119. };
  5120. };
  5121. PHP.Parser.prototype.Node_Expr_AssignDiv = function() {
  5122. return {
  5123. type: "Node_Expr_AssignDiv",
  5124. variable: arguments[ 0 ],
  5125. expr: arguments[ 1 ],
  5126. attributes: arguments[ 2 ]
  5127. };
  5128. };
  5129. PHP.Parser.prototype.Node_Expr_AssignRef = function() {
  5130. return {
  5131. type: "Node_Expr_AssignRef",
  5132. variable: arguments[ 0 ],
  5133. refVar: arguments[ 1 ],
  5134. attributes: arguments[ 2 ]
  5135. };
  5136. };
  5137. PHP.Parser.prototype.Node_Expr_AssignMul = function() {
  5138. return {
  5139. type: "Node_Expr_AssignMul",
  5140. variable: arguments[ 0 ],
  5141. expr: arguments[ 1 ],
  5142. attributes: arguments[ 2 ]
  5143. };
  5144. };
  5145. PHP.Parser.prototype.Node_Expr_AssignMod = function() {
  5146. return {
  5147. type: "Node_Expr_AssignMod",
  5148. variable: arguments[ 0 ],
  5149. expr: arguments[ 1 ],
  5150. attributes: arguments[ 2 ]
  5151. };
  5152. };
  5153. PHP.Parser.prototype.Node_Expr_Plus = function() {
  5154. return {
  5155. type: "Node_Expr_Plus",
  5156. left: arguments[ 0 ],
  5157. right: arguments[ 1 ],
  5158. attributes: arguments[ 2 ]
  5159. };
  5160. };
  5161. PHP.Parser.prototype.Node_Expr_Minus = function() {
  5162. return {
  5163. type: "Node_Expr_Minus",
  5164. left: arguments[ 0 ],
  5165. right: arguments[ 1 ],
  5166. attributes: arguments[ 2 ]
  5167. };
  5168. };
  5169. PHP.Parser.prototype.Node_Expr_Mul = function() {
  5170. return {
  5171. type: "Node_Expr_Mul",
  5172. left: arguments[ 0 ],
  5173. right: arguments[ 1 ],
  5174. attributes: arguments[ 2 ]
  5175. };
  5176. };
  5177. PHP.Parser.prototype.Node_Expr_Div = function() {
  5178. return {
  5179. type: "Node_Expr_Div",
  5180. left: arguments[ 0 ],
  5181. right: arguments[ 1 ],
  5182. attributes: arguments[ 2 ]
  5183. };
  5184. };
  5185. PHP.Parser.prototype.Node_Expr_Mod = function() {
  5186. return {
  5187. type: "Node_Expr_Mod",
  5188. left: arguments[ 0 ],
  5189. right: arguments[ 1 ],
  5190. attributes: arguments[ 2 ]
  5191. };
  5192. };
  5193. PHP.Parser.prototype.Node_Expr_Greater = function() {
  5194. return {
  5195. type: "Node_Expr_Greater",
  5196. left: arguments[ 0 ],
  5197. right: arguments[ 1 ],
  5198. attributes: arguments[ 2 ]
  5199. };
  5200. };
  5201. PHP.Parser.prototype.Node_Expr_Equal = function() {
  5202. return {
  5203. type: "Node_Expr_Equal",
  5204. left: arguments[ 0 ],
  5205. right: arguments[ 1 ],
  5206. attributes: arguments[ 2 ]
  5207. };
  5208. };
  5209. PHP.Parser.prototype.Node_Expr_NotEqual = function() {
  5210. return {
  5211. type: "Node_Expr_NotEqual",
  5212. left: arguments[ 0 ],
  5213. right: arguments[ 1 ],
  5214. attributes: arguments[ 2 ]
  5215. };
  5216. };
  5217. PHP.Parser.prototype.Node_Expr_Identical = function() {
  5218. return {
  5219. type: "Node_Expr_Identical",
  5220. left: arguments[ 0 ],
  5221. right: arguments[ 1 ],
  5222. attributes: arguments[ 2 ]
  5223. };
  5224. };
  5225. PHP.Parser.prototype.Node_Expr_NotIdentical = function() {
  5226. return {
  5227. type: "Node_Expr_NotIdentical",
  5228. left: arguments[ 0 ],
  5229. right: arguments[ 1 ],
  5230. attributes: arguments[ 2 ]
  5231. };
  5232. };
  5233. PHP.Parser.prototype.Node_Expr_GreaterOrEqual = function() {
  5234. return {
  5235. type: "Node_Expr_GreaterOrEqual",
  5236. left: arguments[ 0 ],
  5237. right: arguments[ 1 ],
  5238. attributes: arguments[ 2 ]
  5239. };
  5240. };
  5241. PHP.Parser.prototype.Node_Expr_SmallerOrEqual = function() {
  5242. return {
  5243. type: "Node_Expr_SmallerOrEqual",
  5244. left: arguments[ 0 ],
  5245. right: arguments[ 1 ],
  5246. attributes: arguments[ 2 ]
  5247. };
  5248. };
  5249. PHP.Parser.prototype.Node_Expr_Concat = function() {
  5250. return {
  5251. type: "Node_Expr_Concat",
  5252. left: arguments[ 0 ],
  5253. right: arguments[ 1 ],
  5254. attributes: arguments[ 2 ]
  5255. };
  5256. };
  5257. PHP.Parser.prototype.Node_Expr_Smaller = function() {
  5258. return {
  5259. type: "Node_Expr_Smaller",
  5260. left: arguments[ 0 ],
  5261. right: arguments[ 1 ],
  5262. attributes: arguments[ 2 ]
  5263. };
  5264. };
  5265. PHP.Parser.prototype.Node_Expr_PostInc = function() {
  5266. return {
  5267. type: "Node_Expr_PostInc",
  5268. variable: arguments[ 0 ],
  5269. attributes: arguments[ 1 ]
  5270. };
  5271. };
  5272. PHP.Parser.prototype.Node_Expr_PostDec = function() {
  5273. return {
  5274. type: "Node_Expr_PostDec",
  5275. variable: arguments[ 0 ],
  5276. attributes: arguments[ 1 ]
  5277. };
  5278. };
  5279. PHP.Parser.prototype.Node_Expr_PreInc = function() {
  5280. return {
  5281. type: "Node_Expr_PreInc",
  5282. variable: arguments[ 0 ],
  5283. attributes: arguments[ 1 ]
  5284. };
  5285. };
  5286. PHP.Parser.prototype.Node_Expr_PreDec = function() {
  5287. return {
  5288. type: "Node_Expr_PreDec",
  5289. variable: arguments[ 0 ],
  5290. attributes: arguments[ 1 ]
  5291. };
  5292. };
  5293. PHP.Parser.prototype.Node_Expr_Include = function() {
  5294. return {
  5295. expr: arguments[ 0 ],
  5296. type: arguments[ 1 ],
  5297. attributes: arguments[ 2 ]
  5298. };
  5299. };
  5300. PHP.Parser.prototype.Node_Expr_ArrayDimFetch = function() {
  5301. return {
  5302. type: "Node_Expr_ArrayDimFetch",
  5303. variable: arguments[ 0 ],
  5304. dim: arguments[ 1 ],
  5305. attributes: arguments[ 2 ]
  5306. };
  5307. };
  5308. PHP.Parser.prototype.Node_Expr_StaticPropertyFetch = function() {
  5309. return {
  5310. type: "Node_Expr_StaticPropertyFetch",
  5311. Class: arguments[ 0 ],
  5312. name: arguments[ 1 ],
  5313. attributes: arguments[ 2 ]
  5314. };
  5315. };
  5316. PHP.Parser.prototype.Node_Expr_ClassConstFetch = function() {
  5317. return {
  5318. type: "Node_Expr_ClassConstFetch",
  5319. Class: arguments[ 0 ],
  5320. name: arguments[ 1 ],
  5321. attributes: arguments[ 2 ]
  5322. };
  5323. };
  5324. PHP.Parser.prototype.Node_Expr_StaticPropertyFetch = function() {
  5325. return {
  5326. type: "Node_Expr_StaticPropertyFetch",
  5327. Class: arguments[ 0 ],
  5328. name: arguments[ 1 ],
  5329. attributes: arguments[ 2 ]
  5330. };
  5331. };
  5332. PHP.Parser.prototype.Node_Expr_ConstFetch = function() {
  5333. return {
  5334. type: "Node_Expr_ConstFetch",
  5335. name: arguments[ 0 ],
  5336. attributes: arguments[ 1 ]
  5337. };
  5338. };
  5339. PHP.Parser.prototype.Node_Expr_ArrayItem = function() {
  5340. return {
  5341. type: "Node_Expr_ArrayItem",
  5342. value: arguments[ 0 ],
  5343. key: arguments[ 1 ],
  5344. byRef: arguments[ 2 ],
  5345. attributes: arguments[ 3 ]
  5346. };
  5347. };
  5348. PHP.Parser.prototype.Node_Expr_Array = function() {
  5349. return {
  5350. type: "Node_Expr_Array",
  5351. items: arguments[ 0 ],
  5352. attributes: arguments[ 1 ]
  5353. };
  5354. };
  5355. PHP.Parser.prototype.Node_Expr_PropertyFetch = function() {
  5356. return {
  5357. type: "Node_Expr_PropertyFetch",
  5358. variable: arguments[ 0 ],
  5359. name: arguments[ 1 ],
  5360. attributes: arguments[ 2 ]
  5361. };
  5362. };
  5363. PHP.Parser.prototype.Node_Expr_New = function() {
  5364. return {
  5365. type: "Node_Expr_New",
  5366. Class: arguments[ 0 ],
  5367. args: arguments[ 1 ],
  5368. attributes: arguments[ 2 ]
  5369. };
  5370. };
  5371. PHP.Parser.prototype.Node_Expr_Print = function() {
  5372. return {
  5373. type: "Node_Expr_Print",
  5374. expr: arguments[ 0 ],
  5375. attributes: arguments[ 1 ]
  5376. };
  5377. };
  5378. PHP.Parser.prototype.Node_Expr_Exit = function() {
  5379. return {
  5380. type: "Node_Expr_Exit",
  5381. expr: arguments[ 0 ],
  5382. attributes: arguments[ 1 ]
  5383. };
  5384. };
  5385. PHP.Parser.prototype.Node_Expr_Cast_Bool = function() {
  5386. return {
  5387. type: "Node_Expr_Cast_Bool",
  5388. expr: arguments[ 0 ],
  5389. attributes: arguments[ 1 ]
  5390. };
  5391. };
  5392. PHP.Parser.prototype.Node_Expr_Cast_Int = function() {
  5393. return {
  5394. type: "Node_Expr_Cast_Int",
  5395. expr: arguments[ 0 ],
  5396. attributes: arguments[ 1 ]
  5397. };
  5398. };
  5399. PHP.Parser.prototype.Node_Expr_Cast_String = function() {
  5400. return {
  5401. type: "Node_Expr_Cast_String",
  5402. expr: arguments[ 0 ],
  5403. attributes: arguments[ 1 ]
  5404. };
  5405. };
  5406. PHP.Parser.prototype.Node_Expr_Cast_Double = function() {
  5407. return {
  5408. type: "Node_Expr_Cast_Double",
  5409. expr: arguments[ 0 ],
  5410. attributes: arguments[ 1 ]
  5411. };
  5412. };
  5413. PHP.Parser.prototype.Node_Expr_Cast_Array = function() {
  5414. return {
  5415. type: "Node_Expr_Cast_Array",
  5416. expr: arguments[ 0 ],
  5417. attributes: arguments[ 1 ]
  5418. };
  5419. };
  5420. PHP.Parser.prototype.Node_Expr_Cast_Object = function() {
  5421. return {
  5422. type: "Node_Expr_Cast_Object",
  5423. expr: arguments[ 0 ],
  5424. attributes: arguments[ 1 ]
  5425. };
  5426. };
  5427. PHP.Parser.prototype.Node_Expr_ErrorSuppress = function() {
  5428. return {
  5429. type: "Node_Expr_ErrorSuppress",
  5430. expr: arguments[ 0 ],
  5431. attributes: arguments[ 1 ]
  5432. };
  5433. };
  5434. PHP.Parser.prototype.Node_Expr_Isset = function() {
  5435. return {
  5436. type: "Node_Expr_Isset",
  5437. variables: arguments[ 0 ],
  5438. attributes: arguments[ 1 ]
  5439. };
  5440. };
  5441. PHP.Parser.prototype.Node_Expr_UnaryMinus = function() {
  5442. return {
  5443. type: "Node_Expr_UnaryMinus",
  5444. expr: arguments[ 0 ],
  5445. attributes: arguments[ 1 ]
  5446. };
  5447. };
  5448. PHP.Parser.prototype.Node_Expr_UnaryPlus = function() {
  5449. return {
  5450. type: "Node_Expr_UnaryPlus",
  5451. expr: arguments[ 0 ],
  5452. attributes: arguments[ 1 ]
  5453. };
  5454. };
  5455. PHP.Parser.prototype.Node_Expr_Empty = function() {
  5456. return {
  5457. type: "Node_Expr_Empty",
  5458. variable: arguments[ 0 ],
  5459. attributes: arguments[ 1 ]
  5460. };
  5461. };
  5462. PHP.Parser.prototype.Node_Expr_BooleanOr = function() {
  5463. return {
  5464. type: "Node_Expr_BooleanOr",
  5465. left: arguments[ 0 ],
  5466. right: arguments[ 1 ],
  5467. attributes: arguments[ 2 ]
  5468. };
  5469. };
  5470. PHP.Parser.prototype.Node_Expr_LogicalOr = function() {
  5471. return {
  5472. type: "Node_Expr_LogicalOr",
  5473. left: arguments[ 0 ],
  5474. right: arguments[ 1 ],
  5475. attributes: arguments[ 2 ]
  5476. };
  5477. };
  5478. PHP.Parser.prototype.Node_Expr_LogicalAnd = function() {
  5479. return {
  5480. type: "Node_Expr_LogicalAnd",
  5481. left: arguments[ 0 ],
  5482. right: arguments[ 1 ],
  5483. attributes: arguments[ 2 ]
  5484. };
  5485. };
  5486. PHP.Parser.prototype.Node_Expr_LogicalXor = function() {
  5487. return {
  5488. type: "Node_Expr_LogicalXor",
  5489. left: arguments[ 0 ],
  5490. right: arguments[ 1 ],
  5491. attributes: arguments[ 2 ]
  5492. };
  5493. };
  5494. PHP.Parser.prototype.Node_Expr_BitwiseAnd = function() {
  5495. return {
  5496. type: "Node_Expr_BitwiseAnd",
  5497. left: arguments[ 0 ],
  5498. right: arguments[ 1 ],
  5499. attributes: arguments[ 2 ]
  5500. };
  5501. };
  5502. PHP.Parser.prototype.Node_Expr_BitwiseOr = function() {
  5503. return {
  5504. type: "Node_Expr_BitwiseOr",
  5505. left: arguments[ 0 ],
  5506. right: arguments[ 1 ],
  5507. attributes: arguments[ 2 ]
  5508. };
  5509. };
  5510. PHP.Parser.prototype.Node_Expr_BitwiseNot = function() {
  5511. return {
  5512. type: "Node_Expr_BitwiseNot",
  5513. expr: arguments[ 0 ],
  5514. attributes: arguments[ 1 ]
  5515. };
  5516. };
  5517. PHP.Parser.prototype.Node_Expr_BooleanNot = function() {
  5518. return {
  5519. type: "Node_Expr_BooleanNot",
  5520. expr: arguments[ 0 ],
  5521. attributes: arguments[ 1 ]
  5522. };
  5523. };
  5524. PHP.Parser.prototype.Node_Expr_BooleanAnd = function() {
  5525. return {
  5526. type: "Node_Expr_BooleanAnd",
  5527. left: arguments[ 0 ],
  5528. right: arguments[ 1 ],
  5529. attributes: arguments[ 2 ]
  5530. };
  5531. };
  5532. PHP.Parser.prototype.Node_Expr_Instanceof = function() {
  5533. return {
  5534. type: "Node_Expr_Instanceof",
  5535. left: arguments[ 0 ],
  5536. right: arguments[ 1 ],
  5537. attributes: arguments[ 2 ]
  5538. };
  5539. };
  5540. PHP.Parser.prototype.Node_Expr_Clone = function() {
  5541. return {
  5542. type: "Node_Expr_Clone",
  5543. expr: arguments[ 0 ],
  5544. attributes: arguments[ 1 ]
  5545. };
  5546. };
  5547. PHP.Parser.prototype.Scalar_LNumber_parse = function( a ) {
  5548. return a;
  5549. };
  5550. PHP.Parser.prototype.Scalar_DNumber_parse = function( a ) {
  5551. return a;
  5552. };
  5553. PHP.Parser.prototype.Scalar_String_parseDocString = function() {
  5554. return '"' + arguments[ 1 ].replace(/([^"\\]*(?:\\.[^"\\]*)*)"/g, '$1\\"') + '"';
  5555. };
  5556. PHP.Parser.prototype.Node_Scalar_String = function( ) {
  5557. return {
  5558. type: "Node_Scalar_String",
  5559. value: arguments[ 0 ],
  5560. attributes: arguments[ 1 ]
  5561. };
  5562. };
  5563. PHP.Parser.prototype.Scalar_String_create = function( ) {
  5564. return {
  5565. type: "Node_Scalar_String",
  5566. value: arguments[ 0 ],
  5567. attributes: arguments[ 1 ]
  5568. };
  5569. };
  5570. PHP.Parser.prototype.Node_Scalar_LNumber = function() {
  5571. return {
  5572. type: "Node_Scalar_LNumber",
  5573. value: arguments[ 0 ],
  5574. attributes: arguments[ 1 ]
  5575. };
  5576. };
  5577. PHP.Parser.prototype.Node_Scalar_DNumber = function() {
  5578. return {
  5579. type: "Node_Scalar_DNumber",
  5580. value: arguments[ 0 ],
  5581. attributes: arguments[ 1 ]
  5582. };
  5583. };
  5584. PHP.Parser.prototype.Node_Scalar_Encapsed = function() {
  5585. return {
  5586. type: "Node_Scalar_Encapsed",
  5587. parts: arguments[ 0 ],
  5588. attributes: arguments[ 1 ]
  5589. };
  5590. };
  5591. PHP.Parser.prototype.Node_Name = function() {
  5592. return {
  5593. type: "Node_Name",
  5594. parts: arguments[ 0 ],
  5595. attributes: arguments[ 1 ]
  5596. };
  5597. };
  5598. PHP.Parser.prototype.Node_Param = function() {
  5599. return {
  5600. type: "Node_Param",
  5601. name: arguments[ 0 ],
  5602. def: arguments[ 1 ],
  5603. Type: arguments[ 2 ],
  5604. byRef: arguments[ 3 ],
  5605. attributes: arguments[ 4 ]
  5606. };
  5607. };
  5608. PHP.Parser.prototype.Node_Arg = function() {
  5609. return {
  5610. type: "Node_Name",
  5611. value: arguments[ 0 ],
  5612. byRef: arguments[ 1 ],
  5613. attributes: arguments[ 2 ]
  5614. };
  5615. };
  5616. PHP.Parser.prototype.Node_Const = function() {
  5617. return {
  5618. type: "Node_Const",
  5619. name: arguments[ 0 ],
  5620. value: arguments[ 1 ],
  5621. attributes: arguments[ 2 ]
  5622. };
  5623. };
  5624. exports.PHP = PHP;
  5625. });