ace-oqc 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -0
- package/src-noconflict/ace.js +21402 -0
- package/src-noconflict/ext-beautify.js +331 -0
- package/src-noconflict/ext-elastic_tabstops_lite.js +277 -0
- package/src-noconflict/ext-emmet.js +1331 -0
- package/src-noconflict/ext-error_marker.js +9 -0
- package/src-noconflict/ext-keybinding_menu.js +193 -0
- package/src-noconflict/ext-language_tools.js +2166 -0
- package/src-noconflict/ext-linking.js +64 -0
- package/src-noconflict/ext-modelist.js +248 -0
- package/src-noconflict/ext-options.js +799 -0
- package/src-noconflict/ext-prompt.js +2806 -0
- package/src-noconflict/ext-rtl.js +122 -0
- package/src-noconflict/ext-searchbox.js +514 -0
- package/src-noconflict/ext-settings_menu.js +820 -0
- package/src-noconflict/ext-spellcheck.js +73 -0
- package/src-noconflict/ext-split.js +207 -0
- package/src-noconflict/ext-static_highlight.js +229 -0
- package/src-noconflict/ext-statusbar.js +56 -0
- package/src-noconflict/ext-textarea.js +430 -0
- package/src-noconflict/ext-themelist.js +67 -0
- package/src-noconflict/ext-whitespace.js +213 -0
- package/src-noconflict/keybinding-emacs.js +1169 -0
- package/src-noconflict/keybinding-sublime.js +422 -0
- package/src-noconflict/keybinding-vim.js +6198 -0
- package/src-noconflict/mode-abap.js +221 -0
- package/src-noconflict/mode-abc.js +271 -0
- package/src-noconflict/mode-actionscript.js +275 -0
- package/src-noconflict/mode-ada.js +137 -0
- package/src-noconflict/mode-apache_conf.js +363 -0
- package/src-noconflict/mode-apex.js +457 -0
- package/src-noconflict/mode-applescript.js +278 -0
- package/src-noconflict/mode-aql.js +102 -0
- package/src-noconflict/mode-asciidoc.js +349 -0
- package/src-noconflict/mode-asl.js +422 -0
- package/src-noconflict/mode-assembly_x86.js +193 -0
- package/src-noconflict/mode-autohotkey.js +244 -0
- package/src-noconflict/mode-batchfile.js +230 -0
- package/src-noconflict/mode-c9search.js +293 -0
- package/src-noconflict/mode-c_cpp.js +503 -0
- package/src-noconflict/mode-cirru.js +210 -0
- package/src-noconflict/mode-clojure.js +315 -0
- package/src-noconflict/mode-cobol.js +101 -0
- package/src-noconflict/mode-coffee.js +400 -0
- package/src-noconflict/mode-coldfusion.js +2596 -0
- package/src-noconflict/mode-crystal.js +642 -0
- package/src-noconflict/mode-csharp.js +502 -0
- package/src-noconflict/mode-csound_document.js +4105 -0
- package/src-noconflict/mode-csound_orchestra.js +3035 -0
- package/src-noconflict/mode-csound_score.js +462 -0
- package/src-noconflict/mode-csp.js +59 -0
- package/src-noconflict/mode-css.js +720 -0
- package/src-noconflict/mode-curly.js +2564 -0
- package/src-noconflict/mode-d.js +520 -0
- package/src-noconflict/mode-dart.js +715 -0
- package/src-noconflict/mode-diff.js +147 -0
- package/src-noconflict/mode-django.js +2595 -0
- package/src-noconflict/mode-dockerfile.js +500 -0
- package/src-noconflict/mode-dot.js +417 -0
- package/src-noconflict/mode-drools.js +498 -0
- package/src-noconflict/mode-edifact.js +166 -0
- package/src-noconflict/mode-eiffel.js +135 -0
- package/src-noconflict/mode-ejs.js +3533 -0
- package/src-noconflict/mode-elixir.js +501 -0
- package/src-noconflict/mode-elm.js +306 -0
- package/src-noconflict/mode-erlang.js +1010 -0
- package/src-noconflict/mode-forth.js +297 -0
- package/src-noconflict/mode-fortran.js +430 -0
- package/src-noconflict/mode-fsharp.js +316 -0
- package/src-noconflict/mode-fsl.js +259 -0
- package/src-noconflict/mode-ftl.js +1193 -0
- package/src-noconflict/mode-gcode.js +93 -0
- package/src-noconflict/mode-gherkin.js +168 -0
- package/src-noconflict/mode-gitignore.js +59 -0
- package/src-noconflict/mode-glsl.js +580 -0
- package/src-noconflict/mode-gobstones.js +1090 -0
- package/src-noconflict/mode-golang.js +413 -0
- package/src-noconflict/mode-graphqlschema.js +214 -0
- package/src-noconflict/mode-groovy.js +989 -0
- package/src-noconflict/mode-haml.js +1873 -0
- package/src-noconflict/mode-handlebars.js +2622 -0
- package/src-noconflict/mode-haskell.js +380 -0
- package/src-noconflict/mode-haskell_cabal.js +141 -0
- package/src-noconflict/mode-haxe.js +386 -0
- package/src-noconflict/mode-hjson.js +353 -0
- package/src-noconflict/mode-html.js +2509 -0
- package/src-noconflict/mode-html_elixir.js +3088 -0
- package/src-noconflict/mode-html_ruby.js +3550 -0
- package/src-noconflict/mode-ini.js +162 -0
- package/src-noconflict/mode-io.js +248 -0
- package/src-noconflict/mode-jack.js +346 -0
- package/src-noconflict/mode-jade.js +2025 -0
- package/src-noconflict/mode-java.js +1038 -0
- package/src-noconflict/mode-javascript.js +798 -0
- package/src-noconflict/mode-json.js +329 -0
- package/src-noconflict/mode-jsoniq.js +2632 -0
- package/src-noconflict/mode-jsp.js +1433 -0
- package/src-noconflict/mode-jssm.js +325 -0
- package/src-noconflict/mode-jsx.js +411 -0
- package/src-noconflict/mode-julia.js +303 -0
- package/src-noconflict/mode-kotlin.js +797 -0
- package/src-noconflict/mode-latex.js +296 -0
- package/src-noconflict/mode-less.js +839 -0
- package/src-noconflict/mode-liquid.js +2742 -0
- package/src-noconflict/mode-lisp.js +112 -0
- package/src-noconflict/mode-livescript.js +279 -0
- package/src-noconflict/mode-logiql.js +317 -0
- package/src-noconflict/mode-logtalk.js +352 -0
- package/src-noconflict/mode-lsl.js +343 -0
- package/src-noconflict/mode-lua.js +452 -0
- package/src-noconflict/mode-luapage.js +3028 -0
- package/src-noconflict/mode-lucene.js +154 -0
- package/src-noconflict/mode-makefile.js +412 -0
- package/src-noconflict/mode-markdown.js +3194 -0
- package/src-noconflict/mode-mask.js +1803 -0
- package/src-noconflict/mode-matlab.js +263 -0
- package/src-noconflict/mode-maze.js +292 -0
- package/src-noconflict/mode-mel.js +263 -0
- package/src-noconflict/mode-mixal.js +122 -0
- package/src-noconflict/mode-mushcode.js +681 -0
- package/src-noconflict/mode-mysql.js +167 -0
- package/src-noconflict/mode-nginx.js +298 -0
- package/src-noconflict/mode-nim.js +363 -0
- package/src-noconflict/mode-nix.js +647 -0
- package/src-noconflict/mode-nsis.js +312 -0
- package/src-noconflict/mode-objectivec.js +740 -0
- package/src-noconflict/mode-ocaml.js +421 -0
- package/src-noconflict/mode-pascal.js +223 -0
- package/src-noconflict/mode-perl.js +381 -0
- package/src-noconflict/mode-pgsql.js +1743 -0
- package/src-noconflict/mode-php.js +13110 -0
- package/src-noconflict/mode-php_laravel_blade.js +13311 -0
- package/src-noconflict/mode-pig.js +310 -0
- package/src-noconflict/mode-plain_text.js +32 -0
- package/src-noconflict/mode-powershell.js +418 -0
- package/src-noconflict/mode-praat.js +478 -0
- package/src-noconflict/mode-prolog.js +371 -0
- package/src-noconflict/mode-properties.js +80 -0
- package/src-noconflict/mode-protobuf.js +593 -0
- package/src-noconflict/mode-puppet.js +368 -0
- package/src-noconflict/mode-python.js +508 -0
- package/src-noconflict/mode-r.js +312 -0
- package/src-noconflict/mode-razor.js +2875 -0
- package/src-noconflict/mode-rdoc.js +243 -0
- package/src-noconflict/mode-red.js +450 -0
- package/src-noconflict/mode-redshift.js +360 -0
- package/src-noconflict/mode-rhtml.js +2808 -0
- package/src-noconflict/mode-rst.js +257 -0
- package/src-noconflict/mode-ruby.js +1003 -0
- package/src-noconflict/mode-rust.js +282 -0
- package/src-noconflict/mode-sass.js +529 -0
- package/src-noconflict/mode-scad.js +414 -0
- package/src-noconflict/mode-scala.js +984 -0
- package/src-noconflict/mode-scheme.js +232 -0
- package/src-noconflict/mode-scss.js +873 -0
- package/src-noconflict/mode-sh.js +449 -0
- package/src-noconflict/mode-sjs.js +1015 -0
- package/src-noconflict/mode-slim.js +5240 -0
- package/src-noconflict/mode-smarty.js +2635 -0
- package/src-noconflict/mode-snippets.js +207 -0
- package/src-noconflict/mode-soy_template.js +2848 -0
- package/src-noconflict/mode-space.js +167 -0
- package/src-noconflict/mode-sparql.js +320 -0
- package/src-noconflict/mode-sql.js +271 -0
- package/src-noconflict/mode-sqlserver.js +445 -0
- package/src-noconflict/mode-stylus.js +472 -0
- package/src-noconflict/mode-svg.js +1582 -0
- package/src-noconflict/mode-swift.js +395 -0
- package/src-noconflict/mode-tcl.js +387 -0
- package/src-noconflict/mode-terraform.js +400 -0
- package/src-noconflict/mode-tex.js +160 -0
- package/src-noconflict/mode-text.js +9 -0
- package/src-noconflict/mode-textile.js +150 -0
- package/src-noconflict/mode-toml.js +153 -0
- package/src-noconflict/mode-tsx.js +888 -0
- package/src-noconflict/mode-turtle.js +296 -0
- package/src-noconflict/mode-twig.js +2693 -0
- package/src-noconflict/mode-typescript.js +869 -0
- package/src-noconflict/mode-vala.js +677 -0
- package/src-noconflict/mode-vbscript.js +635 -0
- package/src-noconflict/mode-velocity.js +2792 -0
- package/src-noconflict/mode-verilog.js +118 -0
- package/src-noconflict/mode-vhdl.js +116 -0
- package/src-noconflict/mode-visualforce.js +2640 -0
- package/src-noconflict/mode-wollok.js +914 -0
- package/src-noconflict/mode-xml.js +676 -0
- package/src-noconflict/mode-xquery.js +2644 -0
- package/src-noconflict/mode-yaml.js +330 -0
- package/src-noconflict/mode-zeek.js +539 -0
- package/src-noconflict/qurator-mode.js +120 -0
- package/src-noconflict/qurator-worker.js +91 -0
- package/src-noconflict/snippets/abap.js +9 -0
- package/src-noconflict/snippets/abc.js +45 -0
- package/src-noconflict/snippets/actionscript.js +171 -0
- package/src-noconflict/snippets/ada.js +9 -0
- package/src-noconflict/snippets/apache_conf.js +9 -0
- package/src-noconflict/snippets/apex.js +9 -0
- package/src-noconflict/snippets/applescript.js +9 -0
- package/src-noconflict/snippets/aql.js +9 -0
- package/src-noconflict/snippets/asciidoc.js +9 -0
- package/src-noconflict/snippets/asl.js +9 -0
- package/src-noconflict/snippets/assembly_x86.js +9 -0
- package/src-noconflict/snippets/autohotkey.js +9 -0
- package/src-noconflict/snippets/batchfile.js +9 -0
- package/src-noconflict/snippets/c9search.js +9 -0
- package/src-noconflict/snippets/c_cpp.js +145 -0
- package/src-noconflict/snippets/cirru.js +9 -0
- package/src-noconflict/snippets/clojure.js +104 -0
- package/src-noconflict/snippets/cobol.js +9 -0
- package/src-noconflict/snippets/coffee.js +109 -0
- package/src-noconflict/snippets/coldfusion.js +9 -0
- package/src-noconflict/snippets/crystal.js +9 -0
- package/src-noconflict/snippets/csharp.js +9 -0
- package/src-noconflict/snippets/csound_document.js +24 -0
- package/src-noconflict/snippets/csound_orchestra.js +61 -0
- package/src-noconflict/snippets/csound_score.js +9 -0
- package/src-noconflict/snippets/csp.js +9 -0
- package/src-noconflict/snippets/css.js +981 -0
- package/src-noconflict/snippets/curly.js +9 -0
- package/src-noconflict/snippets/d.js +9 -0
- package/src-noconflict/snippets/dart.js +97 -0
- package/src-noconflict/snippets/diff.js +25 -0
- package/src-noconflict/snippets/django.js +122 -0
- package/src-noconflict/snippets/dockerfile.js +9 -0
- package/src-noconflict/snippets/dot.js +9 -0
- package/src-noconflict/snippets/drools.js +33 -0
- package/src-noconflict/snippets/edifact.js +254 -0
- package/src-noconflict/snippets/eiffel.js +9 -0
- package/src-noconflict/snippets/ejs.js +9 -0
- package/src-noconflict/snippets/elixir.js +9 -0
- package/src-noconflict/snippets/elm.js +9 -0
- package/src-noconflict/snippets/erlang.js +174 -0
- package/src-noconflict/snippets/forth.js +9 -0
- package/src-noconflict/snippets/fortran.js +9 -0
- package/src-noconflict/snippets/fsharp.js +9 -0
- package/src-noconflict/snippets/fsl.js +14 -0
- package/src-noconflict/snippets/ftl.js +9 -0
- package/src-noconflict/snippets/gcode.js +9 -0
- package/src-noconflict/snippets/gherkin.js +9 -0
- package/src-noconflict/snippets/gitignore.js +9 -0
- package/src-noconflict/snippets/glsl.js +9 -0
- package/src-noconflict/snippets/gobstones.js +1718 -0
- package/src-noconflict/snippets/golang.js +9 -0
- package/src-noconflict/snippets/graphqlschema.js +46 -0
- package/src-noconflict/snippets/groovy.js +9 -0
- package/src-noconflict/snippets/haml.js +34 -0
- package/src-noconflict/snippets/handlebars.js +9 -0
- package/src-noconflict/snippets/haskell.js +96 -0
- package/src-noconflict/snippets/haskell_cabal.js +9 -0
- package/src-noconflict/snippets/haxe.js +9 -0
- package/src-noconflict/snippets/hjson.js +9 -0
- package/src-noconflict/snippets/html.js +867 -0
- package/src-noconflict/snippets/html_elixir.js +9 -0
- package/src-noconflict/snippets/html_ruby.js +9 -0
- package/src-noconflict/snippets/ini.js +9 -0
- package/src-noconflict/snippets/io.js +76 -0
- package/src-noconflict/snippets/jack.js +9 -0
- package/src-noconflict/snippets/jade.js +9 -0
- package/src-noconflict/snippets/java.js +254 -0
- package/src-noconflict/snippets/javascript.js +209 -0
- package/src-noconflict/snippets/json.js +9 -0
- package/src-noconflict/snippets/jsoniq.js +75 -0
- package/src-noconflict/snippets/jsp.js +113 -0
- package/src-noconflict/snippets/jssm.js +9 -0
- package/src-noconflict/snippets/jsx.js +9 -0
- package/src-noconflict/snippets/julia.js +9 -0
- package/src-noconflict/snippets/kotlin.js +9 -0
- package/src-noconflict/snippets/latex.js +9 -0
- package/src-noconflict/snippets/less.js +9 -0
- package/src-noconflict/snippets/liquid.js +895 -0
- package/src-noconflict/snippets/lisp.js +9 -0
- package/src-noconflict/snippets/livescript.js +9 -0
- package/src-noconflict/snippets/logiql.js +9 -0
- package/src-noconflict/snippets/logtalk.js +9 -0
- package/src-noconflict/snippets/lsl.js +1246 -0
- package/src-noconflict/snippets/lua.js +35 -0
- package/src-noconflict/snippets/luapage.js +9 -0
- package/src-noconflict/snippets/lucene.js +9 -0
- package/src-noconflict/snippets/makefile.js +18 -0
- package/src-noconflict/snippets/markdown.js +102 -0
- package/src-noconflict/snippets/mask.js +9 -0
- package/src-noconflict/snippets/matlab.js +9 -0
- package/src-noconflict/snippets/maze.js +23 -0
- package/src-noconflict/snippets/mel.js +9 -0
- package/src-noconflict/snippets/mixal.js +9 -0
- package/src-noconflict/snippets/mushcode.js +9 -0
- package/src-noconflict/snippets/mysql.js +9 -0
- package/src-noconflict/snippets/nginx.js +9 -0
- package/src-noconflict/snippets/nim.js +9 -0
- package/src-noconflict/snippets/nix.js +9 -0
- package/src-noconflict/snippets/nsis.js +9 -0
- package/src-noconflict/snippets/objectivec.js +9 -0
- package/src-noconflict/snippets/ocaml.js +9 -0
- package/src-noconflict/snippets/pascal.js +9 -0
- package/src-noconflict/snippets/perl.js +361 -0
- package/src-noconflict/snippets/pgsql.js +9 -0
- package/src-noconflict/snippets/php.js +397 -0
- package/src-noconflict/snippets/php_laravel_blade.js +9 -0
- package/src-noconflict/snippets/pig.js +9 -0
- package/src-noconflict/snippets/plain_text.js +9 -0
- package/src-noconflict/snippets/powershell.js +9 -0
- package/src-noconflict/snippets/praat.js +9 -0
- package/src-noconflict/snippets/prolog.js +9 -0
- package/src-noconflict/snippets/properties.js +9 -0
- package/src-noconflict/snippets/protobuf.js +9 -0
- package/src-noconflict/snippets/puppet.js +9 -0
- package/src-noconflict/snippets/python.js +172 -0
- package/src-noconflict/snippets/r.js +135 -0
- package/src-noconflict/snippets/razor.js +17 -0
- package/src-noconflict/snippets/rdoc.js +9 -0
- package/src-noconflict/snippets/red.js +9 -0
- package/src-noconflict/snippets/redshift.js +9 -0
- package/src-noconflict/snippets/rhtml.js +9 -0
- package/src-noconflict/snippets/rst.js +36 -0
- package/src-noconflict/snippets/ruby.js +942 -0
- package/src-noconflict/snippets/rust.js +9 -0
- package/src-noconflict/snippets/sass.js +9 -0
- package/src-noconflict/snippets/scad.js +9 -0
- package/src-noconflict/snippets/scala.js +9 -0
- package/src-noconflict/snippets/scheme.js +9 -0
- package/src-noconflict/snippets/scss.js +9 -0
- package/src-noconflict/snippets/sh.js +97 -0
- package/src-noconflict/snippets/sjs.js +9 -0
- package/src-noconflict/snippets/slim.js +9 -0
- package/src-noconflict/snippets/smarty.js +9 -0
- package/src-noconflict/snippets/snippets.js +23 -0
- package/src-noconflict/snippets/soy_template.js +9 -0
- package/src-noconflict/snippets/space.js +9 -0
- package/src-noconflict/snippets/sparql.js +9 -0
- package/src-noconflict/snippets/sql.js +40 -0
- package/src-noconflict/snippets/sqlserver.js +83 -0
- package/src-noconflict/snippets/stylus.js +9 -0
- package/src-noconflict/snippets/svg.js +9 -0
- package/src-noconflict/snippets/swift.js +9 -0
- package/src-noconflict/snippets/tcl.js +106 -0
- package/src-noconflict/snippets/terraform.js +9 -0
- package/src-noconflict/snippets/tex.js +204 -0
- package/src-noconflict/snippets/text.js +9 -0
- package/src-noconflict/snippets/textile.js +44 -0
- package/src-noconflict/snippets/toml.js +9 -0
- package/src-noconflict/snippets/tsx.js +9 -0
- package/src-noconflict/snippets/turtle.js +9 -0
- package/src-noconflict/snippets/twig.js +9 -0
- package/src-noconflict/snippets/typescript.js +9 -0
- package/src-noconflict/snippets/vala.js +200 -0
- package/src-noconflict/snippets/vbscript.js +9 -0
- package/src-noconflict/snippets/velocity.js +43 -0
- package/src-noconflict/snippets/verilog.js +9 -0
- package/src-noconflict/snippets/vhdl.js +9 -0
- package/src-noconflict/snippets/visualforce.js +9 -0
- package/src-noconflict/snippets/wollok.js +98 -0
- package/src-noconflict/snippets/xml.js +9 -0
- package/src-noconflict/snippets/xquery.js +75 -0
- package/src-noconflict/snippets/yaml.js +9 -0
- package/src-noconflict/snippets/zeek.js +9 -0
- package/src-noconflict/theme-ambiance.js +185 -0
- package/src-noconflict/theme-chaos.js +163 -0
- package/src-noconflict/theme-chrome.js +135 -0
- package/src-noconflict/theme-clouds.js +102 -0
- package/src-noconflict/theme-clouds_midnight.js +103 -0
- package/src-noconflict/theme-cobalt.js +120 -0
- package/src-noconflict/theme-crimson_editor.js +125 -0
- package/src-noconflict/theme-dawn.js +115 -0
- package/src-noconflict/theme-dracula.js +135 -0
- package/src-noconflict/theme-dreamweaver.js +148 -0
- package/src-noconflict/theme-eclipse.js +105 -0
- package/src-noconflict/theme-github.js +110 -0
- package/src-noconflict/theme-gob.js +119 -0
- package/src-noconflict/theme-gruvbox.js +89 -0
- package/src-noconflict/theme-idle_fingers.js +103 -0
- package/src-noconflict/theme-iplastic.js +128 -0
- package/src-noconflict/theme-katzenmilch.js +128 -0
- package/src-noconflict/theme-kr_theme.js +111 -0
- package/src-noconflict/theme-kuroir.js +68 -0
- package/src-noconflict/theme-merbivore.js +102 -0
- package/src-noconflict/theme-merbivore_soft.js +103 -0
- package/src-noconflict/theme-mono_industrial.js +114 -0
- package/src-noconflict/theme-monokai.js +112 -0
- package/src-noconflict/theme-pastel_on_dark.js +115 -0
- package/src-noconflict/theme-solarized_dark.js +95 -0
- package/src-noconflict/theme-solarized_light.js +98 -0
- package/src-noconflict/theme-sqlserver.js +145 -0
- package/src-noconflict/theme-terminal.js +121 -0
- package/src-noconflict/theme-textmate.js +137 -0
- package/src-noconflict/theme-tomorrow.js +115 -0
- package/src-noconflict/theme-tomorrow_night.js +115 -0
- package/src-noconflict/theme-tomorrow_night_blue.js +113 -0
- package/src-noconflict/theme-tomorrow_night_bright.js +128 -0
- package/src-noconflict/theme-tomorrow_night_eighties.js +115 -0
- package/src-noconflict/theme-twilight.js +116 -0
- package/src-noconflict/theme-vibrant_ink.js +101 -0
- package/src-noconflict/theme-xcode.js +95 -0
- package/src-noconflict/worker-coffee.js +1470 -0
- package/src-noconflict/worker-css.js +9000 -0
- package/src-noconflict/worker-html.js +10922 -0
- package/src-noconflict/worker-javascript.js +15001 -0
- package/src-noconflict/worker-json.js +1715 -0
- package/src-noconflict/worker-lua.js +3608 -0
- package/src-noconflict/worker-php.js +3687 -0
- package/src-noconflict/worker-xml.js +3208 -0
- package/src-noconflict/worker-xquery.js +57668 -0
|
@@ -0,0 +1,3687 @@
|
|
|
1
|
+
"no use strict";
|
|
2
|
+
!(function(window) {
|
|
3
|
+
if (typeof window.window != "undefined" && window.document)
|
|
4
|
+
return;
|
|
5
|
+
if (window.require && window.define)
|
|
6
|
+
return;
|
|
7
|
+
|
|
8
|
+
if (!window.console) {
|
|
9
|
+
window.console = function() {
|
|
10
|
+
var msgs = Array.prototype.slice.call(arguments, 0);
|
|
11
|
+
postMessage({type: "log", data: msgs});
|
|
12
|
+
};
|
|
13
|
+
window.console.error =
|
|
14
|
+
window.console.warn =
|
|
15
|
+
window.console.log =
|
|
16
|
+
window.console.trace = window.console;
|
|
17
|
+
}
|
|
18
|
+
window.window = window;
|
|
19
|
+
window.ace = window;
|
|
20
|
+
|
|
21
|
+
window.onerror = function(message, file, line, col, err) {
|
|
22
|
+
postMessage({type: "error", data: {
|
|
23
|
+
message: message,
|
|
24
|
+
data: err.data,
|
|
25
|
+
file: file,
|
|
26
|
+
line: line,
|
|
27
|
+
col: col,
|
|
28
|
+
stack: err.stack
|
|
29
|
+
}});
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
window.normalizeModule = function(parentId, moduleName) {
|
|
33
|
+
// normalize plugin requires
|
|
34
|
+
if (moduleName.indexOf("!") !== -1) {
|
|
35
|
+
var chunks = moduleName.split("!");
|
|
36
|
+
return window.normalizeModule(parentId, chunks[0]) + "!" + window.normalizeModule(parentId, chunks[1]);
|
|
37
|
+
}
|
|
38
|
+
// normalize relative requires
|
|
39
|
+
if (moduleName.charAt(0) == ".") {
|
|
40
|
+
var base = parentId.split("/").slice(0, -1).join("/");
|
|
41
|
+
moduleName = (base ? base + "/" : "") + moduleName;
|
|
42
|
+
|
|
43
|
+
while (moduleName.indexOf(".") !== -1 && previous != moduleName) {
|
|
44
|
+
var previous = moduleName;
|
|
45
|
+
moduleName = moduleName.replace(/^\.\//, "").replace(/\/\.\//, "/").replace(/[^\/]+\/\.\.\//, "");
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return moduleName;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
window.require = function require(parentId, id) {
|
|
53
|
+
if (!id) {
|
|
54
|
+
id = parentId;
|
|
55
|
+
parentId = null;
|
|
56
|
+
}
|
|
57
|
+
if (!id.charAt)
|
|
58
|
+
throw new Error("worker.js require() accepts only (parentId, id) as arguments");
|
|
59
|
+
|
|
60
|
+
id = window.normalizeModule(parentId, id);
|
|
61
|
+
|
|
62
|
+
var module = window.require.modules[id];
|
|
63
|
+
if (module) {
|
|
64
|
+
if (!module.initialized) {
|
|
65
|
+
module.initialized = true;
|
|
66
|
+
module.exports = module.factory().exports;
|
|
67
|
+
}
|
|
68
|
+
return module.exports;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (!window.require.tlns)
|
|
72
|
+
return console.log("unable to load " + id);
|
|
73
|
+
|
|
74
|
+
var path = resolveModuleId(id, window.require.tlns);
|
|
75
|
+
if (path.slice(-3) != ".js") path += ".js";
|
|
76
|
+
|
|
77
|
+
window.require.id = id;
|
|
78
|
+
window.require.modules[id] = {}; // prevent infinite loop on broken modules
|
|
79
|
+
importScripts(path);
|
|
80
|
+
return window.require(parentId, id);
|
|
81
|
+
};
|
|
82
|
+
function resolveModuleId(id, paths) {
|
|
83
|
+
var testPath = id, tail = "";
|
|
84
|
+
while (testPath) {
|
|
85
|
+
var alias = paths[testPath];
|
|
86
|
+
if (typeof alias == "string") {
|
|
87
|
+
return alias + tail;
|
|
88
|
+
} else if (alias) {
|
|
89
|
+
return alias.location.replace(/\/*$/, "/") + (tail || alias.main || alias.name);
|
|
90
|
+
} else if (alias === false) {
|
|
91
|
+
return "";
|
|
92
|
+
}
|
|
93
|
+
var i = testPath.lastIndexOf("/");
|
|
94
|
+
if (i === -1) break;
|
|
95
|
+
tail = testPath.substr(i) + tail;
|
|
96
|
+
testPath = testPath.slice(0, i);
|
|
97
|
+
}
|
|
98
|
+
return id;
|
|
99
|
+
}
|
|
100
|
+
window.require.modules = {};
|
|
101
|
+
window.require.tlns = {};
|
|
102
|
+
|
|
103
|
+
window.define = function(id, deps, factory) {
|
|
104
|
+
if (arguments.length == 2) {
|
|
105
|
+
factory = deps;
|
|
106
|
+
if (typeof id != "string") {
|
|
107
|
+
deps = id;
|
|
108
|
+
id = window.require.id;
|
|
109
|
+
}
|
|
110
|
+
} else if (arguments.length == 1) {
|
|
111
|
+
factory = id;
|
|
112
|
+
deps = [];
|
|
113
|
+
id = window.require.id;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (typeof factory != "function") {
|
|
117
|
+
window.require.modules[id] = {
|
|
118
|
+
exports: factory,
|
|
119
|
+
initialized: true
|
|
120
|
+
};
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (!deps.length)
|
|
125
|
+
// If there is no dependencies, we inject "require", "exports" and
|
|
126
|
+
// "module" as dependencies, to provide CommonJS compatibility.
|
|
127
|
+
deps = ["require", "exports", "module"];
|
|
128
|
+
|
|
129
|
+
var req = function(childId) {
|
|
130
|
+
return window.require(id, childId);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
window.require.modules[id] = {
|
|
134
|
+
exports: {},
|
|
135
|
+
factory: function() {
|
|
136
|
+
var module = this;
|
|
137
|
+
var returnExports = factory.apply(this, deps.slice(0, factory.length).map(function(dep) {
|
|
138
|
+
switch (dep) {
|
|
139
|
+
// Because "require", "exports" and "module" aren't actual
|
|
140
|
+
// dependencies, we must handle them seperately.
|
|
141
|
+
case "require": return req;
|
|
142
|
+
case "exports": return module.exports;
|
|
143
|
+
case "module": return module;
|
|
144
|
+
// But for all other dependencies, we can just go ahead and
|
|
145
|
+
// require them.
|
|
146
|
+
default: return req(dep);
|
|
147
|
+
}
|
|
148
|
+
}));
|
|
149
|
+
if (returnExports)
|
|
150
|
+
module.exports = returnExports;
|
|
151
|
+
return module;
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
window.define.amd = {};
|
|
156
|
+
require.tlns = {};
|
|
157
|
+
window.initBaseUrls = function initBaseUrls(topLevelNamespaces) {
|
|
158
|
+
for (var i in topLevelNamespaces)
|
|
159
|
+
require.tlns[i] = topLevelNamespaces[i];
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
window.initSender = function initSender() {
|
|
163
|
+
|
|
164
|
+
var EventEmitter = window.require("ace/lib/event_emitter").EventEmitter;
|
|
165
|
+
var oop = window.require("ace/lib/oop");
|
|
166
|
+
|
|
167
|
+
var Sender = function() {};
|
|
168
|
+
|
|
169
|
+
(function() {
|
|
170
|
+
|
|
171
|
+
oop.implement(this, EventEmitter);
|
|
172
|
+
|
|
173
|
+
this.callback = function(data, callbackId) {
|
|
174
|
+
postMessage({
|
|
175
|
+
type: "call",
|
|
176
|
+
id: callbackId,
|
|
177
|
+
data: data
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
this.emit = function(name, data) {
|
|
182
|
+
postMessage({
|
|
183
|
+
type: "event",
|
|
184
|
+
name: name,
|
|
185
|
+
data: data
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
}).call(Sender.prototype);
|
|
190
|
+
|
|
191
|
+
return new Sender();
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
var main = window.main = null;
|
|
195
|
+
var sender = window.sender = null;
|
|
196
|
+
|
|
197
|
+
window.onmessage = function(e) {
|
|
198
|
+
var msg = e.data;
|
|
199
|
+
if (msg.event && sender) {
|
|
200
|
+
sender._signal(msg.event, msg.data);
|
|
201
|
+
}
|
|
202
|
+
else if (msg.command) {
|
|
203
|
+
if (main[msg.command])
|
|
204
|
+
main[msg.command].apply(main, msg.args);
|
|
205
|
+
else if (window[msg.command])
|
|
206
|
+
window[msg.command].apply(window, msg.args);
|
|
207
|
+
else
|
|
208
|
+
throw new Error("Unknown command:" + msg.command);
|
|
209
|
+
}
|
|
210
|
+
else if (msg.init) {
|
|
211
|
+
window.initBaseUrls(msg.tlns);
|
|
212
|
+
sender = window.sender = window.initSender();
|
|
213
|
+
var clazz = require(msg.module)[msg.classname];
|
|
214
|
+
main = window.main = new clazz(sender);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
})(this);
|
|
218
|
+
|
|
219
|
+
ace.define("ace/lib/oop",[], function(require, exports, module) {
|
|
220
|
+
"use strict";
|
|
221
|
+
|
|
222
|
+
exports.inherits = function(ctor, superCtor) {
|
|
223
|
+
ctor.super_ = superCtor;
|
|
224
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
225
|
+
constructor: {
|
|
226
|
+
value: ctor,
|
|
227
|
+
enumerable: false,
|
|
228
|
+
writable: true,
|
|
229
|
+
configurable: true
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
exports.mixin = function(obj, mixin) {
|
|
235
|
+
for (var key in mixin) {
|
|
236
|
+
obj[key] = mixin[key];
|
|
237
|
+
}
|
|
238
|
+
return obj;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
exports.implement = function(proto, mixin) {
|
|
242
|
+
exports.mixin(proto, mixin);
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
ace.define("ace/range",[], function(require, exports, module) {
|
|
248
|
+
"use strict";
|
|
249
|
+
var comparePoints = function(p1, p2) {
|
|
250
|
+
return p1.row - p2.row || p1.column - p2.column;
|
|
251
|
+
};
|
|
252
|
+
var Range = function(startRow, startColumn, endRow, endColumn) {
|
|
253
|
+
this.start = {
|
|
254
|
+
row: startRow,
|
|
255
|
+
column: startColumn
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
this.end = {
|
|
259
|
+
row: endRow,
|
|
260
|
+
column: endColumn
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
(function() {
|
|
265
|
+
this.isEqual = function(range) {
|
|
266
|
+
return this.start.row === range.start.row &&
|
|
267
|
+
this.end.row === range.end.row &&
|
|
268
|
+
this.start.column === range.start.column &&
|
|
269
|
+
this.end.column === range.end.column;
|
|
270
|
+
};
|
|
271
|
+
this.toString = function() {
|
|
272
|
+
return ("Range: [" + this.start.row + "/" + this.start.column +
|
|
273
|
+
"] -> [" + this.end.row + "/" + this.end.column + "]");
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
this.contains = function(row, column) {
|
|
277
|
+
return this.compare(row, column) == 0;
|
|
278
|
+
};
|
|
279
|
+
this.compareRange = function(range) {
|
|
280
|
+
var cmp,
|
|
281
|
+
end = range.end,
|
|
282
|
+
start = range.start;
|
|
283
|
+
|
|
284
|
+
cmp = this.compare(end.row, end.column);
|
|
285
|
+
if (cmp == 1) {
|
|
286
|
+
cmp = this.compare(start.row, start.column);
|
|
287
|
+
if (cmp == 1) {
|
|
288
|
+
return 2;
|
|
289
|
+
} else if (cmp == 0) {
|
|
290
|
+
return 1;
|
|
291
|
+
} else {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
} else if (cmp == -1) {
|
|
295
|
+
return -2;
|
|
296
|
+
} else {
|
|
297
|
+
cmp = this.compare(start.row, start.column);
|
|
298
|
+
if (cmp == -1) {
|
|
299
|
+
return -1;
|
|
300
|
+
} else if (cmp == 1) {
|
|
301
|
+
return 42;
|
|
302
|
+
} else {
|
|
303
|
+
return 0;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
this.comparePoint = function(p) {
|
|
308
|
+
return this.compare(p.row, p.column);
|
|
309
|
+
};
|
|
310
|
+
this.containsRange = function(range) {
|
|
311
|
+
return this.comparePoint(range.start) == 0 && this.comparePoint(range.end) == 0;
|
|
312
|
+
};
|
|
313
|
+
this.intersects = function(range) {
|
|
314
|
+
var cmp = this.compareRange(range);
|
|
315
|
+
return (cmp == -1 || cmp == 0 || cmp == 1);
|
|
316
|
+
};
|
|
317
|
+
this.isEnd = function(row, column) {
|
|
318
|
+
return this.end.row == row && this.end.column == column;
|
|
319
|
+
};
|
|
320
|
+
this.isStart = function(row, column) {
|
|
321
|
+
return this.start.row == row && this.start.column == column;
|
|
322
|
+
};
|
|
323
|
+
this.setStart = function(row, column) {
|
|
324
|
+
if (typeof row == "object") {
|
|
325
|
+
this.start.column = row.column;
|
|
326
|
+
this.start.row = row.row;
|
|
327
|
+
} else {
|
|
328
|
+
this.start.row = row;
|
|
329
|
+
this.start.column = column;
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
this.setEnd = function(row, column) {
|
|
333
|
+
if (typeof row == "object") {
|
|
334
|
+
this.end.column = row.column;
|
|
335
|
+
this.end.row = row.row;
|
|
336
|
+
} else {
|
|
337
|
+
this.end.row = row;
|
|
338
|
+
this.end.column = column;
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
this.inside = function(row, column) {
|
|
342
|
+
if (this.compare(row, column) == 0) {
|
|
343
|
+
if (this.isEnd(row, column) || this.isStart(row, column)) {
|
|
344
|
+
return false;
|
|
345
|
+
} else {
|
|
346
|
+
return true;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return false;
|
|
350
|
+
};
|
|
351
|
+
this.insideStart = function(row, column) {
|
|
352
|
+
if (this.compare(row, column) == 0) {
|
|
353
|
+
if (this.isEnd(row, column)) {
|
|
354
|
+
return false;
|
|
355
|
+
} else {
|
|
356
|
+
return true;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return false;
|
|
360
|
+
};
|
|
361
|
+
this.insideEnd = function(row, column) {
|
|
362
|
+
if (this.compare(row, column) == 0) {
|
|
363
|
+
if (this.isStart(row, column)) {
|
|
364
|
+
return false;
|
|
365
|
+
} else {
|
|
366
|
+
return true;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
return false;
|
|
370
|
+
};
|
|
371
|
+
this.compare = function(row, column) {
|
|
372
|
+
if (!this.isMultiLine()) {
|
|
373
|
+
if (row === this.start.row) {
|
|
374
|
+
return column < this.start.column ? -1 : (column > this.end.column ? 1 : 0);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
if (row < this.start.row)
|
|
379
|
+
return -1;
|
|
380
|
+
|
|
381
|
+
if (row > this.end.row)
|
|
382
|
+
return 1;
|
|
383
|
+
|
|
384
|
+
if (this.start.row === row)
|
|
385
|
+
return column >= this.start.column ? 0 : -1;
|
|
386
|
+
|
|
387
|
+
if (this.end.row === row)
|
|
388
|
+
return column <= this.end.column ? 0 : 1;
|
|
389
|
+
|
|
390
|
+
return 0;
|
|
391
|
+
};
|
|
392
|
+
this.compareStart = function(row, column) {
|
|
393
|
+
if (this.start.row == row && this.start.column == column) {
|
|
394
|
+
return -1;
|
|
395
|
+
} else {
|
|
396
|
+
return this.compare(row, column);
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
this.compareEnd = function(row, column) {
|
|
400
|
+
if (this.end.row == row && this.end.column == column) {
|
|
401
|
+
return 1;
|
|
402
|
+
} else {
|
|
403
|
+
return this.compare(row, column);
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
this.compareInside = function(row, column) {
|
|
407
|
+
if (this.end.row == row && this.end.column == column) {
|
|
408
|
+
return 1;
|
|
409
|
+
} else if (this.start.row == row && this.start.column == column) {
|
|
410
|
+
return -1;
|
|
411
|
+
} else {
|
|
412
|
+
return this.compare(row, column);
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
this.clipRows = function(firstRow, lastRow) {
|
|
416
|
+
if (this.end.row > lastRow)
|
|
417
|
+
var end = {row: lastRow + 1, column: 0};
|
|
418
|
+
else if (this.end.row < firstRow)
|
|
419
|
+
var end = {row: firstRow, column: 0};
|
|
420
|
+
|
|
421
|
+
if (this.start.row > lastRow)
|
|
422
|
+
var start = {row: lastRow + 1, column: 0};
|
|
423
|
+
else if (this.start.row < firstRow)
|
|
424
|
+
var start = {row: firstRow, column: 0};
|
|
425
|
+
|
|
426
|
+
return Range.fromPoints(start || this.start, end || this.end);
|
|
427
|
+
};
|
|
428
|
+
this.extend = function(row, column) {
|
|
429
|
+
var cmp = this.compare(row, column);
|
|
430
|
+
|
|
431
|
+
if (cmp == 0)
|
|
432
|
+
return this;
|
|
433
|
+
else if (cmp == -1)
|
|
434
|
+
var start = {row: row, column: column};
|
|
435
|
+
else
|
|
436
|
+
var end = {row: row, column: column};
|
|
437
|
+
|
|
438
|
+
return Range.fromPoints(start || this.start, end || this.end);
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
this.isEmpty = function() {
|
|
442
|
+
return (this.start.row === this.end.row && this.start.column === this.end.column);
|
|
443
|
+
};
|
|
444
|
+
this.isMultiLine = function() {
|
|
445
|
+
return (this.start.row !== this.end.row);
|
|
446
|
+
};
|
|
447
|
+
this.clone = function() {
|
|
448
|
+
return Range.fromPoints(this.start, this.end);
|
|
449
|
+
};
|
|
450
|
+
this.collapseRows = function() {
|
|
451
|
+
if (this.end.column == 0)
|
|
452
|
+
return new Range(this.start.row, 0, Math.max(this.start.row, this.end.row-1), 0);
|
|
453
|
+
else
|
|
454
|
+
return new Range(this.start.row, 0, this.end.row, 0);
|
|
455
|
+
};
|
|
456
|
+
this.toScreenRange = function(session) {
|
|
457
|
+
var screenPosStart = session.documentToScreenPosition(this.start);
|
|
458
|
+
var screenPosEnd = session.documentToScreenPosition(this.end);
|
|
459
|
+
|
|
460
|
+
return new Range(
|
|
461
|
+
screenPosStart.row, screenPosStart.column,
|
|
462
|
+
screenPosEnd.row, screenPosEnd.column
|
|
463
|
+
);
|
|
464
|
+
};
|
|
465
|
+
this.moveBy = function(row, column) {
|
|
466
|
+
this.start.row += row;
|
|
467
|
+
this.start.column += column;
|
|
468
|
+
this.end.row += row;
|
|
469
|
+
this.end.column += column;
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
}).call(Range.prototype);
|
|
473
|
+
Range.fromPoints = function(start, end) {
|
|
474
|
+
return new Range(start.row, start.column, end.row, end.column);
|
|
475
|
+
};
|
|
476
|
+
Range.comparePoints = comparePoints;
|
|
477
|
+
|
|
478
|
+
Range.comparePoints = function(p1, p2) {
|
|
479
|
+
return p1.row - p2.row || p1.column - p2.column;
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
exports.Range = Range;
|
|
484
|
+
});
|
|
485
|
+
|
|
486
|
+
ace.define("ace/apply_delta",[], function(require, exports, module) {
|
|
487
|
+
"use strict";
|
|
488
|
+
|
|
489
|
+
function throwDeltaError(delta, errorText){
|
|
490
|
+
console.log("Invalid Delta:", delta);
|
|
491
|
+
throw "Invalid Delta: " + errorText;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
function positionInDocument(docLines, position) {
|
|
495
|
+
return position.row >= 0 && position.row < docLines.length &&
|
|
496
|
+
position.column >= 0 && position.column <= docLines[position.row].length;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
function validateDelta(docLines, delta) {
|
|
500
|
+
if (delta.action != "insert" && delta.action != "remove")
|
|
501
|
+
throwDeltaError(delta, "delta.action must be 'insert' or 'remove'");
|
|
502
|
+
if (!(delta.lines instanceof Array))
|
|
503
|
+
throwDeltaError(delta, "delta.lines must be an Array");
|
|
504
|
+
if (!delta.start || !delta.end)
|
|
505
|
+
throwDeltaError(delta, "delta.start/end must be an present");
|
|
506
|
+
var start = delta.start;
|
|
507
|
+
if (!positionInDocument(docLines, delta.start))
|
|
508
|
+
throwDeltaError(delta, "delta.start must be contained in document");
|
|
509
|
+
var end = delta.end;
|
|
510
|
+
if (delta.action == "remove" && !positionInDocument(docLines, end))
|
|
511
|
+
throwDeltaError(delta, "delta.end must contained in document for 'remove' actions");
|
|
512
|
+
var numRangeRows = end.row - start.row;
|
|
513
|
+
var numRangeLastLineChars = (end.column - (numRangeRows == 0 ? start.column : 0));
|
|
514
|
+
if (numRangeRows != delta.lines.length - 1 || delta.lines[numRangeRows].length != numRangeLastLineChars)
|
|
515
|
+
throwDeltaError(delta, "delta.range must match delta lines");
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
exports.applyDelta = function(docLines, delta, doNotValidate) {
|
|
519
|
+
|
|
520
|
+
var row = delta.start.row;
|
|
521
|
+
var startColumn = delta.start.column;
|
|
522
|
+
var line = docLines[row] || "";
|
|
523
|
+
switch (delta.action) {
|
|
524
|
+
case "insert":
|
|
525
|
+
var lines = delta.lines;
|
|
526
|
+
if (lines.length === 1) {
|
|
527
|
+
docLines[row] = line.substring(0, startColumn) + delta.lines[0] + line.substring(startColumn);
|
|
528
|
+
} else {
|
|
529
|
+
var args = [row, 1].concat(delta.lines);
|
|
530
|
+
docLines.splice.apply(docLines, args);
|
|
531
|
+
docLines[row] = line.substring(0, startColumn) + docLines[row];
|
|
532
|
+
docLines[row + delta.lines.length - 1] += line.substring(startColumn);
|
|
533
|
+
}
|
|
534
|
+
break;
|
|
535
|
+
case "remove":
|
|
536
|
+
var endColumn = delta.end.column;
|
|
537
|
+
var endRow = delta.end.row;
|
|
538
|
+
if (row === endRow) {
|
|
539
|
+
docLines[row] = line.substring(0, startColumn) + line.substring(endColumn);
|
|
540
|
+
} else {
|
|
541
|
+
docLines.splice(
|
|
542
|
+
row, endRow - row + 1,
|
|
543
|
+
line.substring(0, startColumn) + docLines[endRow].substring(endColumn)
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
break;
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
});
|
|
550
|
+
|
|
551
|
+
ace.define("ace/lib/event_emitter",[], function(require, exports, module) {
|
|
552
|
+
"use strict";
|
|
553
|
+
|
|
554
|
+
var EventEmitter = {};
|
|
555
|
+
var stopPropagation = function() { this.propagationStopped = true; };
|
|
556
|
+
var preventDefault = function() { this.defaultPrevented = true; };
|
|
557
|
+
|
|
558
|
+
EventEmitter._emit =
|
|
559
|
+
EventEmitter._dispatchEvent = function(eventName, e) {
|
|
560
|
+
this._eventRegistry || (this._eventRegistry = {});
|
|
561
|
+
this._defaultHandlers || (this._defaultHandlers = {});
|
|
562
|
+
|
|
563
|
+
var listeners = this._eventRegistry[eventName] || [];
|
|
564
|
+
var defaultHandler = this._defaultHandlers[eventName];
|
|
565
|
+
if (!listeners.length && !defaultHandler)
|
|
566
|
+
return;
|
|
567
|
+
|
|
568
|
+
if (typeof e != "object" || !e)
|
|
569
|
+
e = {};
|
|
570
|
+
|
|
571
|
+
if (!e.type)
|
|
572
|
+
e.type = eventName;
|
|
573
|
+
if (!e.stopPropagation)
|
|
574
|
+
e.stopPropagation = stopPropagation;
|
|
575
|
+
if (!e.preventDefault)
|
|
576
|
+
e.preventDefault = preventDefault;
|
|
577
|
+
|
|
578
|
+
listeners = listeners.slice();
|
|
579
|
+
for (var i=0; i<listeners.length; i++) {
|
|
580
|
+
listeners[i](e, this);
|
|
581
|
+
if (e.propagationStopped)
|
|
582
|
+
break;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
if (defaultHandler && !e.defaultPrevented)
|
|
586
|
+
return defaultHandler(e, this);
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
EventEmitter._signal = function(eventName, e) {
|
|
591
|
+
var listeners = (this._eventRegistry || {})[eventName];
|
|
592
|
+
if (!listeners)
|
|
593
|
+
return;
|
|
594
|
+
listeners = listeners.slice();
|
|
595
|
+
for (var i=0; i<listeners.length; i++)
|
|
596
|
+
listeners[i](e, this);
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
EventEmitter.once = function(eventName, callback) {
|
|
600
|
+
var _self = this;
|
|
601
|
+
this.on(eventName, function newCallback() {
|
|
602
|
+
_self.off(eventName, newCallback);
|
|
603
|
+
callback.apply(null, arguments);
|
|
604
|
+
});
|
|
605
|
+
if (!callback) {
|
|
606
|
+
return new Promise(function(resolve) {
|
|
607
|
+
callback = resolve;
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
EventEmitter.setDefaultHandler = function(eventName, callback) {
|
|
614
|
+
var handlers = this._defaultHandlers;
|
|
615
|
+
if (!handlers)
|
|
616
|
+
handlers = this._defaultHandlers = {_disabled_: {}};
|
|
617
|
+
|
|
618
|
+
if (handlers[eventName]) {
|
|
619
|
+
var old = handlers[eventName];
|
|
620
|
+
var disabled = handlers._disabled_[eventName];
|
|
621
|
+
if (!disabled)
|
|
622
|
+
handlers._disabled_[eventName] = disabled = [];
|
|
623
|
+
disabled.push(old);
|
|
624
|
+
var i = disabled.indexOf(callback);
|
|
625
|
+
if (i != -1)
|
|
626
|
+
disabled.splice(i, 1);
|
|
627
|
+
}
|
|
628
|
+
handlers[eventName] = callback;
|
|
629
|
+
};
|
|
630
|
+
EventEmitter.removeDefaultHandler = function(eventName, callback) {
|
|
631
|
+
var handlers = this._defaultHandlers;
|
|
632
|
+
if (!handlers)
|
|
633
|
+
return;
|
|
634
|
+
var disabled = handlers._disabled_[eventName];
|
|
635
|
+
|
|
636
|
+
if (handlers[eventName] == callback) {
|
|
637
|
+
if (disabled)
|
|
638
|
+
this.setDefaultHandler(eventName, disabled.pop());
|
|
639
|
+
} else if (disabled) {
|
|
640
|
+
var i = disabled.indexOf(callback);
|
|
641
|
+
if (i != -1)
|
|
642
|
+
disabled.splice(i, 1);
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
EventEmitter.on =
|
|
647
|
+
EventEmitter.addEventListener = function(eventName, callback, capturing) {
|
|
648
|
+
this._eventRegistry = this._eventRegistry || {};
|
|
649
|
+
|
|
650
|
+
var listeners = this._eventRegistry[eventName];
|
|
651
|
+
if (!listeners)
|
|
652
|
+
listeners = this._eventRegistry[eventName] = [];
|
|
653
|
+
|
|
654
|
+
if (listeners.indexOf(callback) == -1)
|
|
655
|
+
listeners[capturing ? "unshift" : "push"](callback);
|
|
656
|
+
return callback;
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
EventEmitter.off =
|
|
660
|
+
EventEmitter.removeListener =
|
|
661
|
+
EventEmitter.removeEventListener = function(eventName, callback) {
|
|
662
|
+
this._eventRegistry = this._eventRegistry || {};
|
|
663
|
+
|
|
664
|
+
var listeners = this._eventRegistry[eventName];
|
|
665
|
+
if (!listeners)
|
|
666
|
+
return;
|
|
667
|
+
|
|
668
|
+
var index = listeners.indexOf(callback);
|
|
669
|
+
if (index !== -1)
|
|
670
|
+
listeners.splice(index, 1);
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
EventEmitter.removeAllListeners = function(eventName) {
|
|
674
|
+
if (!eventName) this._eventRegistry = this._defaultHandlers = undefined;
|
|
675
|
+
if (this._eventRegistry) this._eventRegistry[eventName] = undefined;
|
|
676
|
+
if (this._defaultHandlers) this._defaultHandlers[eventName] = undefined;
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
exports.EventEmitter = EventEmitter;
|
|
680
|
+
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
ace.define("ace/anchor",[], function(require, exports, module) {
|
|
684
|
+
"use strict";
|
|
685
|
+
|
|
686
|
+
var oop = require("./lib/oop");
|
|
687
|
+
var EventEmitter = require("./lib/event_emitter").EventEmitter;
|
|
688
|
+
|
|
689
|
+
var Anchor = exports.Anchor = function(doc, row, column) {
|
|
690
|
+
this.$onChange = this.onChange.bind(this);
|
|
691
|
+
this.attach(doc);
|
|
692
|
+
|
|
693
|
+
if (typeof column == "undefined")
|
|
694
|
+
this.setPosition(row.row, row.column);
|
|
695
|
+
else
|
|
696
|
+
this.setPosition(row, column);
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
(function() {
|
|
700
|
+
|
|
701
|
+
oop.implement(this, EventEmitter);
|
|
702
|
+
this.getPosition = function() {
|
|
703
|
+
return this.$clipPositionToDocument(this.row, this.column);
|
|
704
|
+
};
|
|
705
|
+
this.getDocument = function() {
|
|
706
|
+
return this.document;
|
|
707
|
+
};
|
|
708
|
+
this.$insertRight = false;
|
|
709
|
+
this.onChange = function(delta) {
|
|
710
|
+
if (delta.start.row == delta.end.row && delta.start.row != this.row)
|
|
711
|
+
return;
|
|
712
|
+
|
|
713
|
+
if (delta.start.row > this.row)
|
|
714
|
+
return;
|
|
715
|
+
|
|
716
|
+
var point = $getTransformedPoint(delta, {row: this.row, column: this.column}, this.$insertRight);
|
|
717
|
+
this.setPosition(point.row, point.column, true);
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
function $pointsInOrder(point1, point2, equalPointsInOrder) {
|
|
721
|
+
var bColIsAfter = equalPointsInOrder ? point1.column <= point2.column : point1.column < point2.column;
|
|
722
|
+
return (point1.row < point2.row) || (point1.row == point2.row && bColIsAfter);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
function $getTransformedPoint(delta, point, moveIfEqual) {
|
|
726
|
+
var deltaIsInsert = delta.action == "insert";
|
|
727
|
+
var deltaRowShift = (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row);
|
|
728
|
+
var deltaColShift = (deltaIsInsert ? 1 : -1) * (delta.end.column - delta.start.column);
|
|
729
|
+
var deltaStart = delta.start;
|
|
730
|
+
var deltaEnd = deltaIsInsert ? deltaStart : delta.end; // Collapse insert range.
|
|
731
|
+
if ($pointsInOrder(point, deltaStart, moveIfEqual)) {
|
|
732
|
+
return {
|
|
733
|
+
row: point.row,
|
|
734
|
+
column: point.column
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
if ($pointsInOrder(deltaEnd, point, !moveIfEqual)) {
|
|
738
|
+
return {
|
|
739
|
+
row: point.row + deltaRowShift,
|
|
740
|
+
column: point.column + (point.row == deltaEnd.row ? deltaColShift : 0)
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
return {
|
|
745
|
+
row: deltaStart.row,
|
|
746
|
+
column: deltaStart.column
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
this.setPosition = function(row, column, noClip) {
|
|
750
|
+
var pos;
|
|
751
|
+
if (noClip) {
|
|
752
|
+
pos = {
|
|
753
|
+
row: row,
|
|
754
|
+
column: column
|
|
755
|
+
};
|
|
756
|
+
} else {
|
|
757
|
+
pos = this.$clipPositionToDocument(row, column);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
if (this.row == pos.row && this.column == pos.column)
|
|
761
|
+
return;
|
|
762
|
+
|
|
763
|
+
var old = {
|
|
764
|
+
row: this.row,
|
|
765
|
+
column: this.column
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
this.row = pos.row;
|
|
769
|
+
this.column = pos.column;
|
|
770
|
+
this._signal("change", {
|
|
771
|
+
old: old,
|
|
772
|
+
value: pos
|
|
773
|
+
});
|
|
774
|
+
};
|
|
775
|
+
this.detach = function() {
|
|
776
|
+
this.document.off("change", this.$onChange);
|
|
777
|
+
};
|
|
778
|
+
this.attach = function(doc) {
|
|
779
|
+
this.document = doc || this.document;
|
|
780
|
+
this.document.on("change", this.$onChange);
|
|
781
|
+
};
|
|
782
|
+
this.$clipPositionToDocument = function(row, column) {
|
|
783
|
+
var pos = {};
|
|
784
|
+
|
|
785
|
+
if (row >= this.document.getLength()) {
|
|
786
|
+
pos.row = Math.max(0, this.document.getLength() - 1);
|
|
787
|
+
pos.column = this.document.getLine(pos.row).length;
|
|
788
|
+
}
|
|
789
|
+
else if (row < 0) {
|
|
790
|
+
pos.row = 0;
|
|
791
|
+
pos.column = 0;
|
|
792
|
+
}
|
|
793
|
+
else {
|
|
794
|
+
pos.row = row;
|
|
795
|
+
pos.column = Math.min(this.document.getLine(pos.row).length, Math.max(0, column));
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
if (column < 0)
|
|
799
|
+
pos.column = 0;
|
|
800
|
+
|
|
801
|
+
return pos;
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
}).call(Anchor.prototype);
|
|
805
|
+
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
ace.define("ace/document",[], function(require, exports, module) {
|
|
809
|
+
"use strict";
|
|
810
|
+
|
|
811
|
+
var oop = require("./lib/oop");
|
|
812
|
+
var applyDelta = require("./apply_delta").applyDelta;
|
|
813
|
+
var EventEmitter = require("./lib/event_emitter").EventEmitter;
|
|
814
|
+
var Range = require("./range").Range;
|
|
815
|
+
var Anchor = require("./anchor").Anchor;
|
|
816
|
+
|
|
817
|
+
var Document = function(textOrLines) {
|
|
818
|
+
this.$lines = [""];
|
|
819
|
+
if (textOrLines.length === 0) {
|
|
820
|
+
this.$lines = [""];
|
|
821
|
+
} else if (Array.isArray(textOrLines)) {
|
|
822
|
+
this.insertMergedLines({row: 0, column: 0}, textOrLines);
|
|
823
|
+
} else {
|
|
824
|
+
this.insert({row: 0, column:0}, textOrLines);
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
(function() {
|
|
829
|
+
|
|
830
|
+
oop.implement(this, EventEmitter);
|
|
831
|
+
this.setValue = function(text) {
|
|
832
|
+
var len = this.getLength() - 1;
|
|
833
|
+
this.remove(new Range(0, 0, len, this.getLine(len).length));
|
|
834
|
+
this.insert({row: 0, column: 0}, text);
|
|
835
|
+
};
|
|
836
|
+
this.getValue = function() {
|
|
837
|
+
return this.getAllLines().join(this.getNewLineCharacter());
|
|
838
|
+
};
|
|
839
|
+
this.createAnchor = function(row, column) {
|
|
840
|
+
return new Anchor(this, row, column);
|
|
841
|
+
};
|
|
842
|
+
if ("aaa".split(/a/).length === 0) {
|
|
843
|
+
this.$split = function(text) {
|
|
844
|
+
return text.replace(/\r\n|\r/g, "\n").split("\n");
|
|
845
|
+
};
|
|
846
|
+
} else {
|
|
847
|
+
this.$split = function(text) {
|
|
848
|
+
return text.split(/\r\n|\r|\n/);
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
this.$detectNewLine = function(text) {
|
|
854
|
+
var match = text.match(/^.*?(\r\n|\r|\n)/m);
|
|
855
|
+
this.$autoNewLine = match ? match[1] : "\n";
|
|
856
|
+
this._signal("changeNewLineMode");
|
|
857
|
+
};
|
|
858
|
+
this.getNewLineCharacter = function() {
|
|
859
|
+
switch (this.$newLineMode) {
|
|
860
|
+
case "windows":
|
|
861
|
+
return "\r\n";
|
|
862
|
+
case "unix":
|
|
863
|
+
return "\n";
|
|
864
|
+
default:
|
|
865
|
+
return this.$autoNewLine || "\n";
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
this.$autoNewLine = "";
|
|
870
|
+
this.$newLineMode = "auto";
|
|
871
|
+
this.setNewLineMode = function(newLineMode) {
|
|
872
|
+
if (this.$newLineMode === newLineMode)
|
|
873
|
+
return;
|
|
874
|
+
|
|
875
|
+
this.$newLineMode = newLineMode;
|
|
876
|
+
this._signal("changeNewLineMode");
|
|
877
|
+
};
|
|
878
|
+
this.getNewLineMode = function() {
|
|
879
|
+
return this.$newLineMode;
|
|
880
|
+
};
|
|
881
|
+
this.isNewLine = function(text) {
|
|
882
|
+
return (text == "\r\n" || text == "\r" || text == "\n");
|
|
883
|
+
};
|
|
884
|
+
this.getLine = function(row) {
|
|
885
|
+
return this.$lines[row] || "";
|
|
886
|
+
};
|
|
887
|
+
this.getLines = function(firstRow, lastRow) {
|
|
888
|
+
return this.$lines.slice(firstRow, lastRow + 1);
|
|
889
|
+
};
|
|
890
|
+
this.getAllLines = function() {
|
|
891
|
+
return this.getLines(0, this.getLength());
|
|
892
|
+
};
|
|
893
|
+
this.getLength = function() {
|
|
894
|
+
return this.$lines.length;
|
|
895
|
+
};
|
|
896
|
+
this.getTextRange = function(range) {
|
|
897
|
+
return this.getLinesForRange(range).join(this.getNewLineCharacter());
|
|
898
|
+
};
|
|
899
|
+
this.getLinesForRange = function(range) {
|
|
900
|
+
var lines;
|
|
901
|
+
if (range.start.row === range.end.row) {
|
|
902
|
+
lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];
|
|
903
|
+
} else {
|
|
904
|
+
lines = this.getLines(range.start.row, range.end.row);
|
|
905
|
+
lines[0] = (lines[0] || "").substring(range.start.column);
|
|
906
|
+
var l = lines.length - 1;
|
|
907
|
+
if (range.end.row - range.start.row == l)
|
|
908
|
+
lines[l] = lines[l].substring(0, range.end.column);
|
|
909
|
+
}
|
|
910
|
+
return lines;
|
|
911
|
+
};
|
|
912
|
+
this.insertLines = function(row, lines) {
|
|
913
|
+
console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead.");
|
|
914
|
+
return this.insertFullLines(row, lines);
|
|
915
|
+
};
|
|
916
|
+
this.removeLines = function(firstRow, lastRow) {
|
|
917
|
+
console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead.");
|
|
918
|
+
return this.removeFullLines(firstRow, lastRow);
|
|
919
|
+
};
|
|
920
|
+
this.insertNewLine = function(position) {
|
|
921
|
+
console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.");
|
|
922
|
+
return this.insertMergedLines(position, ["", ""]);
|
|
923
|
+
};
|
|
924
|
+
this.insert = function(position, text) {
|
|
925
|
+
if (this.getLength() <= 1)
|
|
926
|
+
this.$detectNewLine(text);
|
|
927
|
+
|
|
928
|
+
return this.insertMergedLines(position, this.$split(text));
|
|
929
|
+
};
|
|
930
|
+
this.insertInLine = function(position, text) {
|
|
931
|
+
var start = this.clippedPos(position.row, position.column);
|
|
932
|
+
var end = this.pos(position.row, position.column + text.length);
|
|
933
|
+
|
|
934
|
+
this.applyDelta({
|
|
935
|
+
start: start,
|
|
936
|
+
end: end,
|
|
937
|
+
action: "insert",
|
|
938
|
+
lines: [text]
|
|
939
|
+
}, true);
|
|
940
|
+
|
|
941
|
+
return this.clonePos(end);
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
this.clippedPos = function(row, column) {
|
|
945
|
+
var length = this.getLength();
|
|
946
|
+
if (row === undefined) {
|
|
947
|
+
row = length;
|
|
948
|
+
} else if (row < 0) {
|
|
949
|
+
row = 0;
|
|
950
|
+
} else if (row >= length) {
|
|
951
|
+
row = length - 1;
|
|
952
|
+
column = undefined;
|
|
953
|
+
}
|
|
954
|
+
var line = this.getLine(row);
|
|
955
|
+
if (column == undefined)
|
|
956
|
+
column = line.length;
|
|
957
|
+
column = Math.min(Math.max(column, 0), line.length);
|
|
958
|
+
return {row: row, column: column};
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
this.clonePos = function(pos) {
|
|
962
|
+
return {row: pos.row, column: pos.column};
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
this.pos = function(row, column) {
|
|
966
|
+
return {row: row, column: column};
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
this.$clipPosition = function(position) {
|
|
970
|
+
var length = this.getLength();
|
|
971
|
+
if (position.row >= length) {
|
|
972
|
+
position.row = Math.max(0, length - 1);
|
|
973
|
+
position.column = this.getLine(length - 1).length;
|
|
974
|
+
} else {
|
|
975
|
+
position.row = Math.max(0, position.row);
|
|
976
|
+
position.column = Math.min(Math.max(position.column, 0), this.getLine(position.row).length);
|
|
977
|
+
}
|
|
978
|
+
return position;
|
|
979
|
+
};
|
|
980
|
+
this.insertFullLines = function(row, lines) {
|
|
981
|
+
row = Math.min(Math.max(row, 0), this.getLength());
|
|
982
|
+
var column = 0;
|
|
983
|
+
if (row < this.getLength()) {
|
|
984
|
+
lines = lines.concat([""]);
|
|
985
|
+
column = 0;
|
|
986
|
+
} else {
|
|
987
|
+
lines = [""].concat(lines);
|
|
988
|
+
row--;
|
|
989
|
+
column = this.$lines[row].length;
|
|
990
|
+
}
|
|
991
|
+
this.insertMergedLines({row: row, column: column}, lines);
|
|
992
|
+
};
|
|
993
|
+
this.insertMergedLines = function(position, lines) {
|
|
994
|
+
var start = this.clippedPos(position.row, position.column);
|
|
995
|
+
var end = {
|
|
996
|
+
row: start.row + lines.length - 1,
|
|
997
|
+
column: (lines.length == 1 ? start.column : 0) + lines[lines.length - 1].length
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
this.applyDelta({
|
|
1001
|
+
start: start,
|
|
1002
|
+
end: end,
|
|
1003
|
+
action: "insert",
|
|
1004
|
+
lines: lines
|
|
1005
|
+
});
|
|
1006
|
+
|
|
1007
|
+
return this.clonePos(end);
|
|
1008
|
+
};
|
|
1009
|
+
this.remove = function(range) {
|
|
1010
|
+
var start = this.clippedPos(range.start.row, range.start.column);
|
|
1011
|
+
var end = this.clippedPos(range.end.row, range.end.column);
|
|
1012
|
+
this.applyDelta({
|
|
1013
|
+
start: start,
|
|
1014
|
+
end: end,
|
|
1015
|
+
action: "remove",
|
|
1016
|
+
lines: this.getLinesForRange({start: start, end: end})
|
|
1017
|
+
});
|
|
1018
|
+
return this.clonePos(start);
|
|
1019
|
+
};
|
|
1020
|
+
this.removeInLine = function(row, startColumn, endColumn) {
|
|
1021
|
+
var start = this.clippedPos(row, startColumn);
|
|
1022
|
+
var end = this.clippedPos(row, endColumn);
|
|
1023
|
+
|
|
1024
|
+
this.applyDelta({
|
|
1025
|
+
start: start,
|
|
1026
|
+
end: end,
|
|
1027
|
+
action: "remove",
|
|
1028
|
+
lines: this.getLinesForRange({start: start, end: end})
|
|
1029
|
+
}, true);
|
|
1030
|
+
|
|
1031
|
+
return this.clonePos(start);
|
|
1032
|
+
};
|
|
1033
|
+
this.removeFullLines = function(firstRow, lastRow) {
|
|
1034
|
+
firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1);
|
|
1035
|
+
lastRow = Math.min(Math.max(0, lastRow ), this.getLength() - 1);
|
|
1036
|
+
var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0;
|
|
1037
|
+
var deleteLastNewLine = lastRow < this.getLength() - 1;
|
|
1038
|
+
var startRow = ( deleteFirstNewLine ? firstRow - 1 : firstRow );
|
|
1039
|
+
var startCol = ( deleteFirstNewLine ? this.getLine(startRow).length : 0 );
|
|
1040
|
+
var endRow = ( deleteLastNewLine ? lastRow + 1 : lastRow );
|
|
1041
|
+
var endCol = ( deleteLastNewLine ? 0 : this.getLine(endRow).length );
|
|
1042
|
+
var range = new Range(startRow, startCol, endRow, endCol);
|
|
1043
|
+
var deletedLines = this.$lines.slice(firstRow, lastRow + 1);
|
|
1044
|
+
|
|
1045
|
+
this.applyDelta({
|
|
1046
|
+
start: range.start,
|
|
1047
|
+
end: range.end,
|
|
1048
|
+
action: "remove",
|
|
1049
|
+
lines: this.getLinesForRange(range)
|
|
1050
|
+
});
|
|
1051
|
+
return deletedLines;
|
|
1052
|
+
};
|
|
1053
|
+
this.removeNewLine = function(row) {
|
|
1054
|
+
if (row < this.getLength() - 1 && row >= 0) {
|
|
1055
|
+
this.applyDelta({
|
|
1056
|
+
start: this.pos(row, this.getLine(row).length),
|
|
1057
|
+
end: this.pos(row + 1, 0),
|
|
1058
|
+
action: "remove",
|
|
1059
|
+
lines: ["", ""]
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
};
|
|
1063
|
+
this.replace = function(range, text) {
|
|
1064
|
+
if (!(range instanceof Range))
|
|
1065
|
+
range = Range.fromPoints(range.start, range.end);
|
|
1066
|
+
if (text.length === 0 && range.isEmpty())
|
|
1067
|
+
return range.start;
|
|
1068
|
+
if (text == this.getTextRange(range))
|
|
1069
|
+
return range.end;
|
|
1070
|
+
|
|
1071
|
+
this.remove(range);
|
|
1072
|
+
var end;
|
|
1073
|
+
if (text) {
|
|
1074
|
+
end = this.insert(range.start, text);
|
|
1075
|
+
}
|
|
1076
|
+
else {
|
|
1077
|
+
end = range.start;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
return end;
|
|
1081
|
+
};
|
|
1082
|
+
this.applyDeltas = function(deltas) {
|
|
1083
|
+
for (var i=0; i<deltas.length; i++) {
|
|
1084
|
+
this.applyDelta(deltas[i]);
|
|
1085
|
+
}
|
|
1086
|
+
};
|
|
1087
|
+
this.revertDeltas = function(deltas) {
|
|
1088
|
+
for (var i=deltas.length-1; i>=0; i--) {
|
|
1089
|
+
this.revertDelta(deltas[i]);
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1092
|
+
this.applyDelta = function(delta, doNotValidate) {
|
|
1093
|
+
var isInsert = delta.action == "insert";
|
|
1094
|
+
if (isInsert ? delta.lines.length <= 1 && !delta.lines[0]
|
|
1095
|
+
: !Range.comparePoints(delta.start, delta.end)) {
|
|
1096
|
+
return;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
if (isInsert && delta.lines.length > 20000) {
|
|
1100
|
+
this.$splitAndapplyLargeDelta(delta, 20000);
|
|
1101
|
+
}
|
|
1102
|
+
else {
|
|
1103
|
+
applyDelta(this.$lines, delta, doNotValidate);
|
|
1104
|
+
this._signal("change", delta);
|
|
1105
|
+
}
|
|
1106
|
+
};
|
|
1107
|
+
|
|
1108
|
+
this.$safeApplyDelta = function(delta) {
|
|
1109
|
+
var docLength = this.$lines.length;
|
|
1110
|
+
if (
|
|
1111
|
+
delta.action == "remove" && delta.start.row < docLength && delta.end.row < docLength
|
|
1112
|
+
|| delta.action == "insert" && delta.start.row <= docLength
|
|
1113
|
+
) {
|
|
1114
|
+
this.applyDelta(delta);
|
|
1115
|
+
}
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
this.$splitAndapplyLargeDelta = function(delta, MAX) {
|
|
1119
|
+
var lines = delta.lines;
|
|
1120
|
+
var l = lines.length - MAX + 1;
|
|
1121
|
+
var row = delta.start.row;
|
|
1122
|
+
var column = delta.start.column;
|
|
1123
|
+
for (var from = 0, to = 0; from < l; from = to) {
|
|
1124
|
+
to += MAX - 1;
|
|
1125
|
+
var chunk = lines.slice(from, to);
|
|
1126
|
+
chunk.push("");
|
|
1127
|
+
this.applyDelta({
|
|
1128
|
+
start: this.pos(row + from, column),
|
|
1129
|
+
end: this.pos(row + to, column = 0),
|
|
1130
|
+
action: delta.action,
|
|
1131
|
+
lines: chunk
|
|
1132
|
+
}, true);
|
|
1133
|
+
}
|
|
1134
|
+
delta.lines = lines.slice(from);
|
|
1135
|
+
delta.start.row = row + from;
|
|
1136
|
+
delta.start.column = column;
|
|
1137
|
+
this.applyDelta(delta, true);
|
|
1138
|
+
};
|
|
1139
|
+
this.revertDelta = function(delta) {
|
|
1140
|
+
this.$safeApplyDelta({
|
|
1141
|
+
start: this.clonePos(delta.start),
|
|
1142
|
+
end: this.clonePos(delta.end),
|
|
1143
|
+
action: (delta.action == "insert" ? "remove" : "insert"),
|
|
1144
|
+
lines: delta.lines.slice()
|
|
1145
|
+
});
|
|
1146
|
+
};
|
|
1147
|
+
this.indexToPosition = function(index, startRow) {
|
|
1148
|
+
var lines = this.$lines || this.getAllLines();
|
|
1149
|
+
var newlineLength = this.getNewLineCharacter().length;
|
|
1150
|
+
for (var i = startRow || 0, l = lines.length; i < l; i++) {
|
|
1151
|
+
index -= lines[i].length + newlineLength;
|
|
1152
|
+
if (index < 0)
|
|
1153
|
+
return {row: i, column: index + lines[i].length + newlineLength};
|
|
1154
|
+
}
|
|
1155
|
+
return {row: l-1, column: index + lines[l-1].length + newlineLength};
|
|
1156
|
+
};
|
|
1157
|
+
this.positionToIndex = function(pos, startRow) {
|
|
1158
|
+
var lines = this.$lines || this.getAllLines();
|
|
1159
|
+
var newlineLength = this.getNewLineCharacter().length;
|
|
1160
|
+
var index = 0;
|
|
1161
|
+
var row = Math.min(pos.row, lines.length);
|
|
1162
|
+
for (var i = startRow || 0; i < row; ++i)
|
|
1163
|
+
index += lines[i].length + newlineLength;
|
|
1164
|
+
|
|
1165
|
+
return index + pos.column;
|
|
1166
|
+
};
|
|
1167
|
+
|
|
1168
|
+
}).call(Document.prototype);
|
|
1169
|
+
|
|
1170
|
+
exports.Document = Document;
|
|
1171
|
+
});
|
|
1172
|
+
|
|
1173
|
+
ace.define("ace/lib/lang",[], function(require, exports, module) {
|
|
1174
|
+
"use strict";
|
|
1175
|
+
|
|
1176
|
+
exports.last = function(a) {
|
|
1177
|
+
return a[a.length - 1];
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
exports.stringReverse = function(string) {
|
|
1181
|
+
return string.split("").reverse().join("");
|
|
1182
|
+
};
|
|
1183
|
+
|
|
1184
|
+
exports.stringRepeat = function (string, count) {
|
|
1185
|
+
var result = '';
|
|
1186
|
+
while (count > 0) {
|
|
1187
|
+
if (count & 1)
|
|
1188
|
+
result += string;
|
|
1189
|
+
|
|
1190
|
+
if (count >>= 1)
|
|
1191
|
+
string += string;
|
|
1192
|
+
}
|
|
1193
|
+
return result;
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
var trimBeginRegexp = /^\s\s*/;
|
|
1197
|
+
var trimEndRegexp = /\s\s*$/;
|
|
1198
|
+
|
|
1199
|
+
exports.stringTrimLeft = function (string) {
|
|
1200
|
+
return string.replace(trimBeginRegexp, '');
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
exports.stringTrimRight = function (string) {
|
|
1204
|
+
return string.replace(trimEndRegexp, '');
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
exports.copyObject = function(obj) {
|
|
1208
|
+
var copy = {};
|
|
1209
|
+
for (var key in obj) {
|
|
1210
|
+
copy[key] = obj[key];
|
|
1211
|
+
}
|
|
1212
|
+
return copy;
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
exports.copyArray = function(array){
|
|
1216
|
+
var copy = [];
|
|
1217
|
+
for (var i=0, l=array.length; i<l; i++) {
|
|
1218
|
+
if (array[i] && typeof array[i] == "object")
|
|
1219
|
+
copy[i] = this.copyObject(array[i]);
|
|
1220
|
+
else
|
|
1221
|
+
copy[i] = array[i];
|
|
1222
|
+
}
|
|
1223
|
+
return copy;
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
exports.deepCopy = function deepCopy(obj) {
|
|
1227
|
+
if (typeof obj !== "object" || !obj)
|
|
1228
|
+
return obj;
|
|
1229
|
+
var copy;
|
|
1230
|
+
if (Array.isArray(obj)) {
|
|
1231
|
+
copy = [];
|
|
1232
|
+
for (var key = 0; key < obj.length; key++) {
|
|
1233
|
+
copy[key] = deepCopy(obj[key]);
|
|
1234
|
+
}
|
|
1235
|
+
return copy;
|
|
1236
|
+
}
|
|
1237
|
+
if (Object.prototype.toString.call(obj) !== "[object Object]")
|
|
1238
|
+
return obj;
|
|
1239
|
+
|
|
1240
|
+
copy = {};
|
|
1241
|
+
for (var key in obj)
|
|
1242
|
+
copy[key] = deepCopy(obj[key]);
|
|
1243
|
+
return copy;
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
exports.arrayToMap = function(arr) {
|
|
1247
|
+
var map = {};
|
|
1248
|
+
for (var i=0; i<arr.length; i++) {
|
|
1249
|
+
map[arr[i]] = 1;
|
|
1250
|
+
}
|
|
1251
|
+
return map;
|
|
1252
|
+
|
|
1253
|
+
};
|
|
1254
|
+
|
|
1255
|
+
exports.createMap = function(props) {
|
|
1256
|
+
var map = Object.create(null);
|
|
1257
|
+
for (var i in props) {
|
|
1258
|
+
map[i] = props[i];
|
|
1259
|
+
}
|
|
1260
|
+
return map;
|
|
1261
|
+
};
|
|
1262
|
+
exports.arrayRemove = function(array, value) {
|
|
1263
|
+
for (var i = 0; i <= array.length; i++) {
|
|
1264
|
+
if (value === array[i]) {
|
|
1265
|
+
array.splice(i, 1);
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
};
|
|
1269
|
+
|
|
1270
|
+
exports.escapeRegExp = function(str) {
|
|
1271
|
+
return str.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1');
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
exports.escapeHTML = function(str) {
|
|
1275
|
+
return ("" + str).replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<");
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
exports.getMatchOffsets = function(string, regExp) {
|
|
1279
|
+
var matches = [];
|
|
1280
|
+
|
|
1281
|
+
string.replace(regExp, function(str) {
|
|
1282
|
+
matches.push({
|
|
1283
|
+
offset: arguments[arguments.length-2],
|
|
1284
|
+
length: str.length
|
|
1285
|
+
});
|
|
1286
|
+
});
|
|
1287
|
+
|
|
1288
|
+
return matches;
|
|
1289
|
+
};
|
|
1290
|
+
exports.deferredCall = function(fcn) {
|
|
1291
|
+
var timer = null;
|
|
1292
|
+
var callback = function() {
|
|
1293
|
+
timer = null;
|
|
1294
|
+
fcn();
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
var deferred = function(timeout) {
|
|
1298
|
+
deferred.cancel();
|
|
1299
|
+
timer = setTimeout(callback, timeout || 0);
|
|
1300
|
+
return deferred;
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
deferred.schedule = deferred;
|
|
1304
|
+
|
|
1305
|
+
deferred.call = function() {
|
|
1306
|
+
this.cancel();
|
|
1307
|
+
fcn();
|
|
1308
|
+
return deferred;
|
|
1309
|
+
};
|
|
1310
|
+
|
|
1311
|
+
deferred.cancel = function() {
|
|
1312
|
+
clearTimeout(timer);
|
|
1313
|
+
timer = null;
|
|
1314
|
+
return deferred;
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
deferred.isPending = function() {
|
|
1318
|
+
return timer;
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
return deferred;
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
exports.delayedCall = function(fcn, defaultTimeout) {
|
|
1326
|
+
var timer = null;
|
|
1327
|
+
var callback = function() {
|
|
1328
|
+
timer = null;
|
|
1329
|
+
fcn();
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1332
|
+
var _self = function(timeout) {
|
|
1333
|
+
if (timer == null)
|
|
1334
|
+
timer = setTimeout(callback, timeout || defaultTimeout);
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1337
|
+
_self.delay = function(timeout) {
|
|
1338
|
+
timer && clearTimeout(timer);
|
|
1339
|
+
timer = setTimeout(callback, timeout || defaultTimeout);
|
|
1340
|
+
};
|
|
1341
|
+
_self.schedule = _self;
|
|
1342
|
+
|
|
1343
|
+
_self.call = function() {
|
|
1344
|
+
this.cancel();
|
|
1345
|
+
fcn();
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
_self.cancel = function() {
|
|
1349
|
+
timer && clearTimeout(timer);
|
|
1350
|
+
timer = null;
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
_self.isPending = function() {
|
|
1354
|
+
return timer;
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
return _self;
|
|
1358
|
+
};
|
|
1359
|
+
});
|
|
1360
|
+
|
|
1361
|
+
ace.define("ace/worker/mirror",[], function(require, exports, module) {
|
|
1362
|
+
"use strict";
|
|
1363
|
+
|
|
1364
|
+
var Range = require("../range").Range;
|
|
1365
|
+
var Document = require("../document").Document;
|
|
1366
|
+
var lang = require("../lib/lang");
|
|
1367
|
+
|
|
1368
|
+
var Mirror = exports.Mirror = function(sender) {
|
|
1369
|
+
this.sender = sender;
|
|
1370
|
+
var doc = this.doc = new Document("");
|
|
1371
|
+
|
|
1372
|
+
var deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this));
|
|
1373
|
+
|
|
1374
|
+
var _self = this;
|
|
1375
|
+
sender.on("change", function(e) {
|
|
1376
|
+
var data = e.data;
|
|
1377
|
+
if (data[0].start) {
|
|
1378
|
+
doc.applyDeltas(data);
|
|
1379
|
+
} else {
|
|
1380
|
+
for (var i = 0; i < data.length; i += 2) {
|
|
1381
|
+
if (Array.isArray(data[i+1])) {
|
|
1382
|
+
var d = {action: "insert", start: data[i], lines: data[i+1]};
|
|
1383
|
+
} else {
|
|
1384
|
+
var d = {action: "remove", start: data[i], end: data[i+1]};
|
|
1385
|
+
}
|
|
1386
|
+
doc.applyDelta(d, true);
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
if (_self.$timeout)
|
|
1390
|
+
return deferredUpdate.schedule(_self.$timeout);
|
|
1391
|
+
_self.onUpdate();
|
|
1392
|
+
});
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
(function() {
|
|
1396
|
+
|
|
1397
|
+
this.$timeout = 500;
|
|
1398
|
+
|
|
1399
|
+
this.setTimeout = function(timeout) {
|
|
1400
|
+
this.$timeout = timeout;
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
this.setValue = function(value) {
|
|
1404
|
+
this.doc.setValue(value);
|
|
1405
|
+
this.deferredUpdate.schedule(this.$timeout);
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1408
|
+
this.getValue = function(callbackId) {
|
|
1409
|
+
this.sender.callback(this.doc.getValue(), callbackId);
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
this.onUpdate = function() {
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1415
|
+
this.isPending = function() {
|
|
1416
|
+
return this.deferredUpdate.isPending();
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
}).call(Mirror.prototype);
|
|
1420
|
+
|
|
1421
|
+
});
|
|
1422
|
+
|
|
1423
|
+
ace.define("ace/mode/php/php",[], function(require, exports, module) {
|
|
1424
|
+
|
|
1425
|
+
var PHP = {Constants:{}};
|
|
1426
|
+
|
|
1427
|
+
PHP.Constants.T_INCLUDE = 259
|
|
1428
|
+
PHP.Constants.T_INCLUDE_ONCE = 260
|
|
1429
|
+
PHP.Constants.T_EVAL = 318
|
|
1430
|
+
PHP.Constants.T_REQUIRE = 261
|
|
1431
|
+
PHP.Constants.T_REQUIRE_ONCE = 262
|
|
1432
|
+
PHP.Constants.T_LOGICAL_OR = 263
|
|
1433
|
+
PHP.Constants.T_LOGICAL_XOR = 264
|
|
1434
|
+
PHP.Constants.T_LOGICAL_AND = 265
|
|
1435
|
+
PHP.Constants.T_PRINT = 266
|
|
1436
|
+
PHP.Constants.T_YIELD = 267
|
|
1437
|
+
PHP.Constants.T_DOUBLE_ARROW = 268
|
|
1438
|
+
PHP.Constants.T_YIELD_FROM = 269
|
|
1439
|
+
PHP.Constants.T_PLUS_EQUAL = 270
|
|
1440
|
+
PHP.Constants.T_MINUS_EQUAL = 271
|
|
1441
|
+
PHP.Constants.T_MUL_EQUAL = 272
|
|
1442
|
+
PHP.Constants.T_DIV_EQUAL = 273
|
|
1443
|
+
PHP.Constants.T_CONCAT_EQUAL = 274
|
|
1444
|
+
PHP.Constants.T_MOD_EQUAL = 275
|
|
1445
|
+
PHP.Constants.T_AND_EQUAL = 276
|
|
1446
|
+
PHP.Constants.T_OR_EQUAL = 277
|
|
1447
|
+
PHP.Constants.T_XOR_EQUAL = 278
|
|
1448
|
+
PHP.Constants.T_SL_EQUAL = 279
|
|
1449
|
+
PHP.Constants.T_SR_EQUAL = 280
|
|
1450
|
+
PHP.Constants.T_POW_EQUAL = 281
|
|
1451
|
+
PHP.Constants.T_COALESCE_EQUAL = 282
|
|
1452
|
+
PHP.Constants.T_COALESCE = 283
|
|
1453
|
+
PHP.Constants.T_BOOLEAN_OR = 284
|
|
1454
|
+
PHP.Constants.T_BOOLEAN_AND = 285
|
|
1455
|
+
PHP.Constants.T_IS_EQUAL = 286
|
|
1456
|
+
PHP.Constants.T_IS_NOT_EQUAL = 287
|
|
1457
|
+
PHP.Constants.T_IS_IDENTICAL = 288
|
|
1458
|
+
PHP.Constants.T_IS_NOT_IDENTICAL = 289
|
|
1459
|
+
PHP.Constants.T_SPACESHIP = 290
|
|
1460
|
+
PHP.Constants.T_IS_SMALLER_OR_EQUAL = 291
|
|
1461
|
+
PHP.Constants.T_IS_GREATER_OR_EQUAL = 292
|
|
1462
|
+
PHP.Constants.T_SL = 293
|
|
1463
|
+
PHP.Constants.T_SR = 294
|
|
1464
|
+
PHP.Constants.T_INSTANCEOF = 295
|
|
1465
|
+
PHP.Constants.T_INC = 319
|
|
1466
|
+
PHP.Constants.T_DEC = 320
|
|
1467
|
+
PHP.Constants.T_INT_CAST = 296
|
|
1468
|
+
PHP.Constants.T_DOUBLE_CAST = 297
|
|
1469
|
+
PHP.Constants.T_STRING_CAST = 298
|
|
1470
|
+
PHP.Constants.T_ARRAY_CAST = 299
|
|
1471
|
+
PHP.Constants.T_OBJECT_CAST = 300
|
|
1472
|
+
PHP.Constants.T_BOOL_CAST = 301
|
|
1473
|
+
PHP.Constants.T_UNSET_CAST = 302
|
|
1474
|
+
PHP.Constants.T_POW = 303
|
|
1475
|
+
PHP.Constants.T_NEW = 304
|
|
1476
|
+
PHP.Constants.T_CLONE = 305
|
|
1477
|
+
PHP.Constants.T_EXIT = 321
|
|
1478
|
+
PHP.Constants.T_IF = 322
|
|
1479
|
+
PHP.Constants.T_ELSEIF = 307
|
|
1480
|
+
PHP.Constants.T_ELSE = 308
|
|
1481
|
+
PHP.Constants.T_ENDIF = 323
|
|
1482
|
+
PHP.Constants.T_LNUMBER = 309
|
|
1483
|
+
PHP.Constants.T_DNUMBER = 310
|
|
1484
|
+
PHP.Constants.T_STRING = 311
|
|
1485
|
+
PHP.Constants.T_STRING_VARNAME = 316
|
|
1486
|
+
PHP.Constants.T_VARIABLE = 312
|
|
1487
|
+
PHP.Constants.T_NUM_STRING = 317
|
|
1488
|
+
PHP.Constants.T_INLINE_HTML = 313
|
|
1489
|
+
PHP.Constants.T_BAD_CHARACTER = 395
|
|
1490
|
+
PHP.Constants.T_ENCAPSED_AND_WHITESPACE = 314
|
|
1491
|
+
PHP.Constants.T_CONSTANT_ENCAPSED_STRING = 315
|
|
1492
|
+
PHP.Constants.T_ECHO = 324
|
|
1493
|
+
PHP.Constants.T_DO = 325
|
|
1494
|
+
PHP.Constants.T_WHILE = 326
|
|
1495
|
+
PHP.Constants.T_ENDWHILE = 327
|
|
1496
|
+
PHP.Constants.T_FOR = 328
|
|
1497
|
+
PHP.Constants.T_ENDFOR = 329
|
|
1498
|
+
PHP.Constants.T_FOREACH = 330
|
|
1499
|
+
PHP.Constants.T_ENDFOREACH = 331
|
|
1500
|
+
PHP.Constants.T_DECLARE = 332
|
|
1501
|
+
PHP.Constants.T_ENDDECLARE = 333
|
|
1502
|
+
PHP.Constants.T_AS = 334
|
|
1503
|
+
PHP.Constants.T_SWITCH = 335
|
|
1504
|
+
PHP.Constants.T_ENDSWITCH = 336
|
|
1505
|
+
PHP.Constants.T_CASE = 337
|
|
1506
|
+
PHP.Constants.T_DEFAULT = 338
|
|
1507
|
+
PHP.Constants.T_BREAK = 339
|
|
1508
|
+
PHP.Constants.T_CONTINUE = 340
|
|
1509
|
+
PHP.Constants.T_GOTO = 341
|
|
1510
|
+
PHP.Constants.T_FUNCTION = 342
|
|
1511
|
+
PHP.Constants.T_FN = 343
|
|
1512
|
+
PHP.Constants.T_CONST = 344
|
|
1513
|
+
PHP.Constants.T_RETURN = 345
|
|
1514
|
+
PHP.Constants.T_TRY = 346
|
|
1515
|
+
PHP.Constants.T_CATCH = 347
|
|
1516
|
+
PHP.Constants.T_FINALLY = 348
|
|
1517
|
+
PHP.Constants.T_THROW = 349
|
|
1518
|
+
PHP.Constants.T_USE = 350
|
|
1519
|
+
PHP.Constants.T_INSTEADOF = 351
|
|
1520
|
+
PHP.Constants.T_GLOBAL = 352
|
|
1521
|
+
PHP.Constants.T_STATIC = 353
|
|
1522
|
+
PHP.Constants.T_ABSTRACT = 354
|
|
1523
|
+
PHP.Constants.T_FINAL = 355
|
|
1524
|
+
PHP.Constants.T_PRIVATE = 356
|
|
1525
|
+
PHP.Constants.T_PROTECTED = 357
|
|
1526
|
+
PHP.Constants.T_PUBLIC = 358
|
|
1527
|
+
PHP.Constants.T_VAR = 359
|
|
1528
|
+
PHP.Constants.T_UNSET = 360
|
|
1529
|
+
PHP.Constants.T_ISSET = 361
|
|
1530
|
+
PHP.Constants.T_EMPTY = 362
|
|
1531
|
+
PHP.Constants.T_HALT_COMPILER = 363
|
|
1532
|
+
PHP.Constants.T_CLASS = 364
|
|
1533
|
+
PHP.Constants.T_TRAIT = 365
|
|
1534
|
+
PHP.Constants.T_INTERFACE = 366
|
|
1535
|
+
PHP.Constants.T_EXTENDS = 367
|
|
1536
|
+
PHP.Constants.T_IMPLEMENTS = 368
|
|
1537
|
+
PHP.Constants.T_OBJECT_OPERATOR = 369
|
|
1538
|
+
PHP.Constants.T_DOUBLE_ARROW = 268
|
|
1539
|
+
PHP.Constants.T_LIST = 370
|
|
1540
|
+
PHP.Constants.T_ARRAY = 371
|
|
1541
|
+
PHP.Constants.T_CALLABLE = 372
|
|
1542
|
+
PHP.Constants.T_CLASS_C = 376
|
|
1543
|
+
PHP.Constants.T_TRAIT_C = 377
|
|
1544
|
+
PHP.Constants.T_METHOD_C = 378
|
|
1545
|
+
PHP.Constants.T_FUNC_C = 379
|
|
1546
|
+
PHP.Constants.T_LINE = 373
|
|
1547
|
+
PHP.Constants.T_FILE = 374
|
|
1548
|
+
PHP.Constants.T_COMMENT = 380
|
|
1549
|
+
PHP.Constants.T_DOC_COMMENT = 381
|
|
1550
|
+
PHP.Constants.T_OPEN_TAG = 382
|
|
1551
|
+
PHP.Constants.T_OPEN_TAG_WITH_ECHO = 383
|
|
1552
|
+
PHP.Constants.T_CLOSE_TAG = 384
|
|
1553
|
+
PHP.Constants.T_WHITESPACE = 385
|
|
1554
|
+
PHP.Constants.T_START_HEREDOC = 386
|
|
1555
|
+
PHP.Constants.T_END_HEREDOC = 387
|
|
1556
|
+
PHP.Constants.T_DOLLAR_OPEN_CURLY_BRACES = 388
|
|
1557
|
+
PHP.Constants.T_CURLY_OPEN = 389
|
|
1558
|
+
PHP.Constants.T_PAAMAYIM_NEKUDOTAYIM = 390
|
|
1559
|
+
PHP.Constants.T_NAMESPACE = 391
|
|
1560
|
+
PHP.Constants.T_NS_C = 392
|
|
1561
|
+
PHP.Constants.T_DIR = 375
|
|
1562
|
+
PHP.Constants.T_NS_SEPARATOR = 393
|
|
1563
|
+
PHP.Constants.T_ELLIPSIS = 394
|
|
1564
|
+
|
|
1565
|
+
PHP.Lexer = function(src, ini) {
|
|
1566
|
+
var heredoc, heredocEndAllowed,
|
|
1567
|
+
|
|
1568
|
+
stateStack = ['INITIAL'], stackPos = 0,
|
|
1569
|
+
swapState = function(state) {
|
|
1570
|
+
stateStack[stackPos] = state;
|
|
1571
|
+
},
|
|
1572
|
+
pushState = function(state) {
|
|
1573
|
+
stateStack[++stackPos] = state;
|
|
1574
|
+
},
|
|
1575
|
+
popState = function() {
|
|
1576
|
+
--stackPos;
|
|
1577
|
+
},
|
|
1578
|
+
|
|
1579
|
+
shortOpenTag = ini === undefined || /^(on|true|1)$/i.test(ini.short_open_tag),
|
|
1580
|
+
openTag = shortOpenTag
|
|
1581
|
+
? /^(\<\?php(?:\r\n|[ \t\r\n])|<\?|\<script language\=('|")?php('|")?\>)/i
|
|
1582
|
+
: /^(\<\?php(?:\r\n|[ \t\r\n])|\<script language\=('|")?php('|")?\>)/i,
|
|
1583
|
+
inlineHtml = shortOpenTag
|
|
1584
|
+
? /[^<]*(?:<(?!\?|script language\=('|")?php('|")?\>)[^<]*)*/i
|
|
1585
|
+
: /[^<]*(?:<(?!\?=|\?php[ \t\r\n]|script language\=('|")?php('|")?\>)[^<]*)*/i,
|
|
1586
|
+
labelRegexPart = '[a-zA-Z_\\x7f-\\uffff][a-zA-Z0-9_\\x7f-\\uffff]*',
|
|
1587
|
+
stringRegexPart = function(quote) {
|
|
1588
|
+
return '[^' + quote + '\\\\${]*(?:(?:\\\\[\\s\\S]|\\$(?!\\{|[a-zA-Z_\\x7f-\\uffff])|\\{(?!\\$))[^' + quote + '\\\\${]*)*';
|
|
1589
|
+
},
|
|
1590
|
+
|
|
1591
|
+
sharedStringTokens = [
|
|
1592
|
+
{
|
|
1593
|
+
value: PHP.Constants.T_VARIABLE,
|
|
1594
|
+
re: new RegExp('^\\$' + labelRegexPart + '(?=\\[)'),
|
|
1595
|
+
func: function() {
|
|
1596
|
+
pushState('VAR_OFFSET');
|
|
1597
|
+
}
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
value: PHP.Constants.T_VARIABLE,
|
|
1601
|
+
re: new RegExp('^\\$' + labelRegexPart + '(?=->' + labelRegexPart + ')'),
|
|
1602
|
+
func: function() {
|
|
1603
|
+
pushState('LOOKING_FOR_PROPERTY');
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
value: PHP.Constants.T_DOLLAR_OPEN_CURLY_BRACES,
|
|
1608
|
+
re: new RegExp('^\\$\\{(?=' + labelRegexPart + '[\\[}])'),
|
|
1609
|
+
func: function() {
|
|
1610
|
+
pushState('LOOKING_FOR_VARNAME');
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
value: PHP.Constants.T_VARIABLE,
|
|
1615
|
+
re: new RegExp('^\\$' + labelRegexPart)
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
value: PHP.Constants.T_DOLLAR_OPEN_CURLY_BRACES,
|
|
1619
|
+
re: /^\$\{/,
|
|
1620
|
+
func: function() {
|
|
1621
|
+
pushState('IN_SCRIPTING');
|
|
1622
|
+
}
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
value: PHP.Constants.T_CURLY_OPEN,
|
|
1626
|
+
re: /^\{(?=\$)/,
|
|
1627
|
+
func: function() {
|
|
1628
|
+
pushState('IN_SCRIPTING');
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
],
|
|
1632
|
+
data = {
|
|
1633
|
+
'INITIAL': [
|
|
1634
|
+
{
|
|
1635
|
+
value: PHP.Constants.T_OPEN_TAG_WITH_ECHO,
|
|
1636
|
+
re: /^<\?=/i,
|
|
1637
|
+
func: function() {
|
|
1638
|
+
swapState('IN_SCRIPTING');
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
value: PHP.Constants.T_OPEN_TAG,
|
|
1643
|
+
re: openTag,
|
|
1644
|
+
func: function() {
|
|
1645
|
+
swapState('IN_SCRIPTING');
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
value: PHP.Constants.T_INLINE_HTML,
|
|
1650
|
+
re: inlineHtml
|
|
1651
|
+
},
|
|
1652
|
+
],
|
|
1653
|
+
'IN_SCRIPTING': [
|
|
1654
|
+
{
|
|
1655
|
+
value: PHP.Constants.T_WHITESPACE,
|
|
1656
|
+
re: /^[ \n\r\t]+/
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
value: PHP.Constants.T_ABSTRACT,
|
|
1660
|
+
re: /^abstract\b/i
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
value: PHP.Constants.T_LOGICAL_AND,
|
|
1664
|
+
re: /^and\b/i
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
value: PHP.Constants.T_ARRAY,
|
|
1668
|
+
re: /^array\b/i
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
value: PHP.Constants.T_AS,
|
|
1672
|
+
re: /^as\b/i
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
value: PHP.Constants.T_BREAK,
|
|
1676
|
+
re: /^break\b/i
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
value: PHP.Constants.T_CALLABLE,
|
|
1680
|
+
re: /^callable\b/i
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
value: PHP.Constants.T_CASE,
|
|
1684
|
+
re: /^case\b/i
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
value: PHP.Constants.T_CATCH,
|
|
1688
|
+
re: /^catch\b/i
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
value: PHP.Constants.T_CLASS,
|
|
1692
|
+
re: /^class\b/i,
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
value: PHP.Constants.T_CLONE,
|
|
1696
|
+
re: /^clone\b/i
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
value: PHP.Constants.T_CONST,
|
|
1700
|
+
re: /^const\b/i
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
value: PHP.Constants.T_CONTINUE,
|
|
1704
|
+
re: /^continue\b/i
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
value: PHP.Constants.T_DECLARE,
|
|
1708
|
+
re: /^declare\b/i
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
value: PHP.Constants.T_DEFAULT,
|
|
1712
|
+
re: /^default\b/i
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
value: PHP.Constants.T_DO,
|
|
1716
|
+
re: /^do\b/i
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
value: PHP.Constants.T_ECHO,
|
|
1720
|
+
re: /^echo\b/i
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
value: PHP.Constants.T_ELSE,
|
|
1724
|
+
re: /^else\b/i
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
value: PHP.Constants.T_ELSEIF,
|
|
1728
|
+
re: /^elseif\b/i
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
value: PHP.Constants.T_ENDDECLARE,
|
|
1732
|
+
re: /^enddeclare\b/i
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
value: PHP.Constants.T_ENDFOR,
|
|
1736
|
+
re: /^endfor\b/i
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
value: PHP.Constants.T_ENDFOREACH,
|
|
1740
|
+
re: /^endforeach\b/i
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
value: PHP.Constants.T_ENDIF,
|
|
1744
|
+
re: /^endif\b/i
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
value: PHP.Constants.T_ENDSWITCH,
|
|
1748
|
+
re: /^endswitch\b/i
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
value: PHP.Constants.T_ENDWHILE,
|
|
1752
|
+
re: /^endwhile\b/i
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
value: PHP.Constants.T_EMPTY,
|
|
1756
|
+
re: /^empty\b/i
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
value: PHP.Constants.T_EVAL,
|
|
1760
|
+
re: /^eval\b/i
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
value: PHP.Constants.T_EXIT,
|
|
1764
|
+
re: /^(?:exit|die)\b/i
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
value: PHP.Constants.T_EXTENDS,
|
|
1768
|
+
re: /^extends\b/i
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
value: PHP.Constants.T_FINAL,
|
|
1772
|
+
re: /^final\b/i
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
value: PHP.Constants.T_FINALLY,
|
|
1776
|
+
re: /^finally\b/i
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
value: PHP.Constants.T_FN,
|
|
1780
|
+
re: /^fn\b/i
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
value: PHP.Constants.T_FOR,
|
|
1784
|
+
re: /^for\b/i
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
value: PHP.Constants.T_FOREACH,
|
|
1788
|
+
re: /^foreach\b/i
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
value: PHP.Constants.T_FUNCTION,
|
|
1792
|
+
re: /^function\b/i
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
value: PHP.Constants.T_GLOBAL,
|
|
1796
|
+
re: /^global\b/i
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
value: PHP.Constants.T_GOTO,
|
|
1800
|
+
re: /^goto\b/i
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
value: PHP.Constants.T_IF,
|
|
1804
|
+
re: /^if\b/i
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
value: PHP.Constants.T_IMPLEMENTS,
|
|
1808
|
+
re: /^implements\b/i
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
value: PHP.Constants.T_INCLUDE,
|
|
1812
|
+
re: /^include\b/i
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
value: PHP.Constants.T_INCLUDE_ONCE,
|
|
1816
|
+
re: /^include_once\b/i
|
|
1817
|
+
},
|
|
1818
|
+
{
|
|
1819
|
+
value: PHP.Constants.T_INSTANCEOF,
|
|
1820
|
+
re: /^instanceof\b/i
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
value: PHP.Constants.T_INSTEADOF,
|
|
1824
|
+
re: /^insteadof\b/i
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
value: PHP.Constants.T_INTERFACE,
|
|
1828
|
+
re: /^interface\b/i
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
value: PHP.Constants.T_ISSET,
|
|
1832
|
+
re: /^isset\b/i
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
value: PHP.Constants.T_LIST,
|
|
1836
|
+
re: /^list\b/i
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
value: PHP.Constants.T_NAMESPACE,
|
|
1840
|
+
re: /^namespace\b/i
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
value: PHP.Constants.T_NEW,
|
|
1844
|
+
re: /^new\b/i
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
value: PHP.Constants.T_LOGICAL_OR,
|
|
1848
|
+
re: /^or\b/i
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
value: PHP.Constants.T_PRINT,
|
|
1852
|
+
re: /^print\b/i
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
value: PHP.Constants.T_PRIVATE,
|
|
1856
|
+
re: /^private\b/i
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
value: PHP.Constants.T_PROTECTED,
|
|
1860
|
+
re: /^protected\b/i
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
value: PHP.Constants.T_PUBLIC,
|
|
1864
|
+
re: /^public\b/i
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
value: PHP.Constants.T_REQUIRE,
|
|
1868
|
+
re: /^require\b/i
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
value: PHP.Constants.T_REQUIRE_ONCE,
|
|
1872
|
+
re: /^require_once\b/i
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
value: PHP.Constants.T_STATIC,
|
|
1876
|
+
re: /^static\b/i
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
value: PHP.Constants.T_SWITCH,
|
|
1880
|
+
re: /^switch\b/i
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
value: PHP.Constants.T_THROW,
|
|
1884
|
+
re: /^throw\b/i
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
value: PHP.Constants.T_TRAIT,
|
|
1888
|
+
re: /^trait\b/i,
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
value: PHP.Constants.T_TRY,
|
|
1892
|
+
re: /^try\b/i
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
value: PHP.Constants.T_UNSET,
|
|
1896
|
+
re: /^unset\b/i
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
value: PHP.Constants.T_USE,
|
|
1900
|
+
re: /^use\b/i
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
value: PHP.Constants.T_VAR,
|
|
1904
|
+
re: /^var\b/i
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
value: PHP.Constants.T_WHILE,
|
|
1908
|
+
re: /^while\b/i
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
value: PHP.Constants.T_LOGICAL_XOR,
|
|
1912
|
+
re: /^xor\b/i
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
value: PHP.Constants.T_YIELD_FROM,
|
|
1916
|
+
re: /^yield\s+from\b/i
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
value: PHP.Constants.T_YIELD,
|
|
1920
|
+
re: /^yield\b/i
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
value: PHP.Constants.T_RETURN,
|
|
1924
|
+
re: /^return\b/i
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
value: PHP.Constants.T_METHOD_C,
|
|
1928
|
+
re: /^__METHOD__\b/i
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
value: PHP.Constants.T_LINE,
|
|
1932
|
+
re: /^__LINE__\b/i
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
value: PHP.Constants.T_FILE,
|
|
1936
|
+
re: /^__FILE__\b/i
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
value: PHP.Constants.T_FUNC_C,
|
|
1940
|
+
re: /^__FUNCTION__\b/i
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
value: PHP.Constants.T_NS_C,
|
|
1944
|
+
re: /^__NAMESPACE__\b/i
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
value: PHP.Constants.T_TRAIT_C,
|
|
1948
|
+
re: /^__TRAIT__\b/i
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
value: PHP.Constants.T_DIR,
|
|
1952
|
+
re: /^__DIR__\b/i
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
value: PHP.Constants.T_CLASS_C,
|
|
1956
|
+
re: /^__CLASS__\b/i
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
value: PHP.Constants.T_AND_EQUAL,
|
|
1960
|
+
re: /^&=/
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
value: PHP.Constants.T_ARRAY_CAST,
|
|
1964
|
+
re: /^\([ \t]*array[ \t]*\)/i
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
value: PHP.Constants.T_BOOL_CAST,
|
|
1968
|
+
re: /^\([ \t]*(?:bool|boolean)[ \t]*\)/i
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
value: PHP.Constants.T_DOUBLE_CAST,
|
|
1972
|
+
re: /^\([ \t]*(?:real|float|double)[ \t]*\)/i
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
value: PHP.Constants.T_INT_CAST,
|
|
1976
|
+
re: /^\([ \t]*(?:int|integer)[ \t]*\)/i
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
value: PHP.Constants.T_OBJECT_CAST,
|
|
1980
|
+
re: /^\([ \t]*object[ \t]*\)/i
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
value: PHP.Constants.T_STRING_CAST,
|
|
1984
|
+
re: /^\([ \t]*(?:binary|string)[ \t]*\)/i
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
value: PHP.Constants.T_UNSET_CAST,
|
|
1988
|
+
re: /^\([ \t]*unset[ \t]*\)/i
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
value: PHP.Constants.T_BOOLEAN_AND,
|
|
1992
|
+
re: /^&&/
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
value: PHP.Constants.T_BOOLEAN_OR,
|
|
1996
|
+
re: /^\|\|/
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
value: PHP.Constants.T_CLOSE_TAG,
|
|
2000
|
+
re: /^(?:\?>|<\/script>)(\r\n|\r|\n)?/i,
|
|
2001
|
+
func: function() {
|
|
2002
|
+
swapState('INITIAL');
|
|
2003
|
+
}
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
value: PHP.Constants.T_DOUBLE_ARROW,
|
|
2007
|
+
re: /^=>/
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
value: PHP.Constants.T_PAAMAYIM_NEKUDOTAYIM,
|
|
2011
|
+
re: /^::/
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
value: PHP.Constants.T_INC,
|
|
2015
|
+
re: /^\+\+/
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
value: PHP.Constants.T_DEC,
|
|
2019
|
+
re: /^--/
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
value: PHP.Constants.T_CONCAT_EQUAL,
|
|
2023
|
+
re: /^\.=/
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
value: PHP.Constants.T_DIV_EQUAL,
|
|
2027
|
+
re: /^\/=/
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
value: PHP.Constants.T_XOR_EQUAL,
|
|
2031
|
+
re: /^\^=/
|
|
2032
|
+
},
|
|
2033
|
+
{
|
|
2034
|
+
value: PHP.Constants.T_MUL_EQUAL,
|
|
2035
|
+
re: /^\*=/
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
value: PHP.Constants.T_MOD_EQUAL,
|
|
2039
|
+
re: /^%=/
|
|
2040
|
+
},
|
|
2041
|
+
{
|
|
2042
|
+
value: PHP.Constants.T_SL_EQUAL,
|
|
2043
|
+
re: /^<<=/
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
value: PHP.Constants.T_START_HEREDOC,
|
|
2047
|
+
re: new RegExp('^[bB]?<<<[ \\t]*\'(' + labelRegexPart + ')\'(?:\\r\\n|\\r|\\n)'),
|
|
2048
|
+
func: function(result) {
|
|
2049
|
+
heredoc = result[1];
|
|
2050
|
+
swapState('NOWDOC');
|
|
2051
|
+
}
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
value: PHP.Constants.T_START_HEREDOC,
|
|
2055
|
+
re: new RegExp('^[bB]?<<<[ \\t]*("?)(' + labelRegexPart + ')\\1(?:\\r\\n|\\r|\\n)'),
|
|
2056
|
+
func: function(result) {
|
|
2057
|
+
heredoc = result[2];
|
|
2058
|
+
heredocEndAllowed = true;
|
|
2059
|
+
swapState('HEREDOC');
|
|
2060
|
+
}
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
value: PHP.Constants.T_SL,
|
|
2064
|
+
re: /^<</
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
value: PHP.Constants.T_SPACESHIP,
|
|
2068
|
+
re: /^<=>/
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
value: PHP.Constants.T_IS_SMALLER_OR_EQUAL,
|
|
2072
|
+
re: /^<=/
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
value: PHP.Constants.T_SR_EQUAL,
|
|
2076
|
+
re: /^>>=/
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
value: PHP.Constants.T_SR,
|
|
2080
|
+
re: /^>>/
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
value: PHP.Constants.T_IS_GREATER_OR_EQUAL,
|
|
2084
|
+
re: /^>=/
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
value: PHP.Constants.T_OR_EQUAL,
|
|
2088
|
+
re: /^\|=/
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
value: PHP.Constants.T_PLUS_EQUAL,
|
|
2092
|
+
re: /^\+=/
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
value: PHP.Constants.T_MINUS_EQUAL,
|
|
2096
|
+
re: /^-=/
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
value: PHP.Constants.T_OBJECT_OPERATOR,
|
|
2100
|
+
re: new RegExp('^->(?=[ \n\r\t]*' + labelRegexPart + ')'),
|
|
2101
|
+
func: function() {
|
|
2102
|
+
pushState('LOOKING_FOR_PROPERTY');
|
|
2103
|
+
}
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
value: PHP.Constants.T_OBJECT_OPERATOR,
|
|
2107
|
+
re: /^->/i
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
value: PHP.Constants.T_ELLIPSIS,
|
|
2111
|
+
re: /^\.\.\./
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
value: PHP.Constants.T_POW_EQUAL,
|
|
2115
|
+
re: /^\*\*=/
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
value: PHP.Constants.T_POW,
|
|
2119
|
+
re: /^\*\*/
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
value: PHP.Constants.T_COALESCE,
|
|
2123
|
+
re: /^\?\?/
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
value: PHP.Constants.T_COMMENT,
|
|
2127
|
+
re: /^\/\*([\S\s]*?)(?:\*\/|$)/
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
value: PHP.Constants.T_COMMENT,
|
|
2131
|
+
re: /^(?:\/\/|#)[^\r\n?]*(?:\?(?!>)[^\r\n?]*)*(?:\r\n|\r|\n)?/
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
value: PHP.Constants.T_IS_IDENTICAL,
|
|
2135
|
+
re: /^===/
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
value: PHP.Constants.T_IS_EQUAL,
|
|
2139
|
+
re: /^==/
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
value: PHP.Constants.T_IS_NOT_IDENTICAL,
|
|
2143
|
+
re: /^!==/
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
value: PHP.Constants.T_IS_NOT_EQUAL,
|
|
2147
|
+
re: /^(!=|<>)/
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
value: PHP.Constants.T_DNUMBER,
|
|
2151
|
+
re: /^(?:[0-9]+\.[0-9]*|\.[0-9]+)(?:[eE][+-]?[0-9]+)?/
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
value: PHP.Constants.T_DNUMBER,
|
|
2155
|
+
re: /^[0-9]+[eE][+-]?[0-9]+/
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
value: PHP.Constants.T_LNUMBER,
|
|
2159
|
+
re: /^(?:0x[0-9A-F]+|0b[01]+|[0-9]+)/i
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
value: PHP.Constants.T_VARIABLE,
|
|
2163
|
+
re: new RegExp('^\\$' + labelRegexPart)
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
value: PHP.Constants.T_CONSTANT_ENCAPSED_STRING,
|
|
2167
|
+
re: /^[bB]?'[^'\\]*(?:\\[\s\S][^'\\]*)*'/,
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
value: PHP.Constants.T_CONSTANT_ENCAPSED_STRING,
|
|
2171
|
+
re: new RegExp('^[bB]?"' + stringRegexPart('"') + '"')
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
value: -1,
|
|
2175
|
+
re: /^[bB]?"/,
|
|
2176
|
+
func: function() {
|
|
2177
|
+
swapState('DOUBLE_QUOTES');
|
|
2178
|
+
}
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
value: -1,
|
|
2182
|
+
re: /^`/,
|
|
2183
|
+
func: function() {
|
|
2184
|
+
swapState('BACKTICKS');
|
|
2185
|
+
}
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
value: PHP.Constants.T_NS_SEPARATOR,
|
|
2189
|
+
re: /^\\/
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
value: PHP.Constants.T_STRING,
|
|
2193
|
+
re: /^[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
value: -1,
|
|
2197
|
+
re: /^\{/,
|
|
2198
|
+
func: function() {
|
|
2199
|
+
pushState('IN_SCRIPTING');
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
value: -1,
|
|
2204
|
+
re: /^\}/,
|
|
2205
|
+
func: function() {
|
|
2206
|
+
if (stackPos > 0) {
|
|
2207
|
+
popState();
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
value: -1,
|
|
2213
|
+
re: /^[\[\];:?()!.,><=+-/*|&@^%"'$~]/
|
|
2214
|
+
}
|
|
2215
|
+
],
|
|
2216
|
+
'DOUBLE_QUOTES': sharedStringTokens.concat([
|
|
2217
|
+
{
|
|
2218
|
+
value: -1,
|
|
2219
|
+
re: /^"/,
|
|
2220
|
+
func: function() {
|
|
2221
|
+
swapState('IN_SCRIPTING');
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
value: PHP.Constants.T_ENCAPSED_AND_WHITESPACE,
|
|
2226
|
+
re: new RegExp('^' + stringRegexPart('"'))
|
|
2227
|
+
}
|
|
2228
|
+
]),
|
|
2229
|
+
'BACKTICKS': sharedStringTokens.concat([
|
|
2230
|
+
{
|
|
2231
|
+
value: -1,
|
|
2232
|
+
re: /^`/,
|
|
2233
|
+
func: function() {
|
|
2234
|
+
swapState('IN_SCRIPTING');
|
|
2235
|
+
}
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
value: PHP.Constants.T_ENCAPSED_AND_WHITESPACE,
|
|
2239
|
+
re: new RegExp('^' + stringRegexPart('`'))
|
|
2240
|
+
}
|
|
2241
|
+
]),
|
|
2242
|
+
'VAR_OFFSET': [
|
|
2243
|
+
{
|
|
2244
|
+
value: -1,
|
|
2245
|
+
re: /^\]/,
|
|
2246
|
+
func: function() {
|
|
2247
|
+
popState();
|
|
2248
|
+
}
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
value: PHP.Constants.T_NUM_STRING,
|
|
2252
|
+
re: /^(?:0x[0-9A-F]+|0b[01]+|[0-9]+)/i
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
value: PHP.Constants.T_VARIABLE,
|
|
2256
|
+
re: new RegExp('^\\$' + labelRegexPart)
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
value: PHP.Constants.T_STRING,
|
|
2260
|
+
re: new RegExp('^' + labelRegexPart)
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
value: -1,
|
|
2264
|
+
re: /^[;:,.\[()|^&+-/*=%!~$<>?@{}"`]/
|
|
2265
|
+
}
|
|
2266
|
+
],
|
|
2267
|
+
'LOOKING_FOR_PROPERTY': [
|
|
2268
|
+
{
|
|
2269
|
+
value: PHP.Constants.T_OBJECT_OPERATOR,
|
|
2270
|
+
re: /^->/
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
value: PHP.Constants.T_STRING,
|
|
2274
|
+
re: new RegExp('^' + labelRegexPart),
|
|
2275
|
+
func: function() {
|
|
2276
|
+
popState();
|
|
2277
|
+
}
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
value: PHP.Constants.T_WHITESPACE,
|
|
2281
|
+
re: /^[ \n\r\t]+/
|
|
2282
|
+
}
|
|
2283
|
+
],
|
|
2284
|
+
'LOOKING_FOR_VARNAME': [
|
|
2285
|
+
{
|
|
2286
|
+
value: PHP.Constants.T_STRING_VARNAME,
|
|
2287
|
+
re: new RegExp('^' + labelRegexPart + '(?=[\\[}])'),
|
|
2288
|
+
func: function() {
|
|
2289
|
+
swapState('IN_SCRIPTING');
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
],
|
|
2293
|
+
'NOWDOC': [
|
|
2294
|
+
{
|
|
2295
|
+
value: PHP.Constants.T_END_HEREDOC,
|
|
2296
|
+
matchFunc: function(src) {
|
|
2297
|
+
var re = new RegExp('^' + heredoc + '(?=;?[\\r\\n])');
|
|
2298
|
+
if (src.match(re)) {
|
|
2299
|
+
return [src.substr(0, heredoc.length)];
|
|
2300
|
+
} else {
|
|
2301
|
+
return null;
|
|
2302
|
+
}
|
|
2303
|
+
},
|
|
2304
|
+
func: function() {
|
|
2305
|
+
swapState('IN_SCRIPTING');
|
|
2306
|
+
}
|
|
2307
|
+
},
|
|
2308
|
+
{
|
|
2309
|
+
value: PHP.Constants.T_ENCAPSED_AND_WHITESPACE,
|
|
2310
|
+
matchFunc: function(src) {
|
|
2311
|
+
var re = new RegExp('[\\r\\n]' + heredoc + '(?=;?[\\r\\n])');
|
|
2312
|
+
var result = re.exec(src);
|
|
2313
|
+
var end = result ? result.index + 1 : src.length;
|
|
2314
|
+
return [src.substring(0, end)];
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
],
|
|
2318
|
+
'HEREDOC': sharedStringTokens.concat([
|
|
2319
|
+
{
|
|
2320
|
+
value: PHP.Constants.T_END_HEREDOC,
|
|
2321
|
+
matchFunc: function(src) {
|
|
2322
|
+
if (!heredocEndAllowed) {
|
|
2323
|
+
return null;
|
|
2324
|
+
}
|
|
2325
|
+
var re = new RegExp('^' + heredoc + '(?=;?[\\r\\n])');
|
|
2326
|
+
if (src.match(re)) {
|
|
2327
|
+
return [src.substr(0, heredoc.length)];
|
|
2328
|
+
} else {
|
|
2329
|
+
return null;
|
|
2330
|
+
}
|
|
2331
|
+
},
|
|
2332
|
+
func: function() {
|
|
2333
|
+
swapState('IN_SCRIPTING');
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
value: PHP.Constants.T_ENCAPSED_AND_WHITESPACE,
|
|
2338
|
+
matchFunc: function(src) {
|
|
2339
|
+
var end = src.length;
|
|
2340
|
+
var re = new RegExp('^' + stringRegexPart(''));
|
|
2341
|
+
var result = re.exec(src);
|
|
2342
|
+
if (result) {
|
|
2343
|
+
end = result[0].length;
|
|
2344
|
+
}
|
|
2345
|
+
re = new RegExp('([\\r\\n])' + heredoc + '(?=;?[\\r\\n])');
|
|
2346
|
+
result = re.exec(src.substring(0, end));
|
|
2347
|
+
if (result) {
|
|
2348
|
+
end = result.index + 1;
|
|
2349
|
+
heredocEndAllowed = true;
|
|
2350
|
+
} else {
|
|
2351
|
+
heredocEndAllowed = false;
|
|
2352
|
+
}
|
|
2353
|
+
if (end == 0) {
|
|
2354
|
+
return null;
|
|
2355
|
+
}
|
|
2356
|
+
return [src.substring(0, end)];
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
])
|
|
2360
|
+
};
|
|
2361
|
+
|
|
2362
|
+
var results = [],
|
|
2363
|
+
line = 1,
|
|
2364
|
+
cancel = true;
|
|
2365
|
+
|
|
2366
|
+
if (src === null) {
|
|
2367
|
+
return results;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
if (typeof src !== "string") {
|
|
2371
|
+
src = src.toString();
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
while (src.length > 0 && cancel === true) {
|
|
2375
|
+
var state = stateStack[stackPos];
|
|
2376
|
+
var tokens = data[state];
|
|
2377
|
+
cancel = tokens.some(function(token){
|
|
2378
|
+
var result = token.matchFunc !== undefined
|
|
2379
|
+
? token.matchFunc(src)
|
|
2380
|
+
: src.match(token.re);
|
|
2381
|
+
if (result !== null) {
|
|
2382
|
+
if (result[0].length == 0) {
|
|
2383
|
+
throw new Error("empty match");
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
if (token.func !== undefined) {
|
|
2387
|
+
token.func(result);
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
if (token.value === -1) {
|
|
2391
|
+
results.push(result[0]);
|
|
2392
|
+
} else {
|
|
2393
|
+
var resultString = result[0];
|
|
2394
|
+
results.push([
|
|
2395
|
+
parseInt(token.value, 10),
|
|
2396
|
+
resultString,
|
|
2397
|
+
line
|
|
2398
|
+
]);
|
|
2399
|
+
line += resultString.split('\n').length - 1;
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
src = src.substring(result[0].length);
|
|
2403
|
+
|
|
2404
|
+
return true;
|
|
2405
|
+
}
|
|
2406
|
+
return false;
|
|
2407
|
+
});
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
return results;
|
|
2411
|
+
};
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
PHP.Parser = function ( preprocessedTokens, evaluate ) {
|
|
2415
|
+
|
|
2416
|
+
var yybase = this.yybase,
|
|
2417
|
+
yydefault = this.yydefault,
|
|
2418
|
+
yycheck = this.yycheck,
|
|
2419
|
+
yyaction = this.yyaction,
|
|
2420
|
+
yylen = this.yylen,
|
|
2421
|
+
yygbase = this.yygbase,
|
|
2422
|
+
yygcheck = this.yygcheck,
|
|
2423
|
+
yyp = this.yyp,
|
|
2424
|
+
yygoto = this.yygoto,
|
|
2425
|
+
yylhs = this.yylhs,
|
|
2426
|
+
terminals = this.terminals,
|
|
2427
|
+
translate = this.translate,
|
|
2428
|
+
yygdefault = this.yygdefault;
|
|
2429
|
+
|
|
2430
|
+
|
|
2431
|
+
this.pos = -1;
|
|
2432
|
+
this.line = 1;
|
|
2433
|
+
|
|
2434
|
+
this.tokenMap = this.createTokenMap( );
|
|
2435
|
+
|
|
2436
|
+
this.dropTokens = {};
|
|
2437
|
+
this.dropTokens[ PHP.Constants.T_WHITESPACE ] = 1;
|
|
2438
|
+
this.dropTokens[ PHP.Constants.T_OPEN_TAG ] = 1;
|
|
2439
|
+
var tokens = [];
|
|
2440
|
+
preprocessedTokens.forEach( function( token, index ) {
|
|
2441
|
+
if ( typeof token === "object" && token[ 0 ] === PHP.Constants.T_OPEN_TAG_WITH_ECHO) {
|
|
2442
|
+
tokens.push([
|
|
2443
|
+
PHP.Constants.T_OPEN_TAG,
|
|
2444
|
+
token[ 1 ],
|
|
2445
|
+
token[ 2 ]
|
|
2446
|
+
]);
|
|
2447
|
+
tokens.push([
|
|
2448
|
+
PHP.Constants.T_ECHO,
|
|
2449
|
+
token[ 1 ],
|
|
2450
|
+
token[ 2 ]
|
|
2451
|
+
]);
|
|
2452
|
+
} else {
|
|
2453
|
+
tokens.push( token );
|
|
2454
|
+
}
|
|
2455
|
+
});
|
|
2456
|
+
this.tokens = tokens;
|
|
2457
|
+
var tokenId = this.TOKEN_NONE;
|
|
2458
|
+
this.startAttributes = {
|
|
2459
|
+
'startLine': 1
|
|
2460
|
+
};
|
|
2461
|
+
|
|
2462
|
+
this.endAttributes = {};
|
|
2463
|
+
var attributeStack = [ this.startAttributes ];
|
|
2464
|
+
var state = 0;
|
|
2465
|
+
var stateStack = [ state ];
|
|
2466
|
+
this.yyastk = [];
|
|
2467
|
+
this.stackPos = 0;
|
|
2468
|
+
|
|
2469
|
+
var yyn;
|
|
2470
|
+
|
|
2471
|
+
var origTokenId;
|
|
2472
|
+
|
|
2473
|
+
|
|
2474
|
+
for (;;) {
|
|
2475
|
+
|
|
2476
|
+
if ( yybase[ state ] === 0 ) {
|
|
2477
|
+
yyn = yydefault[ state ];
|
|
2478
|
+
} else {
|
|
2479
|
+
if (tokenId === this.TOKEN_NONE ) {
|
|
2480
|
+
origTokenId = this.getNextToken( );
|
|
2481
|
+
tokenId = (origTokenId >= 0 && origTokenId < this.TOKEN_MAP_SIZE) ? translate[ origTokenId ] : this.TOKEN_INVALID;
|
|
2482
|
+
|
|
2483
|
+
attributeStack[ this.stackPos ] = this.startAttributes;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
if (((yyn = yybase[ state ] + tokenId) >= 0
|
|
2487
|
+
&& yyn < this.YYLAST && yycheck[ yyn ] === tokenId
|
|
2488
|
+
|| (state < this.YY2TBLSTATE
|
|
2489
|
+
&& (yyn = yybase[state + this.YYNLSTATES] + tokenId) >= 0
|
|
2490
|
+
&& yyn < this.YYLAST
|
|
2491
|
+
&& yycheck[ yyn ] === tokenId))
|
|
2492
|
+
&& (yyn = yyaction[ yyn ]) !== this.YYDEFAULT ) {
|
|
2493
|
+
if (yyn > 0) {
|
|
2494
|
+
++this.stackPos;
|
|
2495
|
+
|
|
2496
|
+
stateStack[ this.stackPos ] = state = yyn;
|
|
2497
|
+
this.yyastk[ this.stackPos ] = this.tokenValue;
|
|
2498
|
+
attributeStack[ this.stackPos ] = this.startAttributes;
|
|
2499
|
+
tokenId = this.TOKEN_NONE;
|
|
2500
|
+
|
|
2501
|
+
if (yyn < this.YYNLSTATES)
|
|
2502
|
+
continue;
|
|
2503
|
+
yyn -= this.YYNLSTATES;
|
|
2504
|
+
} else {
|
|
2505
|
+
yyn = -yyn;
|
|
2506
|
+
}
|
|
2507
|
+
} else {
|
|
2508
|
+
yyn = yydefault[ state ];
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
for (;;) {
|
|
2513
|
+
|
|
2514
|
+
if ( yyn === 0 ) {
|
|
2515
|
+
return this.yyval;
|
|
2516
|
+
} else if (yyn !== this.YYUNEXPECTED ) {
|
|
2517
|
+
for (var attr in this.endAttributes) {
|
|
2518
|
+
attributeStack[ this.stackPos - yylen[ yyn ] ][ attr ] = this.endAttributes[ attr ];
|
|
2519
|
+
}
|
|
2520
|
+
this.stackPos -= yylen[ yyn ];
|
|
2521
|
+
yyn = yylhs[ yyn ];
|
|
2522
|
+
if ((yyp = yygbase[ yyn ] + stateStack[ this.stackPos ]) >= 0
|
|
2523
|
+
&& yyp < this.YYGLAST
|
|
2524
|
+
&& yygcheck[ yyp ] === yyn) {
|
|
2525
|
+
state = yygoto[ yyp ];
|
|
2526
|
+
} else {
|
|
2527
|
+
state = yygdefault[ yyn ];
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
++this.stackPos;
|
|
2531
|
+
|
|
2532
|
+
stateStack[ this.stackPos ] = state;
|
|
2533
|
+
this.yyastk[ this.stackPos ] = this.yyval;
|
|
2534
|
+
attributeStack[ this.stackPos ] = this.startAttributes;
|
|
2535
|
+
} else {
|
|
2536
|
+
if (evaluate !== true) {
|
|
2537
|
+
|
|
2538
|
+
var expected = [];
|
|
2539
|
+
|
|
2540
|
+
for (var i = 0; i < this.TOKEN_MAP_SIZE; ++i) {
|
|
2541
|
+
if ((yyn = yybase[ state ] + i) >= 0 && yyn < this.YYLAST && yycheck[ yyn ] == i
|
|
2542
|
+
|| state < this.YY2TBLSTATE
|
|
2543
|
+
&& (yyn = yybase[ state + this.YYNLSTATES] + i)
|
|
2544
|
+
&& yyn < this.YYLAST && yycheck[ yyn ] == i
|
|
2545
|
+
) {
|
|
2546
|
+
if (yyaction[ yyn ] != this.YYUNEXPECTED) {
|
|
2547
|
+
if (expected.length == 4) {
|
|
2548
|
+
expected = [];
|
|
2549
|
+
break;
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
expected.push( this.terminals[ i ] );
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
var expectedString = '';
|
|
2558
|
+
if (expected.length) {
|
|
2559
|
+
expectedString = ', expecting ' + expected.join(' or ');
|
|
2560
|
+
}
|
|
2561
|
+
throw new PHP.ParseError('syntax error, unexpected ' + terminals[ tokenId ] + expectedString, this.startAttributes['startLine']);
|
|
2562
|
+
} else {
|
|
2563
|
+
return this.startAttributes['startLine'];
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
if (state < this.YYNLSTATES)
|
|
2569
|
+
break;
|
|
2570
|
+
yyn = state - this.YYNLSTATES;
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
};
|
|
2574
|
+
|
|
2575
|
+
PHP.ParseError = function( msg, line ) {
|
|
2576
|
+
this.message = msg;
|
|
2577
|
+
this.line = line;
|
|
2578
|
+
};
|
|
2579
|
+
|
|
2580
|
+
PHP.Parser.prototype.getNextToken = function( ) {
|
|
2581
|
+
|
|
2582
|
+
this.startAttributes = {};
|
|
2583
|
+
this.endAttributes = {};
|
|
2584
|
+
|
|
2585
|
+
var token,
|
|
2586
|
+
tmp;
|
|
2587
|
+
|
|
2588
|
+
while (this.tokens[++this.pos] !== undefined) {
|
|
2589
|
+
token = this.tokens[this.pos];
|
|
2590
|
+
|
|
2591
|
+
if (typeof token === "string") {
|
|
2592
|
+
this.startAttributes['startLine'] = this.line;
|
|
2593
|
+
this.endAttributes['endLine'] = this.line;
|
|
2594
|
+
if ('b"' === token) {
|
|
2595
|
+
this.tokenValue = 'b"';
|
|
2596
|
+
return '"'.charCodeAt(0);
|
|
2597
|
+
} else {
|
|
2598
|
+
this.tokenValue = token;
|
|
2599
|
+
return token.charCodeAt(0);
|
|
2600
|
+
}
|
|
2601
|
+
} else {
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
|
|
2605
|
+
this.line += ((tmp = token[ 1 ].match(/\n/g)) === null) ? 0 : tmp.length;
|
|
2606
|
+
|
|
2607
|
+
if (PHP.Constants.T_COMMENT === token[0]) {
|
|
2608
|
+
|
|
2609
|
+
if (!Array.isArray(this.startAttributes['comments'])) {
|
|
2610
|
+
this.startAttributes['comments'] = [];
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
this.startAttributes['comments'].push( {
|
|
2614
|
+
type: "comment",
|
|
2615
|
+
comment: token[1],
|
|
2616
|
+
line: token[2]
|
|
2617
|
+
});
|
|
2618
|
+
|
|
2619
|
+
} else if (PHP.Constants.T_DOC_COMMENT === token[0]) {
|
|
2620
|
+
this.startAttributes['comments'].push( new PHPParser_Comment_Doc(token[1], token[2]) );
|
|
2621
|
+
} else if (this.dropTokens[token[0]] === undefined) {
|
|
2622
|
+
this.tokenValue = token[1];
|
|
2623
|
+
this.startAttributes['startLine'] = token[2];
|
|
2624
|
+
this.endAttributes['endLine'] = this.line;
|
|
2625
|
+
|
|
2626
|
+
return this.tokenMap[token[0]];
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
this.startAttributes['startLine'] = this.line;
|
|
2632
|
+
return 0;
|
|
2633
|
+
};
|
|
2634
|
+
|
|
2635
|
+
PHP.Parser.prototype.tokenName = function( token ) {
|
|
2636
|
+
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_YIELD","T_DOUBLE_ARROW","T_YIELD_FROM","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_POW_EQUAL","T_COALESCE_EQUAL","T_COALESCE","T_BOOLEAN_OR","T_BOOLEAN_AND","T_IS_EQUAL","T_IS_NOT_EQUAL","T_IS_IDENTICAL","T_IS_NOT_IDENTICAL","T_SPACESHIP","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_POW","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_FN","T_CONST","T_RETURN","T_TRY","T_CATCH","T_FINALLY","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_NAMESPACE","T_NS_C","T_DIR","T_NS_SEPARATOR","T_ELLIPSIS"];
|
|
2637
|
+
var current = "UNKNOWN";
|
|
2638
|
+
constants.some(function( constant ) {
|
|
2639
|
+
if (PHP.Constants[ constant ] === token) {
|
|
2640
|
+
current = constant;
|
|
2641
|
+
return true;
|
|
2642
|
+
} else {
|
|
2643
|
+
return false;
|
|
2644
|
+
}
|
|
2645
|
+
});
|
|
2646
|
+
|
|
2647
|
+
return current;
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
PHP.Parser.prototype.createTokenMap = function() {
|
|
2651
|
+
var tokenMap = {},
|
|
2652
|
+
name,
|
|
2653
|
+
i;
|
|
2654
|
+
for ( i = 256; i < 1000; ++i ) {
|
|
2655
|
+
if( PHP.Constants.T_OPEN_TAG_WITH_ECHO === i ) {
|
|
2656
|
+
tokenMap[ i ] = PHP.Constants.T_ECHO;
|
|
2657
|
+
} else if( PHP.Constants.T_CLOSE_TAG === i ) {
|
|
2658
|
+
tokenMap[ i ] = 59;
|
|
2659
|
+
} else if ( 'UNKNOWN' !== (name = this.tokenName( i ) ) ) {
|
|
2660
|
+
tokenMap[ i ] = this[name];
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
return tokenMap;
|
|
2664
|
+
};
|
|
2665
|
+
|
|
2666
|
+
PHP.Parser.prototype.TOKEN_NONE = -1;
|
|
2667
|
+
PHP.Parser.prototype.TOKEN_INVALID = 159;
|
|
2668
|
+
|
|
2669
|
+
PHP.Parser.prototype.TOKEN_MAP_SIZE = 394;
|
|
2670
|
+
|
|
2671
|
+
PHP.Parser.prototype.YYLAST = 964;
|
|
2672
|
+
PHP.Parser.prototype.YY2TBLSTATE = 348;
|
|
2673
|
+
PHP.Parser.prototype.YYGLAST = 508;
|
|
2674
|
+
PHP.Parser.prototype.YYNLSTATES = 602;
|
|
2675
|
+
PHP.Parser.prototype.YYUNEXPECTED = 32767;
|
|
2676
|
+
PHP.Parser.prototype.YYDEFAULT = -32766;
|
|
2677
|
+
PHP.Parser.prototype.YYERRTOK = 256;
|
|
2678
|
+
PHP.Parser.prototype.T_INCLUDE = 257;
|
|
2679
|
+
PHP.Parser.prototype.T_INCLUDE_ONCE = 258;
|
|
2680
|
+
PHP.Parser.prototype.T_EVAL = 259;
|
|
2681
|
+
PHP.Parser.prototype.T_REQUIRE = 260;
|
|
2682
|
+
PHP.Parser.prototype.T_REQUIRE_ONCE = 261;
|
|
2683
|
+
PHP.Parser.prototype.T_LOGICAL_OR = 262;
|
|
2684
|
+
PHP.Parser.prototype.T_LOGICAL_XOR = 263;
|
|
2685
|
+
PHP.Parser.prototype.T_LOGICAL_AND = 264;
|
|
2686
|
+
PHP.Parser.prototype.T_PRINT = 265;
|
|
2687
|
+
PHP.Parser.prototype.T_YIELD = 266;
|
|
2688
|
+
PHP.Parser.prototype.T_DOUBLE_ARROW = 267;
|
|
2689
|
+
PHP.Parser.prototype.T_YIELD_FROM = 268;
|
|
2690
|
+
PHP.Parser.prototype.T_PLUS_EQUAL = 269;
|
|
2691
|
+
PHP.Parser.prototype.T_MINUS_EQUAL = 270;
|
|
2692
|
+
PHP.Parser.prototype.T_MUL_EQUAL = 271;
|
|
2693
|
+
PHP.Parser.prototype.T_DIV_EQUAL = 272;
|
|
2694
|
+
PHP.Parser.prototype.T_CONCAT_EQUAL = 273;
|
|
2695
|
+
PHP.Parser.prototype.T_MOD_EQUAL = 274;
|
|
2696
|
+
PHP.Parser.prototype.T_AND_EQUAL = 275;
|
|
2697
|
+
PHP.Parser.prototype.T_OR_EQUAL = 276;
|
|
2698
|
+
PHP.Parser.prototype.T_XOR_EQUAL = 277;
|
|
2699
|
+
PHP.Parser.prototype.T_SL_EQUAL = 278;
|
|
2700
|
+
PHP.Parser.prototype.T_SR_EQUAL = 279;
|
|
2701
|
+
PHP.Parser.prototype.T_POW_EQUAL = 280;
|
|
2702
|
+
PHP.Parser.prototype.T_COALESCE_EQUAL = 281;
|
|
2703
|
+
PHP.Parser.prototype.T_COALESCE = 282;
|
|
2704
|
+
PHP.Parser.prototype.T_BOOLEAN_OR = 283;
|
|
2705
|
+
PHP.Parser.prototype.T_BOOLEAN_AND = 284;
|
|
2706
|
+
PHP.Parser.prototype.T_IS_EQUAL = 285;
|
|
2707
|
+
PHP.Parser.prototype.T_IS_NOT_EQUAL = 286;
|
|
2708
|
+
PHP.Parser.prototype.T_IS_IDENTICAL = 287;
|
|
2709
|
+
PHP.Parser.prototype.T_IS_NOT_IDENTICAL = 288;
|
|
2710
|
+
PHP.Parser.prototype.T_SPACESHIP = 289;
|
|
2711
|
+
PHP.Parser.prototype.T_IS_SMALLER_OR_EQUAL = 290;
|
|
2712
|
+
PHP.Parser.prototype.T_IS_GREATER_OR_EQUAL = 291;
|
|
2713
|
+
PHP.Parser.prototype.T_SL = 292;
|
|
2714
|
+
PHP.Parser.prototype.T_SR = 293;
|
|
2715
|
+
PHP.Parser.prototype.T_INSTANCEOF = 294;
|
|
2716
|
+
PHP.Parser.prototype.T_INC = 295;
|
|
2717
|
+
PHP.Parser.prototype.T_DEC = 296;
|
|
2718
|
+
PHP.Parser.prototype.T_INT_CAST = 297;
|
|
2719
|
+
PHP.Parser.prototype.T_DOUBLE_CAST = 298;
|
|
2720
|
+
PHP.Parser.prototype.T_STRING_CAST = 299;
|
|
2721
|
+
PHP.Parser.prototype.T_ARRAY_CAST = 300;
|
|
2722
|
+
PHP.Parser.prototype.T_OBJECT_CAST = 301;
|
|
2723
|
+
PHP.Parser.prototype.T_BOOL_CAST = 302;
|
|
2724
|
+
PHP.Parser.prototype.T_UNSET_CAST = 303;
|
|
2725
|
+
PHP.Parser.prototype.T_POW = 304;
|
|
2726
|
+
PHP.Parser.prototype.T_NEW = 305;
|
|
2727
|
+
PHP.Parser.prototype.T_CLONE = 306;
|
|
2728
|
+
PHP.Parser.prototype.T_EXIT = 307;
|
|
2729
|
+
PHP.Parser.prototype.T_IF = 308;
|
|
2730
|
+
PHP.Parser.prototype.T_ELSEIF = 309;
|
|
2731
|
+
PHP.Parser.prototype.T_ELSE = 310;
|
|
2732
|
+
PHP.Parser.prototype.T_ENDIF = 311;
|
|
2733
|
+
PHP.Parser.prototype.T_LNUMBER = 312;
|
|
2734
|
+
PHP.Parser.prototype.T_DNUMBER = 313;
|
|
2735
|
+
PHP.Parser.prototype.T_STRING = 314;
|
|
2736
|
+
PHP.Parser.prototype.T_STRING_VARNAME = 315;
|
|
2737
|
+
PHP.Parser.prototype.T_VARIABLE = 316;
|
|
2738
|
+
PHP.Parser.prototype.T_NUM_STRING = 317;
|
|
2739
|
+
PHP.Parser.prototype.T_INLINE_HTML = 318;
|
|
2740
|
+
PHP.Parser.prototype.T_CHARACTER = 319;
|
|
2741
|
+
PHP.Parser.prototype.T_BAD_CHARACTER = 320;
|
|
2742
|
+
PHP.Parser.prototype.T_ENCAPSED_AND_WHITESPACE = 321;
|
|
2743
|
+
PHP.Parser.prototype.T_CONSTANT_ENCAPSED_STRING = 322;
|
|
2744
|
+
PHP.Parser.prototype.T_ECHO = 323;
|
|
2745
|
+
PHP.Parser.prototype.T_DO = 324;
|
|
2746
|
+
PHP.Parser.prototype.T_WHILE = 325;
|
|
2747
|
+
PHP.Parser.prototype.T_ENDWHILE = 326;
|
|
2748
|
+
PHP.Parser.prototype.T_FOR = 327;
|
|
2749
|
+
PHP.Parser.prototype.T_ENDFOR = 328;
|
|
2750
|
+
PHP.Parser.prototype.T_FOREACH = 329;
|
|
2751
|
+
PHP.Parser.prototype.T_ENDFOREACH = 330;
|
|
2752
|
+
PHP.Parser.prototype.T_DECLARE = 331;
|
|
2753
|
+
PHP.Parser.prototype.T_ENDDECLARE = 332;
|
|
2754
|
+
PHP.Parser.prototype.T_AS = 333;
|
|
2755
|
+
PHP.Parser.prototype.T_SWITCH = 334;
|
|
2756
|
+
PHP.Parser.prototype.T_ENDSWITCH = 335;
|
|
2757
|
+
PHP.Parser.prototype.T_CASE = 336;
|
|
2758
|
+
PHP.Parser.prototype.T_DEFAULT = 337;
|
|
2759
|
+
PHP.Parser.prototype.T_BREAK = 338;
|
|
2760
|
+
PHP.Parser.prototype.T_CONTINUE = 339;
|
|
2761
|
+
PHP.Parser.prototype.T_GOTO = 340;
|
|
2762
|
+
PHP.Parser.prototype.T_FUNCTION = 341;
|
|
2763
|
+
PHP.Parser.prototype.T_FN = 342;
|
|
2764
|
+
PHP.Parser.prototype.T_CONST = 343;
|
|
2765
|
+
PHP.Parser.prototype.T_RETURN = 344;
|
|
2766
|
+
PHP.Parser.prototype.T_TRY = 345;
|
|
2767
|
+
PHP.Parser.prototype.T_CATCH = 346;
|
|
2768
|
+
PHP.Parser.prototype.T_FINALLY = 347;
|
|
2769
|
+
PHP.Parser.prototype.T_THROW = 348;
|
|
2770
|
+
PHP.Parser.prototype.T_USE = 349;
|
|
2771
|
+
PHP.Parser.prototype.T_INSTEADOF = 350;
|
|
2772
|
+
PHP.Parser.prototype.T_GLOBAL = 351;
|
|
2773
|
+
PHP.Parser.prototype.T_STATIC = 352;
|
|
2774
|
+
PHP.Parser.prototype.T_ABSTRACT = 353;
|
|
2775
|
+
PHP.Parser.prototype.T_FINAL = 354;
|
|
2776
|
+
PHP.Parser.prototype.T_PRIVATE = 355;
|
|
2777
|
+
PHP.Parser.prototype.T_PROTECTED = 356;
|
|
2778
|
+
PHP.Parser.prototype.T_PUBLIC = 357;
|
|
2779
|
+
PHP.Parser.prototype.T_VAR = 358;
|
|
2780
|
+
PHP.Parser.prototype.T_UNSET = 359;
|
|
2781
|
+
PHP.Parser.prototype.T_ISSET = 360;
|
|
2782
|
+
PHP.Parser.prototype.T_EMPTY = 361;
|
|
2783
|
+
PHP.Parser.prototype.T_HALT_COMPILER = 362;
|
|
2784
|
+
PHP.Parser.prototype.T_CLASS = 363;
|
|
2785
|
+
PHP.Parser.prototype.T_TRAIT = 364;
|
|
2786
|
+
PHP.Parser.prototype.T_INTERFACE = 365;
|
|
2787
|
+
PHP.Parser.prototype.T_EXTENDS = 366;
|
|
2788
|
+
PHP.Parser.prototype.T_IMPLEMENTS = 367;
|
|
2789
|
+
PHP.Parser.prototype.T_OBJECT_OPERATOR = 368;
|
|
2790
|
+
PHP.Parser.prototype.T_LIST = 369;
|
|
2791
|
+
PHP.Parser.prototype.T_ARRAY = 370;
|
|
2792
|
+
PHP.Parser.prototype.T_CALLABLE = 371;
|
|
2793
|
+
PHP.Parser.prototype.T_CLASS_C = 372;
|
|
2794
|
+
PHP.Parser.prototype.T_TRAIT_C = 373;
|
|
2795
|
+
PHP.Parser.prototype.T_METHOD_C = 374;
|
|
2796
|
+
PHP.Parser.prototype.T_FUNC_C = 375;
|
|
2797
|
+
PHP.Parser.prototype.T_LINE = 376;
|
|
2798
|
+
PHP.Parser.prototype.T_FILE = 377;
|
|
2799
|
+
PHP.Parser.prototype.T_COMMENT = 378;
|
|
2800
|
+
PHP.Parser.prototype.T_DOC_COMMENT = 379;
|
|
2801
|
+
PHP.Parser.prototype.T_OPEN_TAG = 380;
|
|
2802
|
+
PHP.Parser.prototype.T_OPEN_TAG_WITH_ECHO = 381;
|
|
2803
|
+
PHP.Parser.prototype.T_CLOSE_TAG = 382;
|
|
2804
|
+
PHP.Parser.prototype.T_WHITESPACE = 383;
|
|
2805
|
+
PHP.Parser.prototype.T_START_HEREDOC = 384;
|
|
2806
|
+
PHP.Parser.prototype.T_END_HEREDOC = 385;
|
|
2807
|
+
PHP.Parser.prototype.T_DOLLAR_OPEN_CURLY_BRACES = 386;
|
|
2808
|
+
PHP.Parser.prototype.T_CURLY_OPEN = 387;
|
|
2809
|
+
PHP.Parser.prototype.T_PAAMAYIM_NEKUDOTAYIM = 388;
|
|
2810
|
+
PHP.Parser.prototype.T_NAMESPACE = 389;
|
|
2811
|
+
PHP.Parser.prototype.T_NS_C = 390;
|
|
2812
|
+
PHP.Parser.prototype.T_DIR = 391;
|
|
2813
|
+
PHP.Parser.prototype.T_NS_SEPARATOR = 392;
|
|
2814
|
+
PHP.Parser.prototype.T_ELLIPSIS = 393;
|
|
2815
|
+
PHP.Parser.prototype.terminals = [
|
|
2816
|
+
"EOF",
|
|
2817
|
+
"error",
|
|
2818
|
+
"T_INCLUDE",
|
|
2819
|
+
"T_INCLUDE_ONCE",
|
|
2820
|
+
"T_EVAL",
|
|
2821
|
+
"T_REQUIRE",
|
|
2822
|
+
"T_REQUIRE_ONCE",
|
|
2823
|
+
"','",
|
|
2824
|
+
"T_LOGICAL_OR",
|
|
2825
|
+
"T_LOGICAL_XOR",
|
|
2826
|
+
"T_LOGICAL_AND",
|
|
2827
|
+
"T_PRINT",
|
|
2828
|
+
"T_YIELD",
|
|
2829
|
+
"T_DOUBLE_ARROW",
|
|
2830
|
+
"T_YIELD_FROM",
|
|
2831
|
+
"'='",
|
|
2832
|
+
"T_PLUS_EQUAL",
|
|
2833
|
+
"T_MINUS_EQUAL",
|
|
2834
|
+
"T_MUL_EQUAL",
|
|
2835
|
+
"T_DIV_EQUAL",
|
|
2836
|
+
"T_CONCAT_EQUAL",
|
|
2837
|
+
"T_MOD_EQUAL",
|
|
2838
|
+
"T_AND_EQUAL",
|
|
2839
|
+
"T_OR_EQUAL",
|
|
2840
|
+
"T_XOR_EQUAL",
|
|
2841
|
+
"T_SL_EQUAL",
|
|
2842
|
+
"T_SR_EQUAL",
|
|
2843
|
+
"T_POW_EQUAL",
|
|
2844
|
+
"T_COALESCE_EQUAL",
|
|
2845
|
+
"'?'",
|
|
2846
|
+
"':'",
|
|
2847
|
+
"T_COALESCE",
|
|
2848
|
+
"T_BOOLEAN_OR",
|
|
2849
|
+
"T_BOOLEAN_AND",
|
|
2850
|
+
"'|'",
|
|
2851
|
+
"'^'",
|
|
2852
|
+
"'&'",
|
|
2853
|
+
"T_IS_EQUAL",
|
|
2854
|
+
"T_IS_NOT_EQUAL",
|
|
2855
|
+
"T_IS_IDENTICAL",
|
|
2856
|
+
"T_IS_NOT_IDENTICAL",
|
|
2857
|
+
"T_SPACESHIP",
|
|
2858
|
+
"'<'",
|
|
2859
|
+
"T_IS_SMALLER_OR_EQUAL",
|
|
2860
|
+
"'>'",
|
|
2861
|
+
"T_IS_GREATER_OR_EQUAL",
|
|
2862
|
+
"T_SL",
|
|
2863
|
+
"T_SR",
|
|
2864
|
+
"'+'",
|
|
2865
|
+
"'-'",
|
|
2866
|
+
"'.'",
|
|
2867
|
+
"'*'",
|
|
2868
|
+
"'/'",
|
|
2869
|
+
"'%'",
|
|
2870
|
+
"'!'",
|
|
2871
|
+
"T_INSTANCEOF",
|
|
2872
|
+
"'~'",
|
|
2873
|
+
"T_INC",
|
|
2874
|
+
"T_DEC",
|
|
2875
|
+
"T_INT_CAST",
|
|
2876
|
+
"T_DOUBLE_CAST",
|
|
2877
|
+
"T_STRING_CAST",
|
|
2878
|
+
"T_ARRAY_CAST",
|
|
2879
|
+
"T_OBJECT_CAST",
|
|
2880
|
+
"T_BOOL_CAST",
|
|
2881
|
+
"T_UNSET_CAST",
|
|
2882
|
+
"'@'",
|
|
2883
|
+
"T_POW",
|
|
2884
|
+
"'['",
|
|
2885
|
+
"T_NEW",
|
|
2886
|
+
"T_CLONE",
|
|
2887
|
+
"T_EXIT",
|
|
2888
|
+
"T_IF",
|
|
2889
|
+
"T_ELSEIF",
|
|
2890
|
+
"T_ELSE",
|
|
2891
|
+
"T_ENDIF",
|
|
2892
|
+
"T_LNUMBER",
|
|
2893
|
+
"T_DNUMBER",
|
|
2894
|
+
"T_STRING",
|
|
2895
|
+
"T_STRING_VARNAME",
|
|
2896
|
+
"T_VARIABLE",
|
|
2897
|
+
"T_NUM_STRING",
|
|
2898
|
+
"T_INLINE_HTML",
|
|
2899
|
+
"T_ENCAPSED_AND_WHITESPACE",
|
|
2900
|
+
"T_CONSTANT_ENCAPSED_STRING",
|
|
2901
|
+
"T_ECHO",
|
|
2902
|
+
"T_DO",
|
|
2903
|
+
"T_WHILE",
|
|
2904
|
+
"T_ENDWHILE",
|
|
2905
|
+
"T_FOR",
|
|
2906
|
+
"T_ENDFOR",
|
|
2907
|
+
"T_FOREACH",
|
|
2908
|
+
"T_ENDFOREACH",
|
|
2909
|
+
"T_DECLARE",
|
|
2910
|
+
"T_ENDDECLARE",
|
|
2911
|
+
"T_AS",
|
|
2912
|
+
"T_SWITCH",
|
|
2913
|
+
"T_ENDSWITCH",
|
|
2914
|
+
"T_CASE",
|
|
2915
|
+
"T_DEFAULT",
|
|
2916
|
+
"T_BREAK",
|
|
2917
|
+
"T_CONTINUE",
|
|
2918
|
+
"T_GOTO",
|
|
2919
|
+
"T_FUNCTION",
|
|
2920
|
+
"T_FN",
|
|
2921
|
+
"T_CONST",
|
|
2922
|
+
"T_RETURN",
|
|
2923
|
+
"T_TRY",
|
|
2924
|
+
"T_CATCH",
|
|
2925
|
+
"T_FINALLY",
|
|
2926
|
+
"T_THROW",
|
|
2927
|
+
"T_USE",
|
|
2928
|
+
"T_INSTEADOF",
|
|
2929
|
+
"T_GLOBAL",
|
|
2930
|
+
"T_STATIC",
|
|
2931
|
+
"T_ABSTRACT",
|
|
2932
|
+
"T_FINAL",
|
|
2933
|
+
"T_PRIVATE",
|
|
2934
|
+
"T_PROTECTED",
|
|
2935
|
+
"T_PUBLIC",
|
|
2936
|
+
"T_VAR",
|
|
2937
|
+
"T_UNSET",
|
|
2938
|
+
"T_ISSET",
|
|
2939
|
+
"T_EMPTY",
|
|
2940
|
+
"T_HALT_COMPILER",
|
|
2941
|
+
"T_CLASS",
|
|
2942
|
+
"T_TRAIT",
|
|
2943
|
+
"T_INTERFACE",
|
|
2944
|
+
"T_EXTENDS",
|
|
2945
|
+
"T_IMPLEMENTS",
|
|
2946
|
+
"T_OBJECT_OPERATOR",
|
|
2947
|
+
"T_LIST",
|
|
2948
|
+
"T_ARRAY",
|
|
2949
|
+
"T_CALLABLE",
|
|
2950
|
+
"T_CLASS_C",
|
|
2951
|
+
"T_TRAIT_C",
|
|
2952
|
+
"T_METHOD_C",
|
|
2953
|
+
"T_FUNC_C",
|
|
2954
|
+
"T_LINE",
|
|
2955
|
+
"T_FILE",
|
|
2956
|
+
"T_START_HEREDOC",
|
|
2957
|
+
"T_END_HEREDOC",
|
|
2958
|
+
"T_DOLLAR_OPEN_CURLY_BRACES",
|
|
2959
|
+
"T_CURLY_OPEN",
|
|
2960
|
+
"T_PAAMAYIM_NEKUDOTAYIM",
|
|
2961
|
+
"T_NAMESPACE",
|
|
2962
|
+
"T_NS_C",
|
|
2963
|
+
"T_DIR",
|
|
2964
|
+
"T_NS_SEPARATOR",
|
|
2965
|
+
"T_ELLIPSIS",
|
|
2966
|
+
"';'",
|
|
2967
|
+
"'{'",
|
|
2968
|
+
"'}'",
|
|
2969
|
+
"'('",
|
|
2970
|
+
"')'",
|
|
2971
|
+
"'`'",
|
|
2972
|
+
"']'",
|
|
2973
|
+
"'\"'",
|
|
2974
|
+
"'$'"
|
|
2975
|
+
, "???"
|
|
2976
|
+
];
|
|
2977
|
+
PHP.Parser.prototype.translate = [
|
|
2978
|
+
0, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2979
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2980
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2981
|
+
159, 159, 159, 54, 157, 159, 158, 53, 36, 159,
|
|
2982
|
+
153, 154, 51, 48, 7, 49, 50, 52, 159, 159,
|
|
2983
|
+
159, 159, 159, 159, 159, 159, 159, 159, 30, 150,
|
|
2984
|
+
42, 15, 44, 29, 66, 159, 159, 159, 159, 159,
|
|
2985
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2986
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2987
|
+
159, 68, 159, 156, 35, 159, 155, 159, 159, 159,
|
|
2988
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2989
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2990
|
+
159, 159, 159, 151, 34, 152, 56, 159, 159, 159,
|
|
2991
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2992
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2993
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2994
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2995
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2996
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2997
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2998
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
2999
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
3000
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
3001
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
3002
|
+
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
|
|
3003
|
+
159, 159, 159, 159, 159, 159, 1, 2, 3, 4,
|
|
3004
|
+
5, 6, 8, 9, 10, 11, 12, 13, 14, 16,
|
|
3005
|
+
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
|
3006
|
+
27, 28, 31, 32, 33, 37, 38, 39, 40, 41,
|
|
3007
|
+
43, 45, 46, 47, 55, 57, 58, 59, 60, 61,
|
|
3008
|
+
62, 63, 64, 65, 67, 69, 70, 71, 72, 73,
|
|
3009
|
+
74, 75, 76, 77, 78, 79, 80, 81, 82, 159,
|
|
3010
|
+
159, 83, 84, 85, 86, 87, 88, 89, 90, 91,
|
|
3011
|
+
92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
|
|
3012
|
+
102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
|
|
3013
|
+
112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
|
|
3014
|
+
122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
|
|
3015
|
+
132, 133, 134, 135, 136, 137, 138, 139, 159, 159,
|
|
3016
|
+
159, 159, 159, 159, 140, 141, 142, 143, 144, 145,
|
|
3017
|
+
146, 147, 148, 149
|
|
3018
|
+
];
|
|
3019
|
+
|
|
3020
|
+
PHP.Parser.prototype.yyaction = [
|
|
3021
|
+
607, 608, 609, 610, 611, 685, 612, 613, 614, 650,
|
|
3022
|
+
651, 0, 32, 103, 104, 105, 106, 107, 108, 109,
|
|
3023
|
+
110, 111, 112, 113, 114, 115,-32767,-32767,-32767,-32767,
|
|
3024
|
+
94, 95, 96, 97, 98,-32766,-32766,-32766, 687, 491,
|
|
3025
|
+
-497, 904, 905, 906, 903, 902, 901, 904, 905, 906,
|
|
3026
|
+
903, 902, 901, 615, 938, 940,-32766, 9,-32766,-32766,
|
|
3027
|
+
-32766,-32766,-32766,-32766,-32766,-32766,-32766, 616, 617, 618,
|
|
3028
|
+
619, 620, 621, 622, 333, 1104, 683,-32766,-32766,-32766,
|
|
3029
|
+
846, 1103, 119, 623, 624, 625, 626, 627, 628, 629,
|
|
3030
|
+
630, 631, 632, 633, 653, 654, 655, 656, 657, 645,
|
|
3031
|
+
646, 647, 675, 648, 649, 634, 635, 636, 637, 638,
|
|
3032
|
+
639, 640, 677, 678, 679, 680, 681, 682, 641, 642,
|
|
3033
|
+
643, 644, 674, 665, 663, 664, 660, 661, 402, 652,
|
|
3034
|
+
658, 659, 666, 667, 669, 668, 670, 671, 45, 46,
|
|
3035
|
+
421, 47, 48, 662, 673, 672, 27, 49, 50, 233,
|
|
3036
|
+
51,-32766,-32766,-32766, 96, 97, 98, 24,-32766,-32766,
|
|
3037
|
+
-32766, -458, 261, 121, 1023,-32766,-32766,-32766, 1091, 1073,
|
|
3038
|
+
-32766,-32766,-32766, 1039,-32766,-32766,-32766,-32766,-32766,-32766,
|
|
3039
|
+
-496,-32766,-32766,-32766, 52, 53,-32766, -497,-32766,-32766,
|
|
3040
|
+
54, 687, 55, 231, 232, 56, 57, 58, 59, 60,
|
|
3041
|
+
61, 62, 63, 1016, 24, 242, 64, 369,-32766,-32766,
|
|
3042
|
+
-32766, 226, 1040, 1041, 423, 1076, 1073, -493, 880, 508,
|
|
3043
|
+
1039, 436, 1023, -458, 768, 1073, 239, 333, -500,-32766,
|
|
3044
|
+
-500,-32766,-32766,-32766,-32766, 856, 253, -458, 276, 378,
|
|
3045
|
+
372, 786, 68, 1073, -458, 685, -461, 278, 1126, 403,
|
|
3046
|
+
289, 1127, 288, 99, 100, 101, 303, 252, 433, 434,
|
|
3047
|
+
822,-32766, 69, 261, 237, 850, 851, 435, 436, 102,
|
|
3048
|
+
1045, 1046, 1047, 1048, 1042, 1043, 256, 1016, -456, -456,
|
|
3049
|
+
306, 444, 1049, 1044, 375, 133, 561, -239, 363, 66,
|
|
3050
|
+
237, 268, 692, 273, 278, 422, -137, -137, -137, -4,
|
|
3051
|
+
768, 1073, 310, 278, 1035, 757, 687, 362, 37, 20,
|
|
3052
|
+
424, -137, 425, -137, 426, -137, 427, -137, 127, 428,
|
|
3053
|
+
-295, 278, -295, 38, 39, 370, 371, -496, 271, 40,
|
|
3054
|
+
429, 277, 687, 65, 261, 1016, 302, 896, 430, 431,
|
|
3055
|
+
-456, -456, 333, -494, 432, 44, 42, 743, 791, 373,
|
|
3056
|
+
374, -457, -234, 562, -456, -456, 375,-32766,-32766,-32766,
|
|
3057
|
+
882, -456, -456, 124, -493, 75, 850, 851, 333, -273,
|
|
3058
|
+
-260, 422, 768, 770, 576, -137, 261, 125,-32766, 278,
|
|
3059
|
+
823, 757, 857, 1073, 37, 20, 424, 240, 425, -178,
|
|
3060
|
+
426, 589, 427, 393, 503, 428, 687, 235, 241, 38,
|
|
3061
|
+
39, 370, 371, 125, 354, 40, 429, 260, 259, 65,
|
|
3062
|
+
267, 687, 302, -457, 430, 431, -296, -177, -296, 24,
|
|
3063
|
+
432, 305, 365, 700, 791, 373, 374, -457, 120, 118,
|
|
3064
|
+
24, 1073, 30, 366, -457, 1039, -460, 850, 851, 687,
|
|
3065
|
+
367, 691, 1073, 422, 291, 768, 1039, 333, -83, 770,
|
|
3066
|
+
576, -4, 467, 757, 126, 368, 37, 20, 424, -92,
|
|
3067
|
+
425, 278, 426, 444, 427, 1016, 375, 428, -219, -219,
|
|
3068
|
+
-219, 38, 39, 370, 371, 333, 1016, 40, 429, 850,
|
|
3069
|
+
851, 65, 435, 436, 302, 236, 430, 431, 225, 708,
|
|
3070
|
+
-494, 709, 432, 435, 436, 743, 791, 373, 374, 690,
|
|
3071
|
+
387, 136, 1117, 578, 68, 413, 238, 8, 33, 278,
|
|
3072
|
+
1053, 227, 708, 687, 709, 68, 422, -260, 535, 21,
|
|
3073
|
+
278, 770, 576, -219, 550, 551, 757, 687, 116, 37,
|
|
3074
|
+
20, 424, 117, 425, 358, 426, -178, 427, 132, 328,
|
|
3075
|
+
428, -218, -218, -218, 38, 39, 370, 371, 687, 333,
|
|
3076
|
+
40, 429, 122, 768, 65, 383, 384, 302, 123, 430,
|
|
3077
|
+
431, 29, 234, 333, -177, 432, 528, 529, 743, 791,
|
|
3078
|
+
373, 374, 129, 850, 851, 135, 76, 77, 78, 1092,
|
|
3079
|
+
881, 599, 582, 254, 333, 137, 138, 782, 590, 593,
|
|
3080
|
+
293, 767, 131, 252, 770, 576, -218, 31, 102, 79,
|
|
3081
|
+
80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
|
|
3082
|
+
90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
|
|
3083
|
+
100, 101, 43, 252, 422, 558, 768, 687, 690,-32766,
|
|
3084
|
+
471, 130, 476, 685, 757, 102, 553, 37, 20, 424,
|
|
3085
|
+
526, 425, 688, 426, 272, 427, 910, 1016, 428, 792,
|
|
3086
|
+
1128, 793, 38, 39, 370, 583, 269, 570, 40, 429,
|
|
3087
|
+
536, 1052, 65, 275, 1055, 302, -415, 541, 270, -81,
|
|
3088
|
+
10, 391, 768, 432, 542, 554, 784, 594, 5, 0,
|
|
3089
|
+
12, 577, 0, 0, 304, 0, 0, 0, 0, 336,
|
|
3090
|
+
342, 0, 0, 0, 0, 0, 0, 422, 0, 0,
|
|
3091
|
+
0, 584, 770, 576, 0, 0, 0, 757, 0, 0,
|
|
3092
|
+
37, 20, 424, 343, 425, 0, 426, 0, 427, 768,
|
|
3093
|
+
0, 428, 0, 0, 0, 38, 39, 370, 347, 387,
|
|
3094
|
+
473, 40, 429, 359, 360, 65, 744, 35, 302, 36,
|
|
3095
|
+
597, 598, 748, 422, 825, 809, 432, 816, 587, 876,
|
|
3096
|
+
877, 806, 817, 757, 746, 804, 37, 20, 424, 885,
|
|
3097
|
+
425, 888, 426, 889, 427, 768, 886, 428, 887, 893,
|
|
3098
|
+
-485, 38, 39, 370, 579, 770, 576, 40, 429, 581,
|
|
3099
|
+
585, 65, 586, 588, 302, 592, 286, 287, 352, 353,
|
|
3100
|
+
422, 580, 432, 1123, 591, 1125, 703, 790, 702, 712,
|
|
3101
|
+
757, 789, 713, 37, 20, 424, 710, 425, 1124, 426,
|
|
3102
|
+
788, 427, 768, 1004, 428, 711, 777, 785, 38, 39,
|
|
3103
|
+
370, 808, 576, -483, 40, 429, 775, 814, 65, 815,
|
|
3104
|
+
1122, 302, 1074, 1067, 1081, 1086, 422, 1089, -237, 432,
|
|
3105
|
+
-461, -460, -459, 23, 25, 28, 757, 34, 41, 37,
|
|
3106
|
+
20, 424, 67, 425, 70, 426, 71, 427, 72, 73,
|
|
3107
|
+
428, 74, 128, 134, 38, 39, 370, 139, 770, 576,
|
|
3108
|
+
40, 429, 229, 230, 65, 246, 247, 302, 248, 249,
|
|
3109
|
+
250, 251, 290, 422, 355, 432, 357, -427, -235, -234,
|
|
3110
|
+
14, 15, 16, 757, 17, 19, 37, 20, 424, 325,
|
|
3111
|
+
425, 404, 426, 406, 427, 409, 411, 428, 412, 419,
|
|
3112
|
+
567, 38, 39, 370, 770, 576, 1027, 40, 429, 977,
|
|
3113
|
+
1037, 65, 858, 1008, 302,-32766,-32766,-32766, -92, 13,
|
|
3114
|
+
18, 22, 432, 263, 324, 501, 522, 569, 981, 978,
|
|
3115
|
+
0, 994, 0, 1036, 1065, 1066,-32766, 1080,-32766,-32766,
|
|
3116
|
+
-32766,-32766,-32766,-32766,-32767,-32767,-32767,-32767,-32767, 1120,
|
|
3117
|
+
532, 770, 576, 1054
|
|
3118
|
+
];
|
|
3119
|
+
|
|
3120
|
+
PHP.Parser.prototype.yycheck = [
|
|
3121
|
+
2, 3, 4, 5, 6, 78, 8, 9, 10, 11,
|
|
3122
|
+
12, 0, 15, 16, 17, 18, 19, 20, 21, 22,
|
|
3123
|
+
23, 24, 25, 26, 27, 28, 42, 43, 44, 45,
|
|
3124
|
+
46, 47, 48, 49, 50, 8, 9, 10, 78, 79,
|
|
3125
|
+
7, 114, 115, 116, 117, 118, 119, 114, 115, 116,
|
|
3126
|
+
117, 118, 119, 55, 57, 58, 29, 7, 31, 32,
|
|
3127
|
+
33, 34, 35, 36, 8, 9, 10, 69, 70, 71,
|
|
3128
|
+
72, 73, 74, 75, 114, 1, 78, 8, 9, 10,
|
|
3129
|
+
1, 7, 13, 85, 86, 87, 88, 89, 90, 91,
|
|
3130
|
+
92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
|
|
3131
|
+
102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
|
|
3132
|
+
112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
|
|
3133
|
+
122, 123, 124, 125, 126, 127, 128, 129, 30, 131,
|
|
3134
|
+
132, 133, 134, 135, 136, 137, 138, 139, 2, 3,
|
|
3135
|
+
4, 5, 6, 145, 146, 147, 7, 11, 12, 36,
|
|
3136
|
+
14, 8, 9, 10, 48, 49, 50, 68, 8, 9,
|
|
3137
|
+
10, 68, 29, 7, 1, 8, 9, 10, 1, 80,
|
|
3138
|
+
8, 9, 29, 84, 31, 32, 33, 34, 35, 29,
|
|
3139
|
+
7, 31, 32, 33, 48, 49, 29, 154, 31, 32,
|
|
3140
|
+
54, 78, 56, 57, 58, 59, 60, 61, 62, 63,
|
|
3141
|
+
64, 65, 66, 114, 68, 69, 70, 71, 8, 9,
|
|
3142
|
+
10, 13, 76, 77, 78, 1, 80, 7, 1, 49,
|
|
3143
|
+
84, 132, 1, 130, 1, 80, 7, 114, 154, 29,
|
|
3144
|
+
156, 31, 32, 33, 34, 1, 7, 144, 7, 103,
|
|
3145
|
+
104, 1, 153, 80, 151, 78, 153, 158, 78, 151,
|
|
3146
|
+
114, 81, 7, 51, 52, 53, 7, 55, 122, 123,
|
|
3147
|
+
30, 8, 149, 29, 36, 132, 133, 131, 132, 67,
|
|
3148
|
+
134, 135, 136, 137, 138, 139, 140, 114, 68, 68,
|
|
3149
|
+
7, 145, 146, 147, 148, 13, 78, 154, 125, 153,
|
|
3150
|
+
36, 155, 1, 157, 158, 72, 73, 74, 75, 0,
|
|
3151
|
+
1, 80, 7, 158, 1, 82, 78, 7, 85, 86,
|
|
3152
|
+
87, 88, 89, 90, 91, 92, 93, 94, 151, 96,
|
|
3153
|
+
103, 158, 105, 100, 101, 102, 103, 154, 111, 106,
|
|
3154
|
+
107, 68, 78, 110, 29, 114, 113, 120, 115, 116,
|
|
3155
|
+
130, 130, 114, 7, 121, 68, 68, 124, 125, 126,
|
|
3156
|
+
127, 68, 154, 145, 144, 144, 148, 8, 9, 10,
|
|
3157
|
+
152, 151, 151, 30, 154, 151, 132, 133, 114, 152,
|
|
3158
|
+
7, 72, 1, 150, 151, 152, 29, 149, 29, 158,
|
|
3159
|
+
150, 82, 154, 80, 85, 86, 87, 36, 89, 7,
|
|
3160
|
+
91, 151, 93, 130, 1, 96, 78, 36, 36, 100,
|
|
3161
|
+
101, 102, 103, 149, 105, 106, 107, 130, 130, 110,
|
|
3162
|
+
111, 78, 113, 130, 115, 116, 103, 7, 105, 68,
|
|
3163
|
+
121, 144, 7, 124, 125, 126, 127, 144, 151, 151,
|
|
3164
|
+
68, 80, 7, 7, 151, 84, 153, 132, 133, 78,
|
|
3165
|
+
7, 150, 80, 72, 145, 1, 84, 114, 30, 150,
|
|
3166
|
+
151, 152, 83, 82, 151, 7, 85, 86, 87, 154,
|
|
3167
|
+
89, 158, 91, 145, 93, 114, 148, 96, 97, 98,
|
|
3168
|
+
99, 100, 101, 102, 103, 114, 114, 106, 107, 132,
|
|
3169
|
+
133, 110, 131, 132, 113, 36, 115, 116, 95, 103,
|
|
3170
|
+
154, 105, 121, 131, 132, 124, 125, 126, 127, 80,
|
|
3171
|
+
148, 13, 83, 151, 153, 103, 36, 105, 13, 158,
|
|
3172
|
+
141, 13, 103, 78, 105, 153, 72, 154, 73, 74,
|
|
3173
|
+
158, 150, 151, 152, 73, 74, 82, 78, 15, 85,
|
|
3174
|
+
86, 87, 15, 89, 148, 91, 154, 93, 98, 99,
|
|
3175
|
+
96, 97, 98, 99, 100, 101, 102, 103, 78, 114,
|
|
3176
|
+
106, 107, 15, 1, 110, 103, 104, 113, 15, 115,
|
|
3177
|
+
116, 142, 143, 114, 154, 121, 108, 109, 124, 125,
|
|
3178
|
+
126, 127, 15, 132, 133, 15, 8, 9, 10, 154,
|
|
3179
|
+
150, 151, 30, 30, 114, 15, 15, 36, 30, 30,
|
|
3180
|
+
34, 30, 30, 55, 150, 151, 152, 29, 67, 31,
|
|
3181
|
+
32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
|
|
3182
|
+
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
|
|
3183
|
+
52, 53, 68, 55, 72, 75, 1, 78, 80, 83,
|
|
3184
|
+
83, 68, 87, 78, 82, 67, 92, 85, 86, 87,
|
|
3185
|
+
111, 89, 78, 91, 112, 93, 80, 114, 96, 125,
|
|
3186
|
+
81, 125, 100, 101, 102, 30, 128, 90, 106, 107,
|
|
3187
|
+
88, 141, 110, 128, 141, 113, 144, 94, 129, 95,
|
|
3188
|
+
95, 95, 1, 121, 97, 97, 149, 152, 144, -1,
|
|
3189
|
+
144, 151, -1, -1, 144, -1, -1, -1, -1, 148,
|
|
3190
|
+
148, -1, -1, -1, -1, -1, -1, 72, -1, -1,
|
|
3191
|
+
-1, 30, 150, 151, -1, -1, -1, 82, -1, -1,
|
|
3192
|
+
85, 86, 87, 148, 89, -1, 91, -1, 93, 1,
|
|
3193
|
+
-1, 96, -1, -1, -1, 100, 101, 102, 148, 148,
|
|
3194
|
+
148, 106, 107, 148, 148, 110, 152, 150, 113, 150,
|
|
3195
|
+
150, 150, 150, 72, 150, 150, 121, 150, 30, 150,
|
|
3196
|
+
150, 150, 150, 82, 150, 150, 85, 86, 87, 150,
|
|
3197
|
+
89, 150, 91, 150, 93, 1, 150, 96, 150, 150,
|
|
3198
|
+
153, 100, 101, 102, 151, 150, 151, 106, 107, 151,
|
|
3199
|
+
151, 110, 151, 151, 113, 151, 151, 151, 151, 151,
|
|
3200
|
+
72, 151, 121, 152, 30, 152, 152, 152, 152, 152,
|
|
3201
|
+
82, 152, 152, 85, 86, 87, 152, 89, 152, 91,
|
|
3202
|
+
152, 93, 1, 152, 96, 152, 152, 152, 100, 101,
|
|
3203
|
+
102, 150, 151, 153, 106, 107, 152, 152, 110, 152,
|
|
3204
|
+
152, 113, 152, 152, 152, 152, 72, 152, 154, 121,
|
|
3205
|
+
153, 153, 153, 153, 153, 153, 82, 153, 153, 85,
|
|
3206
|
+
86, 87, 153, 89, 153, 91, 153, 93, 153, 153,
|
|
3207
|
+
96, 153, 153, 153, 100, 101, 102, 153, 150, 151,
|
|
3208
|
+
106, 107, 153, 153, 110, 153, 153, 113, 153, 153,
|
|
3209
|
+
153, 153, 153, 72, 153, 121, 153, 155, 154, 154,
|
|
3210
|
+
154, 154, 154, 82, 154, 154, 85, 86, 87, 154,
|
|
3211
|
+
89, 154, 91, 154, 93, 154, 154, 96, 154, 154,
|
|
3212
|
+
154, 100, 101, 102, 150, 151, 154, 106, 107, 154,
|
|
3213
|
+
154, 110, 154, 154, 113, 8, 9, 10, 154, 154,
|
|
3214
|
+
154, 154, 121, 154, 154, 154, 154, 154, 154, 154,
|
|
3215
|
+
-1, 155, -1, 156, 156, 156, 29, 156, 31, 32,
|
|
3216
|
+
33, 34, 35, 36, 37, 38, 39, 40, 41, 156,
|
|
3217
|
+
156, 150, 151, 157
|
|
3218
|
+
];
|
|
3219
|
+
|
|
3220
|
+
PHP.Parser.prototype.yybase = [
|
|
3221
|
+
0, 223, 299, 371, 444, 303, 208, 618, -2, -2,
|
|
3222
|
+
-73, -2, -2, 625, 718, 718, 764, 718, 552, 671,
|
|
3223
|
+
811, 811, 811, 228, 113, 113, 113, 254, 361, -40,
|
|
3224
|
+
361, 333, 449, 470, 435, 435, 435, 435, 435, 435,
|
|
3225
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3226
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3227
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3228
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3229
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3230
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3231
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3232
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3233
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3234
|
+
435, 435, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
3235
|
+
291, 291, 230, 393, 495, 779, 784, 781, 776, 775,
|
|
3236
|
+
780, 785, 498, 678, 680, 562, 681, 682, 683, 685,
|
|
3237
|
+
782, 804, 777, 783, 568, 568, 568, 568, 568, 568,
|
|
3238
|
+
568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
|
|
3239
|
+
568, 253, 69, 162, 56, 56, 56, 56, 56, 56,
|
|
3240
|
+
56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
|
|
3241
|
+
56, 56, 56, 56, 56, 56, 349, 349, 349, 157,
|
|
3242
|
+
210, 150, 200, 211, 143, 27, 917, 917, 917, 917,
|
|
3243
|
+
917, -16, -16, -16, -16, 351, 351, 362, 217, 89,
|
|
3244
|
+
89, 89, 89, 89, 89, 89, 89, 89, 89, 89,
|
|
3245
|
+
89, 89, 163, 313, 106, 106, 133, 133, 133, 133,
|
|
3246
|
+
133, 133, 221, 305, 234, 347, 369, 523, 806, 167,
|
|
3247
|
+
167, 441, 93, 283, 202, 202, 202, 386, 547, 533,
|
|
3248
|
+
533, 533, 533, 419, 419, 533, 533, 170, 214, 74,
|
|
3249
|
+
211, 211, 277, 211, 211, 211, 409, 409, 409, 452,
|
|
3250
|
+
318, 352, 546, 318, 619, 640, 577, 675, 578, 677,
|
|
3251
|
+
278, 585, 145, 586, 145, 145, 145, 458, 445, 451,
|
|
3252
|
+
774, 291, 522, 291, 291, 291, 291, 722, 291, 291,
|
|
3253
|
+
291, 291, 291, 291, 98, 291, 79, 430, 230, 240,
|
|
3254
|
+
240, 556, 240, 452, 538, 263, 635, 410, 425, 538,
|
|
3255
|
+
538, 538, 636, 637, 336, 363, 198, 638, 382, 402,
|
|
3256
|
+
173, 33, 549, 549, 555, 555, 566, 551, 549, 549,
|
|
3257
|
+
549, 549, 549, 690, 690, 555, 548, 555, 566, 695,
|
|
3258
|
+
555, 551, 551, 555, 555, 549, 555, 690, 551, 156,
|
|
3259
|
+
415, 249, 273, 551, 551, 426, 528, 549, 535, 535,
|
|
3260
|
+
433, 555, 219, 555, 139, 539, 690, 690, 539, 229,
|
|
3261
|
+
551, 231, 590, 591, 529, 527, 553, 245, 553, 553,
|
|
3262
|
+
300, 529, 553, 551, 553, 448, 50, 548, 295, 553,
|
|
3263
|
+
11, 699, 701, 418, 703, 694, 705, 731, 706, 530,
|
|
3264
|
+
524, 526, 719, 720, 708, 692, 691, 561, 582, 513,
|
|
3265
|
+
517, 534, 554, 689, 581, 531, 531, 531, 554, 687,
|
|
3266
|
+
531, 531, 531, 531, 531, 531, 531, 531, 787, 540,
|
|
3267
|
+
545, 723, 537, 541, 576, 543, 623, 520, 582, 582,
|
|
3268
|
+
584, 732, 786, 564, 722, 762, 709, 587, 557, 741,
|
|
3269
|
+
725, 525, 542, 565, 726, 727, 745, 765, 628, 513,
|
|
3270
|
+
766, 641, 563, 643, 582, 644, 531, 670, 617, 788,
|
|
3271
|
+
789, 688, 791, 736, 747, 749, 580, 645, 569, 803,
|
|
3272
|
+
646, 768, 629, 631, 589, 737, 684, 751, 647, 752,
|
|
3273
|
+
754, 649, 592, 572, 734, 573, 733, 272, 729, 632,
|
|
3274
|
+
650, 654, 656, 658, 661, 710, 594, 738, 544, 740,
|
|
3275
|
+
735, 595, 597, 560, 663, 488, 599, 570, 571, 600,
|
|
3276
|
+
714, 558, 550, 601, 602, 769, 664, 728, 604, 665,
|
|
3277
|
+
756, 574, 581, 536, 532, 575, 567, 634, 755, 559,
|
|
3278
|
+
605, 609, 611, 613, 674, 616, 0, 0, 0, 0,
|
|
3279
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
3280
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
3281
|
+
0, 0, 0, 136, 136, 136, 136, -2, -2, -2,
|
|
3282
|
+
0, 0, -2, 0, 0, 136, 136, 136, 136, 136,
|
|
3283
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3284
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3285
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3286
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3287
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3288
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3289
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3290
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3291
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3292
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3293
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3294
|
+
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
3295
|
+
136, 136, 568, 568, 568, 568, 568, 568, 568, 568,
|
|
3296
|
+
568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
|
|
3297
|
+
568, 568, 568, 568, 568, 568, 0, 0, 0, 0,
|
|
3298
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
3299
|
+
0, 0, 0, 568, 568, 568, 568, 568, 568, 568,
|
|
3300
|
+
568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
|
|
3301
|
+
568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
|
|
3302
|
+
568, 568, -3, 568, 568, -3, 568, 568, 568, 568,
|
|
3303
|
+
568, 568, 568, 202, 202, 202, 202, 318, 318, 318,
|
|
3304
|
+
-67, 318, 318, 318, 318, 318, 318, 318, 318, 318,
|
|
3305
|
+
318, 318, 318, 318, 318, -67, 202, 202, 318, 318,
|
|
3306
|
+
318, 318, 318, 318, 318, 318, 318, 318, 419, 419,
|
|
3307
|
+
419, 145, 145, 318, 0, 0, 0, 0, 0, 549,
|
|
3308
|
+
419, 318, 318, 318, 318, 0, 0, 318, 318, 548,
|
|
3309
|
+
145, 0, 0, 0, 0, 0, 0, 0, 549, 549,
|
|
3310
|
+
549, 548, 0, 549, 419, 0, 240, 291, 440, 440,
|
|
3311
|
+
440, 440, 0, 549, 0, 549, 0, 0, 0, 0,
|
|
3312
|
+
0, 0, 551, 0, 690, 0, 0, 0, 0, 555,
|
|
3313
|
+
0, 0, 0, 0, 0, 0, 0, 0, 548, 0,
|
|
3314
|
+
0, 0, 0, 548, 0, 0, 531, 0, 564, 0,
|
|
3315
|
+
0, 531, 531, 531, 564, 564, 0, 0, 0, 564
|
|
3316
|
+
];
|
|
3317
|
+
|
|
3318
|
+
PHP.Parser.prototype.yydefault = [
|
|
3319
|
+
3,32767,32767,32767,32767,32767,32767,32767,32767, 92,
|
|
3320
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3321
|
+
32767,32767,32767,32767, 510, 510, 510, 94, 499,32767,
|
|
3322
|
+
499,32767,32767,32767, 314, 314, 314,32767, 454, 454,
|
|
3323
|
+
454, 454, 454, 454, 454,32767,32767,32767,32767,32767,
|
|
3324
|
+
394,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3325
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3326
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3327
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3328
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3329
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3330
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3331
|
+
32767, 92,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3332
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3333
|
+
32767,32767,32767,32767, 506,32767,32767,32767,32767,32767,
|
|
3334
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3335
|
+
32767,32767,32767,32767, 377, 378, 380, 381, 313, 455,
|
|
3336
|
+
509, 259, 505, 312, 130, 270, 261, 211, 243, 310,
|
|
3337
|
+
134, 342, 395, 344, 393, 397, 343, 319, 323, 324,
|
|
3338
|
+
325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
|
|
3339
|
+
335, 317, 318, 396, 398, 399, 374, 373, 372, 340,
|
|
3340
|
+
316, 341, 345, 316, 347, 346, 363, 364, 361, 362,
|
|
3341
|
+
365, 366, 367, 368, 369,32767,32767,32767,32767,32767,
|
|
3342
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767, 94,
|
|
3343
|
+
32767,32767,32767, 293, 354, 355, 250, 250, 250, 250,
|
|
3344
|
+
250, 250,32767, 250,32767, 250,32767,32767,32767,32767,
|
|
3345
|
+
32767,32767, 448, 371, 349, 350, 348,32767, 426,32767,
|
|
3346
|
+
32767,32767,32767,32767, 428,32767, 92,32767,32767,32767,
|
|
3347
|
+
337, 339, 420, 508, 320, 507,32767,32767, 94, 414,
|
|
3348
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3349
|
+
423,32767,32767, 92,32767,32767, 92, 174, 230, 232,
|
|
3350
|
+
179,32767, 431,32767,32767,32767,32767,32767,32767,32767,
|
|
3351
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3352
|
+
32767,32767,32767, 414, 359, 517,32767, 456,32767, 351,
|
|
3353
|
+
352, 353,32767,32767, 456, 456, 456,32767, 456,32767,
|
|
3354
|
+
456, 456,32767,32767,32767,32767,32767, 179,32767,32767,
|
|
3355
|
+
32767,32767, 94, 429, 429, 92, 92, 92, 92, 424,
|
|
3356
|
+
32767, 179, 179,32767,32767,32767,32767,32767, 179, 91,
|
|
3357
|
+
91, 91, 91, 179, 179, 91, 194,32767, 192, 192,
|
|
3358
|
+
91,32767, 93,32767, 93, 196,32767, 470, 196, 91,
|
|
3359
|
+
179, 91, 216, 216, 405, 181, 252, 93, 252, 252,
|
|
3360
|
+
93, 405, 252, 179, 252, 91, 91,32767, 91, 252,
|
|
3361
|
+
32767,32767,32767, 85,32767,32767,32767,32767,32767,32767,
|
|
3362
|
+
32767,32767,32767,32767,32767,32767,32767,32767, 416,32767,
|
|
3363
|
+
436,32767, 449, 468,32767, 357, 358, 360,32767, 458,
|
|
3364
|
+
382, 383, 384, 385, 386, 387, 388, 390,32767, 419,
|
|
3365
|
+
32767,32767,32767, 87, 121, 269,32767, 515, 87, 417,
|
|
3366
|
+
32767, 515,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3367
|
+
32767,32767, 87, 87,32767,32767,32767,32767,32767, 495,
|
|
3368
|
+
32767, 516,32767, 456, 418,32767, 356, 432, 475,32767,
|
|
3369
|
+
32767, 457,32767,32767,32767,32767, 87,32767,32767,32767,
|
|
3370
|
+
32767,32767,32767,32767,32767,32767, 436,32767,32767,32767,
|
|
3371
|
+
32767,32767,32767,32767, 456,32767,32767,32767,32767,32767,
|
|
3372
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3373
|
+
456,32767,32767, 242,32767,32767,32767, 309,32767,32767,
|
|
3374
|
+
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
|
3375
|
+
32767, 85, 60,32767, 289,32767,32767,32767,32767,32767,
|
|
3376
|
+
32767,32767,32767,32767,32767,32767, 136, 136, 3, 272,
|
|
3377
|
+
3, 272, 136, 136, 136, 272, 272, 136, 136, 136,
|
|
3378
|
+
136, 136, 136, 136, 169, 224, 227, 216, 216, 281,
|
|
3379
|
+
136, 136
|
|
3380
|
+
];
|
|
3381
|
+
|
|
3382
|
+
PHP.Parser.prototype.yygoto = [
|
|
3383
|
+
171, 144, 144, 144, 171, 152, 153, 152, 155, 187,
|
|
3384
|
+
172, 168, 168, 168, 168, 169, 169, 169, 169, 169,
|
|
3385
|
+
169, 169, 164, 165, 166, 167, 184, 182, 185, 445,
|
|
3386
|
+
446, 334, 447, 450, 451, 452, 453, 454, 455, 456,
|
|
3387
|
+
457, 924, 141, 145, 146, 147, 170, 148, 149, 143,
|
|
3388
|
+
150, 151, 154, 181, 183, 186, 206, 209, 211, 212,
|
|
3389
|
+
214, 215, 216, 217, 218, 219, 220, 221, 222, 223,
|
|
3390
|
+
224, 244, 245, 264, 265, 266, 339, 340, 341, 496,
|
|
3391
|
+
188, 189, 190, 191, 192, 193, 194, 195, 196, 197,
|
|
3392
|
+
198, 199, 200, 201, 202, 156, 203, 157, 173, 174,
|
|
3393
|
+
175, 207, 176, 158, 159, 160, 177, 161, 208, 142,
|
|
3394
|
+
204, 162, 178, 205, 179, 180, 163, 563, 210, 463,
|
|
3395
|
+
210, 516, 516, 1038, 572, 1038, 1038, 1038, 1038, 1038,
|
|
3396
|
+
1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 468, 468,
|
|
3397
|
+
468, 514, 537, 468, 297, 489, 521, 489, 498, 274,
|
|
3398
|
+
533, 534, 698, 483, 258, 468, 448, 448, 448, 725,
|
|
3399
|
+
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
|
|
3400
|
+
448, 448, 448, 449, 449, 449, 699, 449, 449, 449,
|
|
3401
|
+
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
|
|
3402
|
+
1114, 1114, 734, 725, 899, 725, 315, 319, 475, 499,
|
|
3403
|
+
500, 502, 1083, 1084, 468, 468, 760, 1114, 761, 900,
|
|
3404
|
+
482, 506, 468, 468, 468, 329, 330, 686, 481, 545,
|
|
3405
|
+
495, 332, 510, 596, 523, 525, 294, 469, 538, 556,
|
|
3406
|
+
559, 835, 566, 574, 831, 765, 729, 717, 864, 494,
|
|
3407
|
+
807, 868, 490, 860, 716, 716, 810, 697, 1013, 1105,
|
|
3408
|
+
726, 726, 726, 728, 715, 840, 1093, 800, 824, 805,
|
|
3409
|
+
805, 803, 805, 595, 313, 460, 833, 828, 459, 3,
|
|
3410
|
+
4, 907, 733, 539, 1009, 487, 317, 461, 459, 497,
|
|
3411
|
+
892, 575, 972, 474, 843, 557, 890, 1129, 484, 485,
|
|
3412
|
+
505, 517, 519, 520, 568, 801, 801, 801, 801, 465,
|
|
3413
|
+
855, 795, 802, 1002, 787, 405, 1003, 799, 327, 571,
|
|
3414
|
+
356, 1082, 530, 1014, 848, 346, 540, 350, 11, 337,
|
|
3415
|
+
337, 280, 281, 283, 493, 344, 284, 345, 285, 348,
|
|
3416
|
+
524, 351, 1015, 1069, 1113, 1113, 543, 301, 298, 299,
|
|
3417
|
+
721, 560, 838, 838, 1100, 295, 865, 718, 600, 323,
|
|
3418
|
+
544, 1113, 1010, 1017, 511, 1005, 869, 849, 849, 849,
|
|
3419
|
+
849, 849, 849, 1017, 849, 849, 849, 720, 730, 1116,
|
|
3420
|
+
714, 812, 849, 1088, 1088, 909, 465, 398, 513, 414,
|
|
3421
|
+
1017, 1017, 1017, 1017, 0, 1079, 1017, 1017, 0, 701,
|
|
3422
|
+
0, 0, 0, 0, 0, 1079, 0, 0, 0, 0,
|
|
3423
|
+
0, 773, 1090, 1090, 774, 706, 0, 756, 751, 752,
|
|
3424
|
+
766, 0, 707, 753, 704, 754, 755, 705, 0, 759,
|
|
3425
|
+
0, 1075, 0, 0, 0, 0, 0, 1012, 0, 0,
|
|
3426
|
+
0, 480, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
3427
|
+
0, 0, 0, 0, 0, 867, 0, 1077, 1077, 867,
|
|
3428
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
3429
|
+
0, 0, 0, 0, 0, 0, 0, 0, 462, 478,
|
|
3430
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 462,
|
|
3431
|
+
0, 478, 0, 0, 316, 0, 0, 466, 386, 0,
|
|
3432
|
+
388, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
3433
|
+
0, 0, 0, 0, 0, 724, 0, 1121
|
|
3434
|
+
];
|
|
3435
|
+
|
|
3436
|
+
PHP.Parser.prototype.yygcheck = [
|
|
3437
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3438
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3439
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3440
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3441
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3442
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3443
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3444
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3445
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3446
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3447
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3448
|
+
33, 33, 33, 33, 33, 33, 33, 63, 56, 10,
|
|
3449
|
+
56, 86, 86, 86, 8, 86, 86, 86, 86, 86,
|
|
3450
|
+
86, 86, 86, 86, 86, 86, 86, 86, 10, 10,
|
|
3451
|
+
10, 46, 46, 10, 80, 85, 73, 85, 97, 134,
|
|
3452
|
+
73, 73, 17, 10, 134, 10, 135, 135, 135, 26,
|
|
3453
|
+
135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
|
|
3454
|
+
135, 135, 135, 137, 137, 137, 18, 137, 137, 137,
|
|
3455
|
+
137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
|
|
3456
|
+
148, 148, 36, 26, 111, 26, 49, 49, 49, 49,
|
|
3457
|
+
49, 49, 141, 141, 10, 10, 55, 148, 55, 111,
|
|
3458
|
+
10, 10, 10, 10, 10, 69, 69, 5, 39, 69,
|
|
3459
|
+
2, 69, 2, 39, 39, 39, 69, 10, 39, 39,
|
|
3460
|
+
39, 39, 39, 39, 39, 13, 14, 14, 14, 10,
|
|
3461
|
+
40, 14, 136, 94, 26, 26, 14, 16, 92, 146,
|
|
3462
|
+
26, 26, 26, 26, 26, 14, 143, 14, 16, 16,
|
|
3463
|
+
16, 16, 16, 16, 52, 16, 16, 16, 75, 37,
|
|
3464
|
+
37, 14, 14, 54, 14, 53, 65, 65, 75, 7,
|
|
3465
|
+
7, 7, 118, 65, 88, 7, 7, 12, 65, 65,
|
|
3466
|
+
68, 68, 68, 68, 68, 75, 75, 75, 75, 12,
|
|
3467
|
+
90, 75, 75, 67, 67, 65, 67, 76, 76, 76,
|
|
3468
|
+
89, 139, 24, 92, 91, 56, 56, 56, 65, 56,
|
|
3469
|
+
56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
|
|
3470
|
+
56, 56, 92, 92, 147, 147, 12, 20, 80, 80,
|
|
3471
|
+
30, 12, 85, 85, 85, 11, 96, 28, 82, 19,
|
|
3472
|
+
23, 147, 127, 63, 15, 124, 99, 63, 63, 63,
|
|
3473
|
+
63, 63, 63, 63, 63, 63, 63, 15, 32, 147,
|
|
3474
|
+
15, 79, 63, 8, 8, 114, 12, 71, 72, 122,
|
|
3475
|
+
63, 63, 63, 63, -1, 97, 63, 63, -1, 13,
|
|
3476
|
+
-1, -1, -1, -1, -1, 97, -1, -1, -1, -1,
|
|
3477
|
+
-1, 63, 97, 97, 63, 13, -1, 13, 13, 13,
|
|
3478
|
+
13, -1, 13, 13, 13, 13, 13, 13, -1, 13,
|
|
3479
|
+
-1, 97, -1, -1, -1, -1, -1, 12, -1, -1,
|
|
3480
|
+
-1, 8, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
3481
|
+
-1, -1, -1, -1, -1, 97, -1, 97, 97, 97,
|
|
3482
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
3483
|
+
-1, -1, -1, -1, -1, -1, -1, -1, 8, 8,
|
|
3484
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, 8,
|
|
3485
|
+
-1, 8, -1, -1, 8, -1, -1, 8, 8, -1,
|
|
3486
|
+
8, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
3487
|
+
-1, -1, -1, -1, -1, 8, -1, 8
|
|
3488
|
+
];
|
|
3489
|
+
|
|
3490
|
+
PHP.Parser.prototype.yygbase = [
|
|
3491
|
+
0, 0, -358, 0, 0, 207, 0, 274, 114, 0,
|
|
3492
|
+
-148, 54, 10, 94, -144, -40, 245, 150, 174, 48,
|
|
3493
|
+
70, 0, 0, -3, 25, 0, -108, 0, 44, 0,
|
|
3494
|
+
52, 0, 3, -23, 0, 0, 183, -331, 0, -359,
|
|
3495
|
+
221, 0, 0, 0, 0, 0, 106, 0, 0, 157,
|
|
3496
|
+
0, 0, 227, 45, 47, 191, 90, 0, 0, 0,
|
|
3497
|
+
0, 0, 0, 111, 0, -95, 0, -26, 43, -193,
|
|
3498
|
+
0, -12, -20, -435, 0, 26, 37, 0, 0, 4,
|
|
3499
|
+
-259, 0, 20, 0, 0, 117, -104, 0, 31, 55,
|
|
3500
|
+
46, 53, -64, 0, 216, 0, 40, 143, 0, -10,
|
|
3501
|
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
3502
|
+
0, -34, 0, 0, 7, 0, 0, 0, 30, 0,
|
|
3503
|
+
0, 0, -32, 0, -9, 0, 0, -5, 0, 0,
|
|
3504
|
+
0, 0, 0, 0, -119, -69, 217, -52, 0, 51,
|
|
3505
|
+
0, -102, 0, 226, 0, 0, 223, 77, -67, 0,
|
|
3506
|
+
0
|
|
3507
|
+
];
|
|
3508
|
+
|
|
3509
|
+
PHP.Parser.prototype.yygdefault = [
|
|
3510
|
+
-32768, 420, 603, 2, 604, 676, 684, 548, 437, 573,
|
|
3511
|
+
438, 464, 335, 758, 913, 778, 740, 741, 742, 320,
|
|
3512
|
+
361, 311, 318, 531, 518, 410, 727, 381, 719, 407,
|
|
3513
|
+
722, 380, 731, 140, 549, 416, 735, 1, 737, 470,
|
|
3514
|
+
769, 308, 745, 309, 552, 747, 477, 749, 750, 314,
|
|
3515
|
+
321, 322, 917, 486, 515, 762, 213, 479, 763, 307,
|
|
3516
|
+
764, 772, 331, 312, 392, 417, 326, 894, 504, 527,
|
|
3517
|
+
376, 395, 512, 507, 488, 1024, 797, 401, 390, 811,
|
|
3518
|
+
296, 819, 601, 827, 830, 439, 440, 399, 842, 400,
|
|
3519
|
+
853, 847, 1032, 394, 859, 382, 866, 1064, 385, 870,
|
|
3520
|
+
228, 873, 255, 546, 349, 878, 879, 6, 884, 564,
|
|
3521
|
+
565, 7, 243, 415, 908, 547, 379, 923, 364, 991,
|
|
3522
|
+
993, 472, 408, 1006, 389, 555, 418, 1011, 1068, 377,
|
|
3523
|
+
441, 396, 282, 300, 257, 442, 458, 262, 443, 397,
|
|
3524
|
+
1071, 1078, 338, 1094, 279, 26, 1106, 1115, 292, 492,
|
|
3525
|
+
509
|
|
3526
|
+
];
|
|
3527
|
+
|
|
3528
|
+
PHP.Parser.prototype.yylhs = [
|
|
3529
|
+
0, 1, 3, 3, 2, 5, 5, 5, 5, 5,
|
|
3530
|
+
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
|
3531
|
+
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
|
3532
|
+
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
|
3533
|
+
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
|
3534
|
+
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
|
3535
|
+
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
|
3536
|
+
5, 5, 5, 5, 6, 6, 6, 6, 6, 6,
|
|
3537
|
+
6, 7, 7, 8, 9, 10, 10, 11, 12, 13,
|
|
3538
|
+
13, 14, 14, 15, 15, 4, 4, 4, 4, 4,
|
|
3539
|
+
4, 4, 4, 4, 4, 4, 20, 20, 21, 21,
|
|
3540
|
+
21, 21, 23, 25, 25, 19, 27, 27, 24, 29,
|
|
3541
|
+
29, 26, 26, 28, 28, 30, 30, 22, 31, 31,
|
|
3542
|
+
32, 34, 35, 35, 36, 37, 37, 39, 38, 38,
|
|
3543
|
+
38, 38, 40, 40, 40, 40, 40, 40, 40, 40,
|
|
3544
|
+
40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
|
|
3545
|
+
40, 40, 40, 40, 40, 40, 40, 16, 16, 59,
|
|
3546
|
+
59, 62, 62, 61, 60, 60, 53, 64, 64, 65,
|
|
3547
|
+
65, 66, 66, 67, 67, 17, 18, 18, 18, 70,
|
|
3548
|
+
70, 70, 71, 71, 74, 74, 72, 72, 76, 77,
|
|
3549
|
+
77, 47, 47, 55, 55, 58, 58, 58, 57, 78,
|
|
3550
|
+
78, 79, 48, 48, 48, 48, 80, 80, 81, 81,
|
|
3551
|
+
82, 82, 45, 45, 41, 41, 83, 43, 43, 84,
|
|
3552
|
+
42, 42, 44, 44, 54, 54, 54, 54, 68, 68,
|
|
3553
|
+
87, 87, 88, 88, 88, 90, 90, 91, 91, 91,
|
|
3554
|
+
89, 89, 69, 69, 69, 92, 92, 93, 93, 94,
|
|
3555
|
+
94, 94, 50, 95, 95, 96, 51, 98, 98, 99,
|
|
3556
|
+
99, 100, 100, 73, 101, 101, 101, 101, 101, 106,
|
|
3557
|
+
106, 107, 107, 108, 108, 108, 108, 108, 109, 110,
|
|
3558
|
+
110, 105, 105, 102, 102, 104, 104, 112, 112, 111,
|
|
3559
|
+
111, 111, 111, 111, 111, 103, 113, 113, 115, 114,
|
|
3560
|
+
114, 52, 116, 116, 46, 46, 33, 33, 33, 33,
|
|
3561
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3562
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3563
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3564
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3565
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3566
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3567
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3568
|
+
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
|
3569
|
+
33, 33, 123, 117, 117, 122, 122, 125, 126, 126,
|
|
3570
|
+
127, 128, 128, 128, 75, 75, 63, 63, 63, 118,
|
|
3571
|
+
118, 118, 130, 130, 119, 119, 121, 121, 121, 124,
|
|
3572
|
+
124, 135, 135, 135, 86, 137, 137, 137, 120, 120,
|
|
3573
|
+
120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
|
|
3574
|
+
120, 120, 120, 120, 49, 49, 133, 133, 133, 129,
|
|
3575
|
+
129, 129, 138, 138, 138, 138, 138, 138, 56, 56,
|
|
3576
|
+
56, 97, 97, 97, 97, 141, 140, 132, 132, 132,
|
|
3577
|
+
132, 132, 132, 131, 131, 131, 139, 139, 139, 139,
|
|
3578
|
+
85, 142, 142, 143, 143, 143, 143, 143, 143, 143,
|
|
3579
|
+
136, 145, 145, 144, 144, 146, 146, 146, 146, 146,
|
|
3580
|
+
146, 134, 134, 134, 134, 148, 149, 147, 147, 147,
|
|
3581
|
+
147, 147, 147, 147, 150, 150, 150, 150
|
|
3582
|
+
];
|
|
3583
|
+
|
|
3584
|
+
PHP.Parser.prototype.yylen = [
|
|
3585
|
+
1, 1, 2, 0, 1, 1, 1, 1, 1, 1,
|
|
3586
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3587
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3588
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3589
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3590
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3591
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3592
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3593
|
+
1, 1, 1, 1, 1, 1, 3, 1, 1, 1,
|
|
3594
|
+
1, 0, 1, 0, 1, 1, 1, 1, 1, 3,
|
|
3595
|
+
5, 4, 3, 4, 2, 3, 1, 1, 7, 8,
|
|
3596
|
+
6, 7, 2, 3, 1, 2, 3, 1, 2, 3,
|
|
3597
|
+
1, 1, 3, 1, 2, 1, 2, 2, 3, 1,
|
|
3598
|
+
3, 2, 3, 1, 3, 2, 0, 1, 1, 1,
|
|
3599
|
+
1, 1, 3, 7, 10, 5, 7, 9, 5, 3,
|
|
3600
|
+
3, 3, 3, 3, 3, 1, 2, 5, 7, 9,
|
|
3601
|
+
6, 5, 6, 3, 3, 2, 1, 1, 1, 0,
|
|
3602
|
+
2, 1, 3, 8, 0, 4, 2, 1, 3, 0,
|
|
3603
|
+
1, 0, 1, 3, 1, 8, 7, 6, 5, 1,
|
|
3604
|
+
2, 2, 0, 2, 0, 2, 0, 2, 2, 1,
|
|
3605
|
+
3, 1, 4, 1, 4, 1, 1, 4, 2, 1,
|
|
3606
|
+
3, 3, 3, 4, 4, 5, 0, 2, 4, 3,
|
|
3607
|
+
1, 1, 1, 4, 0, 2, 5, 0, 2, 6,
|
|
3608
|
+
0, 2, 0, 3, 1, 2, 1, 1, 2, 0,
|
|
3609
|
+
1, 3, 4, 6, 4, 1, 2, 1, 1, 1,
|
|
3610
|
+
0, 1, 0, 2, 2, 2, 4, 1, 3, 1,
|
|
3611
|
+
2, 2, 2, 3, 1, 1, 2, 3, 1, 1,
|
|
3612
|
+
3, 2, 0, 1, 4, 4, 9, 3, 1, 1,
|
|
3613
|
+
3, 0, 2, 4, 5, 4, 4, 4, 3, 1,
|
|
3614
|
+
1, 1, 1, 1, 1, 0, 1, 1, 2, 1,
|
|
3615
|
+
1, 1, 1, 1, 1, 2, 1, 3, 1, 1,
|
|
3616
|
+
3, 2, 3, 1, 0, 1, 1, 3, 3, 3,
|
|
3617
|
+
4, 1, 2, 3, 3, 3, 3, 3, 3, 3,
|
|
3618
|
+
3, 3, 3, 3, 3, 3, 2, 2, 2, 2,
|
|
3619
|
+
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3620
|
+
3, 3, 3, 3, 3, 3, 3, 2, 2, 2,
|
|
3621
|
+
2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3622
|
+
3, 3, 5, 4, 3, 4, 4, 2, 2, 4,
|
|
3623
|
+
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
3624
|
+
2, 1, 3, 2, 1, 2, 4, 2, 8, 9,
|
|
3625
|
+
8, 9, 7, 3, 2, 0, 4, 2, 1, 3,
|
|
3626
|
+
2, 2, 2, 4, 1, 1, 1, 2, 3, 1,
|
|
3627
|
+
1, 1, 1, 1, 0, 3, 0, 1, 1, 0,
|
|
3628
|
+
1, 1, 3, 3, 3, 4, 1, 1, 1, 1,
|
|
3629
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3630
|
+
3, 2, 3, 3, 0, 1, 1, 3, 1, 1,
|
|
3631
|
+
3, 1, 1, 4, 4, 4, 1, 4, 1, 1,
|
|
3632
|
+
3, 1, 4, 2, 2, 1, 3, 1, 4, 4,
|
|
3633
|
+
3, 3, 3, 1, 3, 1, 1, 3, 1, 1,
|
|
3634
|
+
4, 3, 1, 1, 2, 1, 3, 4, 3, 0,
|
|
3635
|
+
1, 1, 1, 3, 1, 3, 1, 4, 2, 2,
|
|
3636
|
+
0, 2, 2, 1, 2, 1, 1, 1, 4, 3,
|
|
3637
|
+
3, 3, 6, 3, 1, 1, 2, 1
|
|
3638
|
+
];
|
|
3639
|
+
|
|
3640
|
+
|
|
3641
|
+
|
|
3642
|
+
exports.PHP = PHP;
|
|
3643
|
+
});
|
|
3644
|
+
|
|
3645
|
+
ace.define("ace/mode/php_worker",[], function(require, exports, module) {
|
|
3646
|
+
"use strict";
|
|
3647
|
+
|
|
3648
|
+
var oop = require("../lib/oop");
|
|
3649
|
+
var Mirror = require("../worker/mirror").Mirror;
|
|
3650
|
+
var PHP = require("./php/php").PHP;
|
|
3651
|
+
|
|
3652
|
+
var PhpWorker = exports.PhpWorker = function(sender) {
|
|
3653
|
+
Mirror.call(this, sender);
|
|
3654
|
+
this.setTimeout(500);
|
|
3655
|
+
};
|
|
3656
|
+
|
|
3657
|
+
oop.inherits(PhpWorker, Mirror);
|
|
3658
|
+
|
|
3659
|
+
(function() {
|
|
3660
|
+
this.setOptions = function(opts) {
|
|
3661
|
+
this.inlinePhp = opts && opts.inline;
|
|
3662
|
+
};
|
|
3663
|
+
|
|
3664
|
+
this.onUpdate = function() {
|
|
3665
|
+
var value = this.doc.getValue();
|
|
3666
|
+
var errors = [];
|
|
3667
|
+
if (this.inlinePhp)
|
|
3668
|
+
value = "<?" + value + "?>";
|
|
3669
|
+
|
|
3670
|
+
var tokens = PHP.Lexer(value, {short_open_tag: 1});
|
|
3671
|
+
try {
|
|
3672
|
+
new PHP.Parser(tokens);
|
|
3673
|
+
} catch(e) {
|
|
3674
|
+
errors.push({
|
|
3675
|
+
row: e.line - 1,
|
|
3676
|
+
column: null,
|
|
3677
|
+
text: e.message.charAt(0).toUpperCase() + e.message.substring(1),
|
|
3678
|
+
type: "error"
|
|
3679
|
+
});
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
this.sender.emit("annotate", errors);
|
|
3683
|
+
};
|
|
3684
|
+
|
|
3685
|
+
}).call(PhpWorker.prototype);
|
|
3686
|
+
|
|
3687
|
+
});
|