From 6c671681a0164bcb69c8eae480132887a9d90f1f Mon Sep 17 00:00:00 2001 From: XIAOYI12 <100394666+xiaoyi1212@users.noreply.github.com> Date: Thu, 4 Apr 2024 00:23:04 +0800 Subject: [PATCH] Add files via upload --- 404.html | 6 ++--- assets/js/23.ee19b9bc.js | 1 + assets/js/24.d46dc8fa.js | 1 + assets/js/25.9ab0e36a.js | 1 + assets/js/26.32e6f87f.js | 1 + assets/js/27.1930e685.js | 1 + assets/js/28.bbbe1a4e.js | 1 + assets/js/29.638fe3bf.js | 1 + assets/js/30.7a000e04.js | 1 + assets/js/31.3266fe59.js | 1 + assets/js/32.bdd21cea.js | 1 + assets/js/33.08b5c19b.js | 1 + assets/js/34.1ddb5955.js | 1 + assets/js/35.7fa01d46.js | 1 + assets/js/36.718acbd1.js | 1 + assets/js/37.98658282.js | 1 + assets/js/38.0a9b1731.js | 1 + assets/js/39.3ed1a77b.js | 1 + assets/js/40.b2d6f471.js | 1 + assets/js/41.2f5ecb28.js | 1 + assets/js/42.621132eb.js | 1 + assets/js/app.cc3a1e8e.js | 16 +++++++++++ en/about/bytecode.html | 46 ++++++++++++++++++++++++++++++++ en/about/index.html | 12 ++++++--- en/help/expressiom.html | 42 +++++++++++++++++++++++++++++ en/index.html | 4 +-- en/run.html | 4 +-- index.html | 4 +-- zh/about/bytecode.html | 56 +++++++++++++++++++++++++++++++++++++++ zh/about/index.html | 12 ++++++--- zh/help/decide.html | 8 +++--- zh/help/expression.html | 54 +++++++++++++++++++++++++++++++++++++ zh/help/index.html | 19 ++++++++++--- zh/help/info.html | 10 +++---- zh/help/loop.html | 10 +++---- zh/help/value.html | 10 +++---- zh/index.html | 6 ++--- zh/run.html | 6 ++--- 38 files changed, 299 insertions(+), 46 deletions(-) create mode 100644 assets/js/23.ee19b9bc.js create mode 100644 assets/js/24.d46dc8fa.js create mode 100644 assets/js/25.9ab0e36a.js create mode 100644 assets/js/26.32e6f87f.js create mode 100644 assets/js/27.1930e685.js create mode 100644 assets/js/28.bbbe1a4e.js create mode 100644 assets/js/29.638fe3bf.js create mode 100644 assets/js/30.7a000e04.js create mode 100644 assets/js/31.3266fe59.js create mode 100644 assets/js/32.bdd21cea.js create mode 100644 assets/js/33.08b5c19b.js create mode 100644 assets/js/34.1ddb5955.js create mode 100644 assets/js/35.7fa01d46.js create mode 100644 assets/js/36.718acbd1.js create mode 100644 assets/js/37.98658282.js create mode 100644 assets/js/38.0a9b1731.js create mode 100644 assets/js/39.3ed1a77b.js create mode 100644 assets/js/40.b2d6f471.js create mode 100644 assets/js/41.2f5ecb28.js create mode 100644 assets/js/42.621132eb.js create mode 100644 assets/js/app.cc3a1e8e.js create mode 100644 en/about/bytecode.html create mode 100644 en/help/expressiom.html create mode 100644 zh/about/bytecode.html create mode 100644 zh/help/expression.html diff --git a/404.html b/404.html index 868b2f3..0390cfb 100644 --- a/404.html +++ b/404.html @@ -8,13 +8,13 @@ - + -

404

That's a Four-Oh-Four.
+ - + diff --git a/assets/js/23.ee19b9bc.js b/assets/js/23.ee19b9bc.js new file mode 100644 index 0000000..daa51df --- /dev/null +++ b/assets/js/23.ee19b9bc.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{308:function(t,r,a){"use strict";a.r(r);var e=a(14),n=Object(e.a)({},(function(){var t=this,r=t._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"stamon-program-language"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stamon-program-language"}},[t._v("#")]),t._v(" Stamon Program Language")]),t._v(" "),r("hr"),t._v(" "),r("h2",{attrs:{id:"directory"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#directory"}},[t._v("#")]),t._v(" Directory")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/en/run.html"}},[t._v("Run")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/en/help/"}},[t._v("Helper")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/en/about/"}},[t._v("About")])],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/24.d46dc8fa.js b/assets/js/24.d46dc8fa.js new file mode 100644 index 0000000..6918bde --- /dev/null +++ b/assets/js/24.d46dc8fa.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{304:function(t,e,i){"use strict";i.r(e);var l=i(14),a=Object(l.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"coolpot"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#coolpot"}},[t._v("#")]),t._v(" CoolPot")]),t._v(" "),e("p",[t._v("A stamon program language compile implements. by XIAOYI12")]),t._v(" "),e("hr"),t._v(" "),e("h2",{attrs:{id:"about-role"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#about-role"}},[t._v("#")]),t._v(" About Role")]),t._v(" "),e("ul",[e("li",[t._v("Used to compile Stamon scripts into bytecode files in advance to improve the running speed.")]),t._v(" "),e("li",[t._v("Default compilation mode supports basic optimizations.")]),t._v(" "),e("li",[t._v("Some O2-level code optimizations are supported.")])]),t._v(" "),e("h2",{attrs:{id:"runtime"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#runtime"}},[t._v("#")]),t._v(" Runtime")]),t._v(" "),e("div",{staticClass:"custom-block warning"},[e("p",{staticClass:"custom-block-title"},[t._v("Warn")]),t._v(" "),e("p",[t._v("The built-in runtime part of CoolPot is only for compiling and debugging compiler bugs, and the supported libraries are extremely limited, so we strongly do not recommend you to use the built-in runtime for production use.")])]),t._v(" "),e("h2",{attrs:{id:"level-2-optimize"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#level-2-optimize"}},[t._v("#")]),t._v(" Level-2 optimize")]),t._v(" "),e("ul",[e("li",[t._v("CoolPot's level-2 optimization mode may break some of the original logic of the script to achieve the fastest execution speed (but not seriously affect the business logic).")]),t._v(" "),e("li",[t._v("Level-2 optimization will perform various code statistics, as well as culling and inline operations, which will slow down the compilation speed.")])]),t._v(" "),e("blockquote",[e("p",[t._v("Don't compare CoolPot's Level-2 optimization level with that of other compilers such as GCC,"),e("br"),t._v("\nas the Stamon language has different syntax and low-level implementations than other languages such as C/C++")])]),t._v(" "),e("p",[t._v("The following are the entries for level-2 optimizations.")]),t._v(" "),e("blockquote",[e("p",[e("code",[t._v("speed")]),t._v(" Increase the speed of execution."),e("br"),t._v(" "),e("code",[t._v("size")]),t._v(" Reduce target file size.")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("ID")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Role")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--inline.function")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("inline method(Methods with fewer calls or a small amount of code are more likely to be inlined)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("speed")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--inline.if")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("inline if statement(When the const expression is set to 'true', the if statement block is automatically expanded)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("speed")]),t._v(","),e("code",[t._v("size")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--inline.value")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("inline value(Variables that do not have a reassignment are automatically inlined into expressions or statements.)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("speed")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--const.expressions.eval")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Const expressions take the value (a pure value expression with no variables will automatically calculate a single value)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("speed")]),t._v(","),e("code",[t._v("size")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--invalid.value.del")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Unused variables are automatically eliminated")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("size")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--invalid.code.del")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Invalid code culling ('continue' statement at the end of the loop, and null operation instructions in bytecode)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("size")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--unreach.statements.del")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Culling unreachable statements")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("size")])])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/25.9ab0e36a.js b/assets/js/25.9ab0e36a.js new file mode 100644 index 0000000..18033e1 --- /dev/null +++ b/assets/js/25.9ab0e36a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{309:function(t,e,s){"use strict";s.r(e);var n=s(14),o=Object(n.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bytecode"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bytecode"}},[this._v("#")]),this._v(" ByteCode")])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/assets/js/26.32e6f87f.js b/assets/js/26.32e6f87f.js new file mode 100644 index 0000000..a193c91 --- /dev/null +++ b/assets/js/26.32e6f87f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{305:function(s,t,e){"use strict";e.r(t);var a=e(14),n=Object(a.a)({},(function(){var s=this,t=s._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[t("h1",{attrs:{id:"first-script"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#first-script"}},[s._v("#")]),s._v(" First script")]),s._v(" "),t("p",[s._v("This tutorial will show you how to write a simple Stamon script and run it.")]),s._v(" "),t("hr"),s._v(" "),t("h2",{attrs:{id:"hello-world"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hello-world"}},[s._v("#")]),s._v(" Hello! World!")]),s._v(" "),t("blockquote",[t("p",[s._v("You must import stamon base library "),t("code",[s._v("std")]),s._v(" to use method "),t("code",[s._v("println")]),s._v(".")])]),s._v(" "),t("div",{staticClass:"custom-block tip"},[t("p",{staticClass:"custom-block-title"},[s._v("script.st")]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v('import std;\nprintln("Hello! World!");\n')])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br")])])]),s._v(" "),t("h2",{attrs:{id:"commit"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#commit"}},[s._v("#")]),s._v(" Commit")]),s._v(" "),t("p",[s._v("In Stamon, single-line comments //, as well as multi-line comments /**/.")]),s._v(" "),t("div",{staticClass:"custom-block tip"},[t("p",{staticClass:"custom-block-title"},[s._v("script.st")]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v('import std; //import base library.\nprintln("Hello! Stamon!");\n/*\nstddef.st define method println\nBut std.st all the common methods have been included\nSo unless you have special cases, you only need to use import std; to import it\n*/\n')])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br"),t("span",{staticClass:"line-number"},[s._v("3")]),t("br"),t("span",{staticClass:"line-number"},[s._v("4")]),t("br"),t("span",{staticClass:"line-number"},[s._v("5")]),t("br"),t("span",{staticClass:"line-number"},[s._v("6")]),t("br"),t("span",{staticClass:"line-number"},[s._v("7")]),t("br")])])]),s._v(" "),t("h2",{attrs:{id:"keys"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#keys"}},[s._v("#")]),s._v(" Keys")]),s._v(" "),t("p",[s._v("Go to "),t("RouterLink",{attrs:{to:"/en/help/info.html"}},[s._v("Multi Info")])],1),s._v(" "),t("div",{staticClass:"custom-block warning"},[t("p",{staticClass:"custom-block-title"},[s._v("Warn!")]),s._v(" "),t("p",[s._v("In Stamon, statements must be split with a "),t("code",[s._v(";")]),s._v(", and you must end with a "),t("code",[s._v(";")]),s._v(" even if the statement does not have a next statement.\n"),t("br"),s._v("\nFor special "),t("code",[s._v("func")]),s._v(" and "),t("code",[s._v("class")]),s._v(" syntactic sugars, you can omit 'at the end if there is no expression involved "),t("code",[s._v(";")])]),s._v(" "),t("blockquote",[t("p",[s._v("All morphemes in the "),t("code",[s._v("def")]),s._v(" statement count as a single statement, and you must add "),t("code",[s._v(";")]),s._v(" at the end.")])]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v("def func_name = func(){\n\n}; //Must has ;\n\n/*\ndef func_name = func(){\n\n} Invalid statement\n*/\n")])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br"),t("span",{staticClass:"line-number"},[s._v("3")]),t("br"),t("span",{staticClass:"line-number"},[s._v("4")]),t("br"),t("span",{staticClass:"line-number"},[s._v("5")]),t("br"),t("span",{staticClass:"line-number"},[s._v("6")]),t("br"),t("span",{staticClass:"line-number"},[s._v("7")]),t("br"),t("span",{staticClass:"line-number"},[s._v("8")]),t("br"),t("span",{staticClass:"line-number"},[s._v("9")]),t("br")])])])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/27.1930e685.js b/assets/js/27.1930e685.js new file mode 100644 index 0000000..348035b --- /dev/null +++ b/assets/js/27.1930e685.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{306:function(t,e,s){"use strict";s.r(e);var n=s(14),a=Object(n.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"decide-statement"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#decide-statement"}},[this._v("#")]),this._v(" Decide Statement")])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/28.bbbe1a4e.js b/assets/js/28.bbbe1a4e.js new file mode 100644 index 0000000..00d4bf8 --- /dev/null +++ b/assets/js/28.bbbe1a4e.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{307:function(t,s,e){"use strict";e.r(s);var n=e(14),r=Object(n.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"expression"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#expression"}},[this._v("#")]),this._v(" Expression")])])}),[],!1,null,null,null);s.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/29.638fe3bf.js b/assets/js/29.638fe3bf.js new file mode 100644 index 0000000..460a423 --- /dev/null +++ b/assets/js/29.638fe3bf.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{315:function(t,s,n){"use strict";n.r(s);var o=n(14),r=Object(o.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"info"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#info"}},[this._v("#")]),this._v(" Info")])])}),[],!1,null,null,null);s.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/30.7a000e04.js b/assets/js/30.7a000e04.js new file mode 100644 index 0000000..cd352af --- /dev/null +++ b/assets/js/30.7a000e04.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{311:function(t,s,e){"use strict";e.r(s);var n=e(14),o=Object(n.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"loop-statement"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#loop-statement"}},[this._v("#")]),this._v(" Loop Statement")])])}),[],!1,null,null,null);s.default=o.exports}}]); \ No newline at end of file diff --git a/assets/js/31.3266fe59.js b/assets/js/31.3266fe59.js new file mode 100644 index 0000000..2258c5b --- /dev/null +++ b/assets/js/31.3266fe59.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{310:function(t,s,a){"use strict";a.r(s);var e=a(14),n=Object(e.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"value"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#value"}},[this._v("#")]),this._v(" Value")])])}),[],!1,null,null,null);s.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/32.bdd21cea.js b/assets/js/32.bdd21cea.js new file mode 100644 index 0000000..8daa3e7 --- /dev/null +++ b/assets/js/32.bdd21cea.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{312:function(t,e,s){"use strict";s.r(e);var a=s(14),o=Object(a.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"run"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#run"}},[t._v("#")]),t._v(" Run")]),t._v(" "),e("p",[t._v("You can run Stamon on any platform.")]),t._v(" "),e("hr"),t._v(" "),e("h2",{attrs:{id:"windowsnt"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#windowsnt"}},[t._v("#")]),t._v(" WindowsNT")]),t._v(" "),e("ol",[e("li",[t._v("To download a specific release from a GitHub repository, select the "),e("code",[t._v("*.win32.exe")]),t._v(" file to your os.\n"),e("ul",[e("li",[t._v("Go to "),e("a",{attrs:{href:"https://github.com/CLimber-Rong/stamon",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub"),e("OutboundLink")],1)])])]),t._v(" "),e("li",[t._v("Config system value "),e("code",[t._v("PATH")]),t._v(" in Stamon directory.")]),t._v(" "),e("li",[t._v("Start Windows PowerShell")])]),t._v(" "),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("Windows PowerShell")]),t._v(" "),e("div",{staticClass:"language- line-numbers-mode"},[e("pre",{pre:!0,attrs:{class:"language-text"}},[e("code",[t._v("PC> stamon -h\n")])]),t._v(" "),e("div",{staticClass:"line-numbers-wrapper"},[e("span",{staticClass:"line-number"},[t._v("1")]),e("br")])])]),t._v(" "),e("h2",{attrs:{id:"linux"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#linux"}},[t._v("#")]),t._v(" Linux")]),t._v(" "),e("ol",[e("li",[t._v("To download a specific release from a GitHub repository, select the "),e("code",[t._v("*.linux")]),t._v(" file to your os.")])]),t._v(" "),e("ul",[e("li",[t._v("Update...")])])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/assets/js/33.08b5c19b.js b/assets/js/33.08b5c19b.js new file mode 100644 index 0000000..713ea3b --- /dev/null +++ b/assets/js/33.08b5c19b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{313:function(t,a,r){"use strict";r.r(a);var s=r(14),n=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"stamon-程序设计语言"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stamon-程序设计语言"}},[t._v("#")]),t._v(" Stamon 程序设计语言")]),t._v(" "),a("hr"),t._v(" "),a("h2",{attrs:{id:"目录"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#目录"}},[t._v("#")]),t._v(" 目录")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/zh/run.html"}},[t._v("运行")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/zh/help/"}},[t._v("帮助")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/zh/about/"}},[t._v("关于")])],1)])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/34.1ddb5955.js b/assets/js/34.1ddb5955.js new file mode 100644 index 0000000..b963d87 --- /dev/null +++ b/assets/js/34.1ddb5955.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{314:function(t,e,l){"use strict";l.r(e);var v=l(14),a=Object(v.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"coolpot"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#coolpot"}},[t._v("#")]),t._v(" CoolPot")]),t._v(" "),e("p",[t._v("Stamon语言的静态编译实现, 由XIAOYI12开发")]),t._v(" "),e("hr"),t._v(" "),e("h2",{attrs:{id:"关于作用"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#关于作用"}},[t._v("#")]),t._v(" 关于作用")]),t._v(" "),e("ul",[e("li",[t._v("用于将Stamon脚本提前编译成字节码文件, 提高运行速度")]),t._v(" "),e("li",[t._v("默认编译模式支持基本的优化方式")]),t._v(" "),e("li",[t._v("支持部分"),e("code",[t._v("O2")]),t._v("级别代码优化")])]),t._v(" "),e("h2",{attrs:{id:"runtime"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#runtime"}},[t._v("#")]),t._v(" Runtime")]),t._v(" "),e("div",{staticClass:"custom-block warning"},[e("p",{staticClass:"custom-block-title"},[t._v("警告")]),t._v(" "),e("p",[t._v("CoolPot内置的Runtime部分仅仅为了参与编译以及调试编译器BUG,且支持的库极其有限,我们强烈不建议您使用该内置运行时做生产环境使用")])]),t._v(" "),e("h2",{attrs:{id:"o2优化"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#o2优化"}},[t._v("#")]),t._v(" O2优化")]),t._v(" "),e("ul",[e("li",[t._v("CoolPot 的O2优化模式可能会破坏脚本的一些原有逻辑以达到最快的执行速度(但不会严重影响业务逻辑)")]),t._v(" "),e("li",[t._v("O2优化会进行各种代码统计,以及剔除、内联操作,会拉低编译速度")])]),t._v(" "),e("blockquote",[e("p",[t._v("请不要将CoolPot的O2优化级别与诸如GCC等其他编译器的优化做类比, Stamon语言与C/C++等其他语言的语法和底层实现不同,所作优化措施也会不同")])]),t._v(" "),e("p",[t._v("以下是O2级别优化的条目")]),t._v(" "),e("blockquote",[e("p",[e("code",[t._v("speed")]),t._v(" 提高执行速度"),e("br"),t._v(" "),e("code",[t._v("size")]),t._v(" 节省目标文件大小")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("ID")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("描述")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("作用")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--inline.function")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("方法内联(调用次数或代码量较少的方法大概率会被内联)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("speed")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--inline.if")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("If语句内联(常量表达式确定为"),e("code",[t._v("true")]),t._v("时,会自动展开if语句块)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("speed")]),t._v(","),e("code",[t._v("size")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--inline.value")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("变量内联(无重赋值的变量会被自动内联进表达式或语句)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("speed")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--const.expressions.eval")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("常量表达式取值(无变量的纯值表达式会自动计算出单个值)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("speed")]),t._v(","),e("code",[t._v("size")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--invalid.value.del")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("未被使用的变量会被自动剔除")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("size")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--invalid.code.del")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("无效代码剔除(循环末尾的"),e("code",[t._v("continue")]),t._v("语句,以及字节码中的空操作指令)")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("size")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("--unreach.statements.del")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("剔除无法到达的语句")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("size")])])])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/35.7fa01d46.js b/assets/js/35.7fa01d46.js new file mode 100644 index 0000000..065b419 --- /dev/null +++ b/assets/js/35.7fa01d46.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{318:function(t,e,a){"use strict";a.r(e);var l=a(14),v=Object(l.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"字节码"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#字节码"}},[t._v("#")]),t._v(" 字节码")]),t._v(" "),e("p",[t._v("该文档详细讲述了"),e("code",[t._v("Stamon")]),t._v("字节码文件的组成, 以及各指令的功能")]),t._v(" "),e("blockquote",[e("p",[t._v("如果有能力, 您也可以依据此文档自行实现一个可以编译"),e("code",[t._v("Stamon")]),t._v("标准语法的编译器")])]),t._v(" "),e("hr"),t._v(" "),e("h2",{attrs:{id:"结构"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#结构"}},[t._v("#")]),t._v(" 结构")]),t._v(" "),e("p",[t._v("一个标准的"),e("code",[t._v("Stamon")]),t._v("字节码文件应当符合以下结构")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"center"}},[t._v("Index(字节)")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[t._v("ByteCodeFile")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("1 - 2")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[e("code",[t._v("0xADBD")]),t._v(" 文件魔数")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("3 - 4")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Stamon字节码版本号")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("5 - 6")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("常量表总项数")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("(7+n)")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("常量表 - 详见"),e("a",{attrs:{href:"#%E5%B8%B8%E9%87%8F%E8%A1%A8"}},[t._v("常量表")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("(7+n) + a")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("指令区")])])])]),t._v(" "),e("h2",{attrs:{id:"常量表"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#常量表"}},[t._v("#")]),t._v(" 常量表")]),t._v(" "),e("p",[t._v("用于存储脚本运行过程中所需的所有值,标识符等. 作为部分字节码指令的操作数")]),t._v(" "),e("blockquote",[e("p",[t._v("为了增加"),e("code",[t._v("VM")]),t._v("索引速度, 规定表项第一位是存储了"),e("code",[t._v("标识符")]),t._v("类型的"),e("code",[t._v("__init__")]),t._v("值")])]),t._v(" "),e("p",[t._v("以下是一个常量表各种类型项的组成")]),t._v(" "),e("h4",{attrs:{id:"标准整形"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#标准整形"}},[t._v("#")]),t._v(" 标准整形")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"center"}},[t._v("Index(字节)")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[t._v("BinaryData")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[e("code",[t._v("0x01")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n+2")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[e("code",[t._v("data")])])])])]),t._v(" "),e("h4",{attrs:{id:"双精浮点"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#双精浮点"}},[t._v("#")]),t._v(" 双精浮点")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"center"}},[t._v("Index(字节)")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[t._v("BinaryData")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[e("code",[t._v("0x02")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n+8")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[e("code",[t._v("data")])])])])]),t._v(" "),e("h4",{attrs:{id:"字符串值"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#字符串值"}},[t._v("#")]),t._v(" 字符串值")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"center"}},[t._v("Index(字节)")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[t._v("BinaryData")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[e("code",[t._v("0x03")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n+2")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Length")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n + Length")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[e("code",[t._v("data")])])])])]),t._v(" "),e("h4",{attrs:{id:"标识符"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#标识符"}},[t._v("#")]),t._v(" 标识符")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"center"}},[t._v("Index(字节)")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[t._v("BinaryData")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[e("code",[t._v("0x04")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n+2")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Length")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"center"}},[t._v("n + Length")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[e("code",[t._v("data")])])])])]),t._v(" "),e("h2",{attrs:{id:"字节码指令"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#字节码指令"}},[t._v("#")]),t._v(" 字节码指令")]),t._v(" "),e("h4",{attrs:{id:"无参指令"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#无参指令"}},[t._v("#")]),t._v(" 无参指令")]),t._v(" "),e("p",[t._v("单字节指令,不包含任何操作数")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("助记符")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[t._v("指令")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("描述")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("ADD")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x01")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("将操作栈栈顶两元素相加")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("SUB")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x02")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("将操作栈栈顶两元素相减")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("CPL")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x03")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("将栈顶元素按位取反")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("NOT")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x04")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("将栈顶元素进行逻辑非运算")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("NEW")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x05")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("根据栈顶元素创建实例对象")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("MUL")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x06")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("将栈顶两元素相乘")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("DIV")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x07")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("将栈顶两元素相除")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("MOD")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x08")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素取余")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("LSH")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x09")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶元素位左移运算")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("RSH")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x0A")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶元素位右移运算")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("LESS")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x0B")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素小于关系比较")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("LEQ")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x0C")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素小于等于比较")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("BIG")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x0D")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素大于关系比较")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("BEQ")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x0E")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素大于等于比较")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("EQU")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x0F")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素等于关系比较")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("IEQ")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x10")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素不等于比较")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("BAND")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x11")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素位与运算")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("BXOR")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x12")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素位异或运算")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("BOR")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x13")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素位或运算")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("LAND")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x14")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素逻辑与运算")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("LOR")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x15")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶两元素逻辑或运算")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("ASSIGN")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x16")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("将栈顶元素赋值到栈下层元素")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("MEMBER")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x17")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("从栈顶元素提取成员")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("CALL")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x1E")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("执行方法")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("SFN")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x20")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("SFN")]),t._v("本地接口指令")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("POS")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x21")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶元素取正")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("NEG")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x22")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("栈顶元素取负")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("RET")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x23")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("返回栈顶元素")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("ARRAY")]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x24")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("加载数组")])])])]),t._v(" "),e("blockquote",[e("p",[t._v("保留指令 "),e("br"),t._v(" "),e("code",[t._v("BRK")]),t._v(" "),e("code",[t._v("0x25")]),t._v(" 终止循环 "),e("br"),t._v(" "),e("code",[t._v("CTN")]),t._v(" "),e("code",[t._v("0x26")]),t._v(" 退出此次循环")])]),t._v(" "),e("h4",{attrs:{id:"有参指令"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#有参指令"}},[t._v("#")]),t._v(" 有参指令")]),t._v(" "),e("p",[t._v("长度一般为2字节的指令,通常包含一个指令和操作数")]),t._v(" "),e("blockquote",[e("p",[e("code",[t._v("index")]),t._v(" 常量表索引 "),e("br"),t._v(" "),e("code",[t._v("pc")]),t._v(" 指令索引 "),e("br"),t._v(" "),e("code",[t._v("label")]),t._v(" 标记点")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("助记符")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("用法")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[t._v("指令")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("描述")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("DEF")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("def")]),t._v(" "),e("code",[t._v("index")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x18")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("加载变量到变量表")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("GOTO")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("goto")]),t._v(" "),e("code",[t._v("pc/label")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x1c")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("无条件跳转到指定位置")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("PUSH")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("push")]),t._v(" "),e("code",[t._v("index")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x1d")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("将指定元素压入操作栈")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("IF")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("if")]),t._v(" "),e("code",[t._v("pc/label")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("0x1b")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("如果栈顶元素不是0或null,跳转至指定位置")])])])]),t._v(" "),e("h4",{attrs:{id:"结构指令"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#结构指令"}},[t._v("#")]),t._v(" 结构指令")]),t._v(" "),e("p",[t._v("通常具有一定的作用域")]),t._v(" "),e("h5",{attrs:{id:"class"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class"}},[t._v("#")]),t._v(" CLASS")]),t._v(" "),e("p",[t._v("将作用域内指令全部加载为类内成员,并将构建好的类直接压入操作栈")]),t._v(" "),e("ul",[e("li",[t._v("指令 "),e("code",[t._v("0x1F")])])]),t._v(" "),e("div",{staticClass:"language- line-numbers-mode"},[e("pre",{pre:!0,attrs:{class:"language-text"}},[e("code",[t._v("class\n\n\n...\nend\n")])]),t._v(" "),e("div",{staticClass:"line-numbers-wrapper"},[e("span",{staticClass:"line-number"},[t._v("1")]),e("br"),e("span",{staticClass:"line-number"},[t._v("2")]),e("br"),e("span",{staticClass:"line-number"},[t._v("3")]),e("br"),e("span",{staticClass:"line-number"},[t._v("4")]),e("br"),e("span",{staticClass:"line-number"},[t._v("5")]),e("br")])]),e("h5",{attrs:{id:"func"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#func"}},[t._v("#")]),t._v(" FUNC")]),t._v(" "),e("p",[t._v("将作用域内指令全部加载为方法集合,并将构建好的方法直接压入操作栈")]),t._v(" "),e("ul",[e("li",[t._v("指令 "),e("code",[t._v("0x1B")])])]),t._v(" "),e("div",{staticClass:"language- line-numbers-mode"},[e("pre",{pre:!0,attrs:{class:"language-text"}},[e("code",[t._v("func\n\n\n...\nend\n")])]),t._v(" "),e("div",{staticClass:"line-numbers-wrapper"},[e("span",{staticClass:"line-number"},[t._v("1")]),e("br"),e("span",{staticClass:"line-number"},[t._v("2")]),e("br"),e("span",{staticClass:"line-number"},[t._v("3")]),e("br"),e("span",{staticClass:"line-number"},[t._v("4")]),e("br"),e("span",{staticClass:"line-number"},[t._v("5")]),e("br")])]),e("h5",{attrs:{id:"end"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#end"}},[t._v("#")]),t._v(" END")]),t._v(" "),e("p",[t._v("用于结束一个作用域")]),t._v(" "),e("ul",[e("li",[t._v("指令 "),e("code",[t._v("0x1a")])])])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/assets/js/36.718acbd1.js b/assets/js/36.718acbd1.js new file mode 100644 index 0000000..8c185a9 --- /dev/null +++ b/assets/js/36.718acbd1.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{316:function(s,t,a){"use strict";a.r(t);var n=a(14),e=Object(n.a)({},(function(){var s=this,t=s._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[t("h1",{attrs:{id:"第一个脚本"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#第一个脚本"}},[s._v("#")]),s._v(" 第一个脚本")]),s._v(" "),t("p",[s._v("本教程将讲解如何编写一个简单的Stamon脚本并运行")]),s._v(" "),t("hr"),s._v(" "),t("h2",{attrs:{id:"你好-世界"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#你好-世界"}},[s._v("#")]),s._v(" 你好!世界!")]),s._v(" "),t("blockquote",[t("p",[s._v("您需要导入 Stamon 基础库 "),t("code",[s._v("std")]),s._v(" 来使用 "),t("code",[s._v("println")]),s._v(" 方法")])]),s._v(" "),t("div",{staticClass:"custom-block tip"},[t("p",{staticClass:"custom-block-title"},[s._v("script.st")]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v('import std;\nprintln("Hello! World!");\n')])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br")])])]),s._v(" "),t("h2",{attrs:{id:"注释"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#注释"}},[s._v("#")]),s._v(" 注释")]),s._v(" "),t("p",[s._v("在 Stamon 中,支持单行注释"),t("code",[s._v("//")]),s._v(", 也支持多行注释"),t("code",[s._v("/**/")]),s._v(".")]),s._v(" "),t("div",{staticClass:"custom-block tip"},[t("p",{staticClass:"custom-block-title"},[s._v("script.st")]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v('import std; //导入基础库\nprintln("Hello! Stamon!");\n/*\nprintln方法定义在stddef.st中\n但是std.st已经将所有常用方法都包含进来了\n所以非特殊情况您只需要使用import std;来导入即可\n*/\n')])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br"),t("span",{staticClass:"line-number"},[s._v("3")]),t("br"),t("span",{staticClass:"line-number"},[s._v("4")]),t("br"),t("span",{staticClass:"line-number"},[s._v("5")]),t("br"),t("span",{staticClass:"line-number"},[s._v("6")]),t("br"),t("span",{staticClass:"line-number"},[s._v("7")]),t("br")])])]),s._v(" "),t("h2",{attrs:{id:"关键字与保留字"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#关键字与保留字"}},[s._v("#")]),s._v(" 关键字与保留字")]),s._v(" "),t("p",[s._v("详见 "),t("RouterLink",{attrs:{to:"/zh/help/info.html#关键字"}},[s._v("更多信息")])],1),s._v(" "),t("div",{staticClass:"custom-block warning"},[t("p",{staticClass:"custom-block-title"},[s._v("注意!")]),s._v(" "),t("p",[s._v("在Stamon中,语句之间必须用"),t("code",[s._v(";")]),s._v("分割,即使该条语句没有下一条语句,您也必须使用"),t("code",[s._v(";")]),s._v("结尾.\n"),t("br"),s._v("\n对于特殊的"),t("code",[s._v("func")]),s._v(" "),t("code",[s._v("class")]),s._v("语法糖, 末尾如果没有表达式参与的话您可以省略"),t("code",[s._v(";")])]),s._v(" "),t("blockquote",[t("p",[t("code",[s._v("def")]),s._v("语句中所有的词素都算做一整条单个语句,您必须在末尾添加"),t("code",[s._v(";")])])]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v("def func_name = func(){\n\n}; //必须加上分号\n\n/*\ndef func_name = func(){\n\n} 不允许这种写法\n*/\n")])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br"),t("span",{staticClass:"line-number"},[s._v("3")]),t("br"),t("span",{staticClass:"line-number"},[s._v("4")]),t("br"),t("span",{staticClass:"line-number"},[s._v("5")]),t("br"),t("span",{staticClass:"line-number"},[s._v("6")]),t("br"),t("span",{staticClass:"line-number"},[s._v("7")]),t("br"),t("span",{staticClass:"line-number"},[s._v("8")]),t("br"),t("span",{staticClass:"line-number"},[s._v("9")]),t("br")])])])])}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/37.98658282.js b/assets/js/37.98658282.js new file mode 100644 index 0000000..1912583 --- /dev/null +++ b/assets/js/37.98658282.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{317:function(s,t,e){"use strict";e.r(t);var a=e(14),n=Object(a.a)({},(function(){var s=this,t=s._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[t("h1",{attrs:{id:"判断语句"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#判断语句"}},[s._v("#")]),s._v(" 判断语句")]),s._v(" "),t("p",[s._v("Stamon中基本的流程控制语句,可通过布尔表达式的值决定是否会指定语句块内的代码.")]),s._v(" "),t("hr"),s._v(" "),t("h2",{attrs:{id:"if"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#if"}},[s._v("#")]),s._v(" If")]),s._v(" "),t("ul",[t("li",[s._v("在Stamon中,使用"),t("code",[s._v("if")]),s._v("关键字定义一个判断语句")])]),s._v(" "),t("blockquote",[t("p",[s._v("括号内的表达式最终结果必须确保为布尔值, "),t("br"),s._v("\n因为Stamon弱类型的特性,"),t("code",[s._v("CoolPot")]),s._v("等一些静态编译器不会做表达式预推断 "),t("br"),s._v("\n编译出来的字节码会发生运行时错误")])]),s._v(" "),t("div",{staticClass:"custom-block tip"},[t("p",{staticClass:"custom-block-title"},[s._v("script.st")]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v('import std;\nif(true){\n println("一个判断语句");\n}\n')])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br"),t("span",{staticClass:"line-number"},[s._v("3")]),t("br"),t("span",{staticClass:"line-number"},[s._v("4")]),t("br")])])]),s._v(" "),t("h2",{attrs:{id:"else"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#else"}},[s._v("#")]),s._v(" Else")]),s._v(" "),t("ul",[t("li",[s._v("在Stamon中,使用"),t("code",[s._v("else")]),s._v("关键字定义一个否则语句")]),s._v(" "),t("li",[s._v("在"),t("code",[s._v("else")]),s._v("语句前必须有一个"),t("code",[s._v("if")]),s._v("或"),t("code",[s._v("else if")]),s._v("语句的定义")])]),s._v(" "),t("div",{staticClass:"custom-block tip"},[t("p",{staticClass:"custom-block-title"},[s._v("script.st")]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v('import std;\nif(false){\n\n}else{\n println("否则语句块");\n}\n')])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br"),t("span",{staticClass:"line-number"},[s._v("3")]),t("br"),t("span",{staticClass:"line-number"},[s._v("4")]),t("br"),t("span",{staticClass:"line-number"},[s._v("5")]),t("br"),t("span",{staticClass:"line-number"},[s._v("6")]),t("br")])])]),s._v(" "),t("h2",{attrs:{id:"else-if"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#else-if"}},[s._v("#")]),s._v(" Else:if")]),s._v(" "),t("ul",[t("li",[s._v("在Stamon中, 否则如果语句的写法为 "),t("code",[s._v("else:if(bool) {}")])])]),s._v(" "),t("div",{staticClass:"custom-block tip"},[t("p",{staticClass:"custom-block-title"},[s._v("script.st")]),s._v(" "),t("h5",[s._v("默认写法")]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v("if(true){\n\n}else:if(){\n\n}\n")])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br"),t("span",{staticClass:"line-number"},[s._v("3")]),t("br"),t("span",{staticClass:"line-number"},[s._v("4")]),t("br"),t("span",{staticClass:"line-number"},[s._v("5")]),t("br")])]),t("h5",[s._v("语法糖 "),t("Badge",{attrs:{text:"CoolPot",type:"warning"}})],1),s._v(" "),t("blockquote",[t("p",[s._v("在CoolPot编译模式下,您可以省略 "),t("code",[s._v(":")]),s._v(" 的写法")])]),s._v(" "),t("div",{staticClass:"language- line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[s._v("if(true){\n\n}else if(true){\n\n}\n")])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br"),t("span",{staticClass:"line-number"},[s._v("3")]),t("br"),t("span",{staticClass:"line-number"},[s._v("4")]),t("br"),t("span",{staticClass:"line-number"},[s._v("5")]),t("br")])]),t("ul",[t("li",[s._v("该语法糖为CoolPot编译器特有, StamonVM即时运行解释器不具备编译该语法糖的功能")])])]),s._v(" "),t("ul",[t("li",[s._v("为什么会有带冒号的写法?")])]),s._v(" "),t("blockquote",[t("p",[s._v("答: 因为在Stamon中,诸如"),t("code",[s._v("if")]),s._v(" "),t("code",[s._v("while")]),s._v("这些语句是可以省略 "),t("code",[s._v("{}")]),s._v("语句块 "),t("br"),s._v("\n替换成 "),t("code",[s._v(":")]),s._v(" 并在后面跟进单个语句的写法, 所以默认情况下是 "),t("code",[s._v("else:if")]),s._v(" 的写法")])])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/38.0a9b1731.js b/assets/js/38.0a9b1731.js new file mode 100644 index 0000000..1912075 --- /dev/null +++ b/assets/js/38.0a9b1731.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{322:function(t,e,v){"use strict";v.r(e);var _=v(14),l=Object(_.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"表达式"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#表达式"}},[t._v("#")]),t._v(" 表达式")]),t._v(" "),e("p",[t._v("在 "),e("code",[t._v("Stamon")]),t._v(" 中, 表达式可以实现各种数学运算或辅助逻辑处理")]),t._v(" "),e("blockquote",[e("p",[t._v("XIAOYI12认为,表达式对于新手理解较为复杂,有必要单开一个篇章专门讲解")])]),t._v(" "),e("hr"),t._v(" "),e("h2",{attrs:{id:"算术与位运算"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#算术与位运算"}},[t._v("#")]),t._v(" 算术与位运算")]),t._v(" "),e("h4",{attrs:{id:"运算符"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#运算符"}},[t._v("#")]),t._v(" 运算符")]),t._v(" "),e("p",[t._v("包含基本的算术运算符与位运算符")]),t._v(" "),e("blockquote",[e("p",[t._v("exp : 表达式 "),e("br"),t._v("\nnum : 数字 "),e("br"),t._v("\nvar : 变量")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("符号")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("描述")]),t._v(" "),e("th",[t._v("用法")]),t._v(" "),e("th",[t._v("附加")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("+")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("进行加法运算")]),t._v(" "),e("td",[t._v(" + ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("+")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("取正运算")]),t._v(" "),e("td",[t._v("+ ")]),t._v(" "),e("td",[t._v("单目运算符")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("进行减法运算")]),t._v(" "),e("td",[t._v(" - ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("取负运算")]),t._v(" "),e("td",[t._v("- ")]),t._v(" "),e("td",[t._v("单目运算符")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("*")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("进行乘法运算")]),t._v(" "),e("td",[t._v(" * ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("/")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("进行除法运算")]),t._v(" "),e("td",[t._v(" / ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("%")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("进行取余运算")]),t._v(" "),e("td",[t._v(" % ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("&")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("位与运算")]),t._v(" "),e("td",[t._v(" & ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("|")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("位或运算")]),t._v(" "),e("td",[t._v(" | ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("~")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("按位取反")]),t._v(" "),e("td",[t._v("~ ")]),t._v(" "),e("td",[t._v("单目运算符")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("^")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("按位异或")]),t._v(" "),e("td",[t._v("^ ")]),t._v(" "),e("td",[t._v("单目运算符")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("<<")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("位左移运算")]),t._v(" "),e("td",[t._v(" << ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v(">>")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("位右移运算")]),t._v(" "),e("td",[t._v(" >> ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("+=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("加等于运算")]),t._v(" "),e("td",[t._v(" += ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("-=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("减等于运算")]),t._v(" "),e("td",[t._v(" -= ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("*=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("乘等于运算")]),t._v(" "),e("td",[t._v(" *= ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("/=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("除等于运算")]),t._v(" "),e("td",[t._v(" /= ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("%=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("取余等于运算")]),t._v(" "),e("td",[t._v(" %= ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("&=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("位于等于运算")]),t._v(" "),e("td",[t._v(" &= ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("|=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("位或等于运算")]),t._v(" "),e("td",[t._v(" |= ")]),t._v(" "),e("td",[t._v("-")])])])]),t._v(" "),e("blockquote",[e("p",[e("code",[t._v("=")]),t._v(" 赋值运算符, 算特殊类型 用法为"),e("code",[t._v(" = ")]),t._v(" "),e("br"),t._v(" "),e("code",[t._v(".")]),t._v(" 取成员运算符, 算特殊类型 用法为"),e("code",[t._v(" . ")]),t._v(" "),e("br"),t._v(" "),e("code",[t._v(",")]),t._v(" 分割运算符, 算特殊类型 起到分割多个表达式作用, 不会翻译成实际的字节码或被执行")])]),t._v(" "),e("h4",{attrs:{id:"注意事项"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#注意事项"}},[t._v("#")]),t._v(" 注意事项")]),t._v(" "),e("ul",[e("li",[t._v("算术表达式中不可有布尔表达式或布尔值作为操作数参与运算")]),t._v(" "),e("li",[e("code",[t._v("CoolPot")]),t._v("静态编译器因自身架构和"),e("code",[t._v("Stamon")]),t._v("语法特性原因不会详细检查表达式组合正确性, 您需要特别注意以防止编译后的字节码运行时发生异常")]),t._v(" "),e("li",[e("code",[t._v("++")]),t._v(" "),e("code",[t._v("--")]),t._v("不受"),e("code",[t._v("StamonVM")]),t._v("即时运行解释器支持")])]),t._v(" "),e("h2",{attrs:{id:"逻辑与关系运算"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#逻辑与关系运算"}},[t._v("#")]),t._v(" 逻辑与关系运算")]),t._v(" "),e("h3",{attrs:{id:"运算符-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#运算符-2"}},[t._v("#")]),t._v(" 运算符")]),t._v(" "),e("p",[t._v("包含关系运算符与逻辑运算符")]),t._v(" "),e("blockquote",[e("p",[t._v("exp : 表达式 "),e("br"),t._v("\nnum : 数字 "),e("br"),t._v("\nbool : 布尔值")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("符号")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("描述")]),t._v(" "),e("th",[t._v("用法")]),t._v(" "),e("th",[t._v("附加")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v(">")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("大于比较")]),t._v(" "),e("td",[t._v(" > ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v(">=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("大于等于比较")]),t._v(" "),e("td",[t._v(" >= ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("<")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("小于于比较")]),t._v(" "),e("td",[t._v(" < ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("<=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("小于等于比较")]),t._v(" "),e("td",[t._v(" <= ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("==")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("等于比较")]),t._v(" "),e("td",[t._v(" == ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("!=")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("不等于比较")]),t._v(" "),e("td",[t._v(" != ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("&&")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("与比较")]),t._v(" "),e("td",[t._v(" && ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("||")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("或比较")]),t._v(" "),e("td",[t._v(" || ")]),t._v(" "),e("td",[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("!")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("非比较")]),t._v(" "),e("td",[t._v("! ")]),t._v(" "),e("td",[t._v("单目运算符")])])])]),t._v(" "),e("h3",{attrs:{id:"注意事项-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#注意事项-2"}},[t._v("#")]),t._v(" 注意事项")]),t._v(" "),e("ul",[e("li",[t._v("逻辑运算符,如"),e("code",[t._v("&&")]),t._v(" "),e("code",[t._v("||")]),t._v(" "),e("code",[t._v("!")]),t._v("两侧必须为布尔表达式或布尔值")]),t._v(" "),e("li",[t._v("关系运算仅"),e("code",[t._v("==")]),t._v("可以适用于任何类型")])]),t._v(" "),e("h2",{attrs:{id:"优先级"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#优先级"}},[t._v("#")]),t._v(" 优先级")]),t._v(" "),e("p",[e("code",[t._v("Stamon")]),t._v("的运算优先级与"),e("code",[t._v("C++")]),t._v("类似,优先级越高,越会在同级情况下被最先参与运算")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("符号")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("优先级")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v(".")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("14")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("++")]),t._v(" "),e("code",[t._v("--")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("13")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("!")]),t._v(" "),e("code",[t._v("~")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("12")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("*")]),t._v(" "),e("code",[t._v("%")]),t._v(" "),e("code",[t._v("\\")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("11")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("+")]),t._v(" "),e("code",[t._v("-")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("10")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("<<")]),t._v(" "),e("code",[t._v(">>")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("9")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("<")]),t._v(" "),e("code",[t._v(">")]),t._v(" "),e("code",[t._v("<=")]),t._v(" "),e("code",[t._v(">=")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("8")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("==")]),t._v(" "),e("code",[t._v("!=")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("7")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("&")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("6")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("^")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("5")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("|")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("4")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("&&")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("3")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("| |")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("2")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("+=")]),t._v(" "),e("code",[t._v("-=")]),t._v(" "),e("code",[t._v("*=")]),t._v(" "),e("code",[t._v("/=")]),t._v(" "),e("code",[t._v("%=")]),t._v(" "),e("code",[t._v("&=")]),t._v(" "),e("code",[t._v("| =")]),t._v(" "),e("code",[t._v(">>=")]),t._v(" "),e("code",[t._v("<<=")]),t._v(" "),e("code",[t._v("=")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("1")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v(",")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("0")])])])]),t._v(" "),e("h2",{attrs:{id:"关于优化"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#关于优化"}},[t._v("#")]),t._v(" 关于优化")]),t._v(" "),e("p",[t._v("受影响的条例, 详见"),e("a",{attrs:{href:"/zh/about"}},[t._v("关于")])]),t._v(" "),e("ul",[e("li",[e("code",[t._v("inline.value")])]),t._v(" "),e("li",[e("code",[t._v("const.expressions.eval")])])])])}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file diff --git a/assets/js/39.3ed1a77b.js b/assets/js/39.3ed1a77b.js new file mode 100644 index 0000000..61b5794 --- /dev/null +++ b/assets/js/39.3ed1a77b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{319:function(t,e,l){"use strict";l.r(e);var a=l(14),i=Object(a.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"更多信息"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#更多信息"}},[t._v("#")]),t._v(" 更多信息")]),t._v(" "),e("p",[t._v("有关于一些 Stamon 语言的各种信息")]),t._v(" "),e("hr"),t._v(" "),e("h2",{attrs:{id:"关键字"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#关键字"}},[t._v("#")]),t._v(" 关键字")]),t._v(" "),e("blockquote",[e("p",[t._v("关键字与保留字: Stamon中用于定义语句、变量、类等所用的字段, 这些字段不能被用作方法名、类名、变量名等")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("字段")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("说明")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("import")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("用于导入内置库或第三方脚本")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("func")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("用于定义方法")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("class")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("用于定义类")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("def")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("用于定义变量")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("if")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("If语句定义")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("else")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Else语句定义")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("while")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("循环语句定义")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("for")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("循环语句定义")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("sfn")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("调用SFN指令")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("true")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v('布尔值"真"')])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("false")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v('布尔值"假"')])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("break")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("循环退出")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("continue")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("终止此次循环")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("null")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("空值")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("in")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("辅助"),e("code",[t._v("for")]),t._v("循环")])])])])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/assets/js/40.b2d6f471.js b/assets/js/40.b2d6f471.js new file mode 100644 index 0000000..62f5938 --- /dev/null +++ b/assets/js/40.b2d6f471.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{321:function(t,s,n){"use strict";n.r(s);var r=n(14),a=Object(r.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"循环语句"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#循环语句"}},[this._v("#")]),this._v(" 循环语句")])])}),[],!1,null,null,null);s.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/41.2f5ecb28.js b/assets/js/41.2f5ecb28.js new file mode 100644 index 0000000..ab23ae8 --- /dev/null +++ b/assets/js/41.2f5ecb28.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{320:function(s,a,t){"use strict";t.r(a);var n=t(14),e=Object(n.a)({},(function(){var s=this,a=s._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("h1",{attrs:{id:"变量"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#变量"}},[s._v("#")]),s._v(" 变量")]),s._v(" "),a("p",[s._v("Stamon中,变量是一个重要的特性.")]),s._v(" "),a("hr"),s._v(" "),a("h2",{attrs:{id:"基元变量"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#基元变量"}},[s._v("#")]),s._v(" 基元变量")]),s._v(" "),a("blockquote",[a("p",[s._v("Stamon中"),a("br"),s._v("\n虽然是隐式类型(这代表你在定义变量时候无需显式指定类型, 变量重赋值也不需要与旧类型统一) "),a("br"),s._v("\n但我们仍然需要注意一些隐藏的类型")])]),s._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[s._v("script.st")]),s._v(" "),a("div",{staticClass:"language- line-numbers-mode"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[s._v('def integer_v = 123;\ndef boolean_v = true;\ndef double_v = 3.1415926;\ndef string_v = "Hello! Stamon!";\n')])]),s._v(" "),a("div",{staticClass:"line-numbers-wrapper"},[a("span",{staticClass:"line-number"},[s._v("1")]),a("br"),a("span",{staticClass:"line-number"},[s._v("2")]),a("br"),a("span",{staticClass:"line-number"},[s._v("3")]),a("br"),a("span",{staticClass:"line-number"},[s._v("4")]),a("br")])])]),s._v(" "),a("h2",{attrs:{id:"实例变量"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#实例变量"}},[s._v("#")]),s._v(" 实例变量")]),s._v(" "),a("blockquote",[a("p",[s._v("Stamon中 "),a("br"),s._v("\n创建一个类的实例对象也是用"),a("code",[s._v("def")]),s._v("关键字")])]),s._v(" "),a("p",[s._v("以下是常规的定义方式,与创建实例对象")]),s._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[s._v("script.st")]),s._v(" "),a("div",{staticClass:"language- line-numbers-mode"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[s._v("def class_name = class {\n def __init__ = func(self){\n // pass\n };\n};\n\ndef instance = class_name.new();\n")])]),s._v(" "),a("div",{staticClass:"line-numbers-wrapper"},[a("span",{staticClass:"line-number"},[s._v("1")]),a("br"),a("span",{staticClass:"line-number"},[s._v("2")]),a("br"),a("span",{staticClass:"line-number"},[s._v("3")]),a("br"),a("span",{staticClass:"line-number"},[s._v("4")]),a("br"),a("span",{staticClass:"line-number"},[s._v("5")]),a("br"),a("span",{staticClass:"line-number"},[s._v("6")]),a("br"),a("span",{staticClass:"line-number"},[s._v("7")]),a("br")])])]),s._v(" "),a("p",[s._v("我们也提供了更加简便的方式去定义")]),s._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[s._v("语法糖")]),s._v(" "),a("div",{staticClass:"language- line-numbers-mode"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[s._v("class class_name{\n func __init__(self){\n //pass\n }\n}\n\ndef instance = class_name.new; \n")])]),s._v(" "),a("div",{staticClass:"line-numbers-wrapper"},[a("span",{staticClass:"line-number"},[s._v("1")]),a("br"),a("span",{staticClass:"line-number"},[s._v("2")]),a("br"),a("span",{staticClass:"line-number"},[s._v("3")]),a("br"),a("span",{staticClass:"line-number"},[s._v("4")]),a("br"),a("span",{staticClass:"line-number"},[s._v("5")]),a("br"),a("span",{staticClass:"line-number"},[s._v("6")]),a("br"),a("span",{staticClass:"line-number"},[s._v("7")]),a("br")])]),a("blockquote",[a("p",[s._v("注意: 当构造方法有其他参数时,您必须指明参数,不得省略 "),a("code",[s._v("()")])])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/42.621132eb.js b/assets/js/42.621132eb.js new file mode 100644 index 0000000..f6d0881 --- /dev/null +++ b/assets/js/42.621132eb.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{323:function(t,e,s){"use strict";s.r(e);var n=s(14),a=Object(n.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"运行"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#运行"}},[t._v("#")]),t._v(" 运行")]),t._v(" "),e("p",[t._v("您可以在任何平台运行StamonVM")]),t._v(" "),e("hr"),t._v(" "),e("h2",{attrs:{id:"windowsnt"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#windowsnt"}},[t._v("#")]),t._v(" WindowsNT")]),t._v(" "),e("ol",[e("li",[t._v("从GitHub存储库下载到指定发行版, 请选择"),e("code",[t._v("*.win32.exe")]),t._v("文件至您的系统\n"),e("ul",[e("li",[t._v("前往 "),e("a",{attrs:{href:"https://github.com/CLimber-Rong/stamon",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub 存储库"),e("OutboundLink")],1)])])]),t._v(" "),e("li",[t._v("配置"),e("code",[t._v("PATH")]),t._v("系统环境变量到"),e("code",[t._v("stamon")]),t._v("的根目录中")]),t._v(" "),e("li",[t._v("启动"),e("code",[t._v("Windows PowerShell")])])]),t._v(" "),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("Windows PowerShell")]),t._v(" "),e("div",{staticClass:"language- line-numbers-mode"},[e("pre",{pre:!0,attrs:{class:"language-text"}},[e("code",[t._v("PC> stamon -h\n")])]),t._v(" "),e("div",{staticClass:"line-numbers-wrapper"},[e("span",{staticClass:"line-number"},[t._v("1")]),e("br")])])]),t._v(" "),e("h2",{attrs:{id:"linux发行版"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#linux发行版"}},[t._v("#")]),t._v(" Linux发行版")]),t._v(" "),e("ol",[e("li",[t._v("从GitHub存储库下载到指定发行版, 请选择"),e("code",[t._v("*.linux")]),t._v("文件至您的系统\n"),e("ul",[e("li",[t._v("前往 "),e("a",{attrs:{href:"https://github.com/CLimber-Rong/CoolPot",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub 存储库"),e("OutboundLink")],1)])])])]),t._v(" "),e("ul",[e("li",[t._v("更新中")])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/app.cc3a1e8e.js b/assets/js/app.cc3a1e8e.js new file mode 100644 index 0000000..e31f362 --- /dev/null +++ b/assets/js/app.cc3a1e8e.js @@ -0,0 +1,16 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[]]);!function(t){function e(e){for(var r,a,s=e[0],c=e[1],u=e[2],f=0,p=[];f
'};function o(t,e,n){return tn?n:t}function i(t){return 100*(-1+t)}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(r[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=o(t,r.minimum,1),n.status=1===t?null:t;var c=n.render(!e),u=c.querySelector(r.barSelector),l=r.speed,f=r.easing;return c.offsetWidth,a((function(e){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),s(u,function(t,e,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+i(t)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+i(t)+"%,0)"}:{"margin-left":i(t)+"%"}).transition="all "+e+"ms "+n,o}(t,l,f)),1===t?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){s(c,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){n.remove(),e()}),l)}),l)):setTimeout(e,l)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout((function(){n.status&&(n.trickle(),t())}),r.trickleSpeed)};return r.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*o(Math.random()*e,.1,.95)),e=o(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===e&&n.start(),t++,e++,r.always((function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=r.template;var o,a=e.querySelector(r.barSelector),c=t?"-100":i(n.status||0),l=document.querySelector(r.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),r.showSpinner||(o=e.querySelector(r.spinnerSelector))&&p(o),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(e),e},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&p(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()})),e[n]||(e[n]=function(e){var n=document.body.style;if(e in n)return e;for(var r,o=t.length,i=e.charAt(0).toUpperCase()+e.slice(1);o--;)if((r=t[o]+i)in n)return r;return e}(n))}function r(t,e,r){e=n(e),t.style[e]=r}return function(t,e){var n,o,i=arguments;if(2==i.length)for(n in e)void 0!==(o=e[n])&&e.hasOwnProperty(n)&&r(t,n,o);else r(t,i[1],i[2])}}();function c(t,e){return("string"==typeof t?t:f(t)).indexOf(" "+e+" ")>=0}function u(t,e){var n=f(t),r=n+e;c(n,e)||(t.className=r.substring(1))}function l(t,e){var n,r=f(t);c(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function f(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function p(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";var r=n(0),o=n(45).f,i=n(12),a=n(91),s=n(33),c=n(60),u=n(119);t.exports=function(t,e){var n,l,f,p,h,d=t.target,v=t.global,m=t.stat;if(n=v?r:m?r[d]||s(d,{}):r[d]&&r[d].prototype)for(l in e){if(p=e[l],f=t.dontCallGetSet?(h=o(n,l))&&h.value:n[l],!u(v?l:d+(m?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,t)}}},function(t,e,n){"use strict";var r=n(25),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(t,e,n){"use strict";var r=n(3);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(46),o=n(28);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(47),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(0),o=n(1),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){"use strict";var r=n(1),o=n(101),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},function(t,e,n){"use strict";var r=n(0),o=n(54),i=n(8),a=n(56),s=n(52),c=n(51),u=r.Symbol,l=o("wks"),f=c?u.for||u:u&&u.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=s&&i(u,t)?u[t]:f("Symbol."+t)),l[t]}},function(t,e,n){"use strict";var r=n(55),o=n(0),i=n(33),a=t.exports=o["__core-js_shared__"]||i("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.36.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e,n){"use strict";var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){"use strict";var r=n(28),o=Object;t.exports=function(t){return o(r(t))}},function(t,e,n){"use strict";var r=n(116);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(143),o=n(10),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},function(t,e,n){var r=n(9)(n(7),"Map");t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(163),o=n(170),i=n(172),a=n(173),s=n(174);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(4),o=n(43),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(11),o=n(10);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";var r=n(5),o=n(24),i=n(97),a=n(26),s=n(27),c=n(48),u=n(8),l=n(57),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return a(!o(i.f,t,e),t[e])}},function(t,e,n){"use strict";var r=n(2),o=n(3),i=n(16),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):a(t)}:a},function(t,e,n){"use strict";t.exports=function(t){return null==t}},function(t,e,n){"use strict";var r=n(98),o=n(49);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){"use strict";var r=n(29),o=n(1),i=n(50),a=n(51),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=r({}.isPrototypeOf)},function(t,e,n){"use strict";var r=n(52);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){"use strict";var r=n(53),o=n(3),i=n(0).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){"use strict";var r,o,i=n(0),a=n(99),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){"use strict";var r=n(32);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},function(t,e,n){"use strict";t.exports=!1},function(t,e,n){"use strict";var r=n(2),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},function(t,e,n){"use strict";var r=n(5),o=n(3),i=n(103);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r=n(6),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";var r=n(8),o=n(110),i=n(45),a=n(15);t.exports=function(t,e,n){for(var s=o(e),c=a.f,u=i.f,l=0;ll))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,v=!0,m=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d-1&&t%1==0&&t]/;t.exports=function(t){var e,n=""+t,o=r.exec(n);if(!o)return n;var i="",a=0,s=0;for(a=o.index;a=e||n<0||m&&t-u>=i}function x(){var t=h();if(_(t))return w(t);s=setTimeout(x,function(t){var n=e-(t-c);return m?p(n,i-(t-u)):n}(t))}function w(t){return s=void 0,y&&r?g(t):(r=o=void 0,a)}function O(){var t=h(),n=_(t);if(r=arguments,o=this,c=t,n){if(void 0===s)return b(c);if(m)return s=setTimeout(x,e),g(c)}return void 0===s&&(s=setTimeout(x,e)),a}return e=v(e)||0,d(n)&&(l=!!n.leading,i=(m="maxWait"in n)?f(v(n.maxWait)||0,e):i,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=o=s=void 0},O.flush=function(){return void 0===s?a:w(h())},O}},function(t,e,n){"use strict";var r=n(23),o=n(34),i=n(35),a=n(138),s=n(140);r({target:"Array",proto:!0,arity:1,forced:n(3)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=o(this),n=i(e),r=arguments.length;s(n+r);for(var c=0;c79&&a<83||!i("reduce")},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){"use strict";var r=n(24),o=n(6),i=n(49),a=n(100),s=n(102),c=n(31),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=a(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){"use strict";var r=n(30),o=n(47);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},function(t,e,n){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){"use strict";var r=n(24),o=n(1),i=n(6),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(0),o=n(6),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){"use strict";var r=n(5),o=n(3);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){"use strict";var r=n(5),o=n(8),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},function(t,e,n){"use strict";var r=n(2),o=n(1),i=n(32),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},function(t,e,n){"use strict";var r,o,i,a=n(108),s=n(0),c=n(6),u=n(12),l=n(8),f=n(32),p=n(109),h=n(59),d=s.TypeError,v=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new d("Object already initialized");return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var y=p("state");h[y]=!0,r=function(t,e){if(l(t,y))throw new d("Object already initialized");return e.facade=t,u(t,y,e),e},o=function(t){return l(t,y)?t[y]:{}},i=function(t){return l(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){"use strict";var r=n(0),o=n(1),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},function(t,e,n){"use strict";var r=n(54),o=n(56),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){"use strict";var r=n(29),o=n(2),i=n(111),a=n(118),s=n(58),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?c(e,n(t)):e}},function(t,e,n){"use strict";var r=n(112),o=n(117).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(2),o=n(8),i=n(27),a=n(113).indexOf,s=n(59),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&c(l,n);for(;e.length>u;)o(r,n=e[u++])&&(~a(l,n)||c(l,n));return l}},function(t,e,n){"use strict";var r=n(27),o=n(114),i=n(35),a=function(t){return function(e,n,a){var s=r(e),c=i(s);if(0===c)return!t&&-1;var u,l=o(a,c);if(t&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){"use strict";var r=n(61),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?o:r)(e)}},function(t,e,n){"use strict";var r=n(61),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0}},function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(3),o=n(1),i=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n===l||n!==u&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},function(t,e,n){"use strict";var r=n(30),o=n(34),i=n(46),a=n(35),s=TypeError,c="Reduce of empty array with no initial value",u=function(t){return function(e,n,u,l){var f=o(e),p=i(f),h=a(f);if(r(n),0===h&&u<2)throw new s(c);var d=t?h-1:0,v=t?-1:1;if(u<2)for(;;){if(d in p){l=p[d],d+=v;break}if(d+=v,t?d<0:h<=d)throw new s(c)}for(;t?d>=0:h>d;d+=v)d in p&&(l=n(l,p[d],d,f));return l}};t.exports={left:u(!1),right:u(!0)}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){"use strict";var r=n(0),o=n(16);t.exports="process"===o(r.process)},function(t,e,n){"use strict";var r=n(23),o=n(0),i=n(124),a=n(125),s=o.WebAssembly,c=7!==new Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},l=function(t,e){if(s&&s[t]){var n={};n[t]=a("WebAssembly."+t,e,c),r({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return i(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),u("URIError",(function(t){return function(e){return i(t,this,arguments)}})),l("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),l("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),l("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},function(t,e,n){"use strict";var r=n(25),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},function(t,e,n){"use strict";var r=n(29),o=n(8),i=n(12),a=n(50),s=n(62),c=n(60),u=n(129),l=n(130),f=n(131),p=n(134),h=n(135),d=n(5),v=n(55);t.exports=function(t,e,n,m){var y=m?2:1,g=t.split("."),b=g[g.length-1],_=r.apply(null,g);if(_){var x=_.prototype;if(!v&&o(x,"cause")&&delete x.cause,!n)return _;var w=r("Error"),O=e((function(t,e){var n=f(m?e:t,void 0),r=m?new _(t):new _;return void 0!==n&&i(r,"message",n),h(r,O,r.stack,2),this&&a(x,this)&&l(r,this,O),arguments.length>y&&p(r,arguments[y]),r}));if(O.prototype=x,"Error"!==b?s?s(O,w):c(O,w,{name:!0}):d&&"stackTraceLimit"in _&&(u(O,_,"stackTraceLimit"),u(O,_,"prepareStackTrace")),c(O,_),!v)try{x.name!==b&&i(x,"name",b),x.constructor=O}catch(t){}return O}}},function(t,e,n){"use strict";var r=n(2),o=n(30);t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},function(t,e,n){"use strict";var r=n(128),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},function(t,e,n){"use strict";var r=n(6);t.exports=function(t){return r(t)||null===t}},function(t,e,n){"use strict";var r=n(15).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},function(t,e,n){"use strict";var r=n(1),o=n(6),i=n(62);t.exports=function(t,e,n){var a,s;return i&&r(a=e.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(t,s),t}},function(t,e,n){"use strict";var r=n(92);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},function(t,e,n){"use strict";var r=n(133),o=n(1),i=n(16),a=n(31)("toStringTag"),s=Object,c="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:c?i(e):"Object"===(r=i(e))&&o(e.callee)?"Arguments":r}},function(t,e,n){"use strict";var r={};r[n(31)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){"use strict";var r=n(6),o=n(12);t.exports=function(t,e){r(e)&&"cause"in e&&o(t,"cause",e.cause)}},function(t,e,n){"use strict";var r=n(12),o=n(136),i=n(137),a=Error.captureStackTrace;t.exports=function(t,e,n,s){i&&(a?a(t,e):r(t,"stack",o(n,s)))}},function(t,e,n){"use strict";var r=n(2),o=Error,i=r("".replace),a=String(new o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,s,"");return t}},function(t,e,n){"use strict";var r=n(3),o=n(26);t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},function(t,e,n){"use strict";var r=n(5),o=n(139),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,n){"use strict";var r=n(16);t.exports=Array.isArray||function(t){return"Array"===r(t)}},function(t,e,n){"use strict";var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},function(t,e,n){var r=n(63),o=n(142);t.exports=function t(e,n,i,a,s){var c=-1,u=e.length;for(i||(i=o),s||(s=[]);++c0&&i(l)?n>1?t(l,n-1,i,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(t,e,n){var r=n(13),o=n(36),i=n(4),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(11),o=n(10);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(13),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[s]=n:delete t[s]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(147),o=n(203),i=n(44),a=n(4),s=n(213);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(148),o=n(202),i=n(81);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(65),o=n(69);t.exports=function(t,e,n,i){var a=n.length,s=a,c=!i;if(null==t)return!s;for(t=Object(t);a--;){var u=n[a];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a-1}},function(t,e,n){var r=n(18);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(17);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(17),o=n(37),i=n(39);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(67),o=n(160),i=n(38),a=n(68),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:s).test(a(t))}},function(t,e,n){var r,o=n(161),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(7)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(164),o=n(17),i=n(37);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(165),o=n(166),i=n(167),a=n(168),s=n(169);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(71),o=n(225),i=n(230),a=n(72),s=n(231),c=n(40);t.exports=function(t,e,n){var u=-1,l=o,f=t.length,p=!0,h=[],d=h;if(n)p=!1,l=i;else if(f>=200){var v=e?null:s(t);if(v)return c(v);p=!1,l=a,d=new r}else d=e?[]:h;t:for(;++u-1}},function(t,e,n){var r=n(227),o=n(228),i=n(229);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},function(t,e){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i=0&&Math.floor(e)===e&&isFinite(t)}function v(t){return a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function m(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===f?JSON.stringify(t,y,2):String(t)}function y(t,e){return e&&e.__v_isRef?e.value:e}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function b(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(r,1)}}var w=Object.prototype.hasOwnProperty;function O(t,e){return w.call(t,e)}function $(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var C=/-(\w)/g,S=$((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),k=$((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),j=/\B([A-Z])/g,E=$((function(t){return t.replace(j,"-$1").toLowerCase()}));var P=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function T(t,e){for(var n in e)t[n]=e[n];return t}function L(t){for(var e={},n=0;n0,Q=X&&X.indexOf("edge/")>0;X&&X.indexOf("android");var tt=X&&/iphone|ipad|ipod|ios/.test(X);X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X);var et,nt=X&&X.match(/firefox\/(\d+)/),rt={}.watch,ot=!1;if(J)try{var it={};Object.defineProperty(it,"passive",{get:function(){ot=!0}}),window.addEventListener("test-passive",null,it)}catch(t){}var at=function(){return void 0===et&&(et=!J&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),et},st=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ct(t){return"function"==typeof t&&/native code/.test(t.toString())}var ut,lt="undefined"!=typeof Symbol&&ct(Symbol)&&"undefined"!=typeof Reflect&&ct(Reflect.ownKeys);ut="undefined"!=typeof Set&&ct(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ft=null;function pt(t){void 0===t&&(t=null),t||ft&&ft._scope.off(),ft=t,t&&t._scope.on()}var ht=function(){function t(t,e,n,r,o,i,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),dt=function(t){void 0===t&&(t="");var e=new ht;return e.text=t,e.isComment=!0,e};function vt(t){return new ht(void 0,void 0,void 0,String(t))}function mt(t){var e=new ht(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}"function"==typeof SuppressedError&&SuppressedError;var yt=0,gt=[],bt=function(){function t(){this._pending=!1,this.id=yt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,gt.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var n=0,r=e.length;n0&&(Xt((u=t(u,"".concat(n||"","_").concat(r)))[0])&&Xt(f)&&(p[l]=vt(f.text+u[0].text),u.shift()),p.push.apply(p,u)):c(u)?Xt(f)?p[l]=vt(f.text+u):""!==u&&p.push(vt(u)):Xt(u)&&Xt(f)?p[l]=vt(f.text+u.text):(s(e._isVList)&&a(u.tag)&&i(u.key)&&a(n)&&(u.key="__vlist".concat(n,"_").concat(r,"__")),p.push(u)));return p}(t):void 0}function Xt(t){return a(t)&&a(t.text)&&!1===t.isComment}function Zt(t,e){var n,r,i,s,c=null;if(o(t)||"string"==typeof t)for(c=new Array(t.length),n=0,r=t.length;n0,s=e?!!e.$stable:!a,c=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&o&&o!==r&&c===o.$key&&!a&&!o.$hasNormal)return o;for(var u in i={},e)e[u]&&"$"!==u[0]&&(i[u]=me(t,n,u,e[u]))}else i={};for(var l in n)l in i||(i[l]=ye(n,l));return e&&Object.isExtensible(e)&&(e._normalized=i),W(i,"$stable",s),W(i,"$key",c),W(i,"$hasNormal",a),i}function me(t,e,n,r){var i=function(){var e=ft;pt(t);var n=arguments.length?r.apply(null,arguments):r({}),i=(n=n&&"object"==typeof n&&!o(n)?[n]:Jt(n))&&n[0];return pt(e),n&&(!i||1===n.length&&i.isComment&&!de(i))?void 0:n};return r.proxy&&Object.defineProperty(e,n,{get:i,enumerable:!0,configurable:!0}),i}function ye(t,e){return function(){return t[e]}}function ge(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};W(e,"_v_attr_proxy",!0),be(e,t.$attrs,r,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||be(t._listenersProxy={},t.$listeners,r,t,"$listeners");return t._listenersProxy},get slots(){return function(t){t._slotsProxy||xe(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(t)},emit:P(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return Ft(t,e,n)}))}}}function be(t,e,n,r,o){var i=!1;for(var a in e)a in t?e[a]!==n[a]&&(i=!0):(i=!0,_e(t,a,r,o));for(var a in t)a in e||(i=!0,delete t[a]);return i}function _e(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function xe(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}var we=null;function Oe(t,e){return(t.__esModule||lt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function $e(t){if(o(t))for(var e=0;edocument.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}var fn=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function pn(){var t,e;for(cn=un(),an=!0,en.sort(fn),sn=0;snsn&&en[n].id>t.id;)n--;en.splice(n+1,0,t)}else en.push(t);on||(on=!0,Ne(pn))}}function dn(t,e){if(t){for(var n=Object.create(null),r=lt?Reflect.ownKeys(t):Object.keys(t),o=0;o-1)if(i&&!O(o,"default"))a=!1;else if(""===a||a===E(t)){var c=zn(String,o.type);(c<0||s-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Zn(t,e){var n=t.cache,r=t.keys,o=t._vnode,i=t.$vnode;for(var a in n){var s=n[a];if(s){var c=s.name;c&&!e(c)&&Yn(n,a,r,o)}}i.componentOptions.children=void 0}function Yn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,x(n,e)}Kn.prototype._init=function(t){var e=this;e._uid=Hn++,e._isVue=!0,e.__v_skip=!0,e._scope=new Bt(!0),e._scope.parent=void 0,e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Pn(Wn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Je(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=pe(e._renderChildren,o),t.$scopedSlots=n?ve(t.$parent,n.data.scopedSlots,t.$slots):r,t._c=function(e,n,r,o){return Ce(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return Ce(t,e,n,r,o,!0)};var i=n&&n.data;Tt(t,"$attrs",i&&i.attrs||r,null,!0),Tt(t,"$listeners",e._parentListeners||r,null,!0)}(e),tn(e,"beforeCreate",void 0,!1),function(t){var e=dn(t.$options.inject,t);e&&(jt(!1),Object.keys(e).forEach((function(n){Tt(t,n,e[n])})),jt(!0))}(e),Nn(e),function(t){var e=t.$options.provide;if(e){var n=u(e)?e.call(t):e;if(!l(n))return;for(var r=Vt(t),o=lt?Reflect.ownKeys(n):Object.keys(n),i=0;i1?A(n):n;for(var r=A(arguments,1),o='event handler for "'.concat(t,'"'),i=0,a=n.length;iparseInt(this.max)&&Yn(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Yn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Zn(t,(function(t){return Xn(e,t)}))})),this.$watch("exclude",(function(e){Zn(t,(function(t){return!Xn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=$e(t),n=e&&e.componentOptions;if(n){var r=Jn(n),o=this.include,i=this.exclude;if(o&&(!r||!Xn(o,r))||i&&r&&Xn(i,r))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,x(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return V}};Object.defineProperty(t,"config",e),t.util={warn:On,extend:T,mergeOptions:Pn,defineReactive:Tt},t.set=Lt,t.delete=Rt,t.nextTick=Ne,t.observable=function(t){return At(t),t},t.options=Object.create(null),U.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,tr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),u(t.install)?t.install.apply(t,n):u(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Pn(this.options,t),this}}(t),Gn(t),function(t){U.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&u(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Kn),Object.defineProperty(Kn.prototype,"$isServer",{get:at}),Object.defineProperty(Kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Kn,"FunctionalRenderContext",{value:vn}),Kn.version="2.7.16";var er=b("style,class"),nr=b("input,textarea,option,select,progress"),rr=b("contenteditable,draggable,spellcheck"),or=b("events,caret,typing,plaintext-only"),ir=b("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),ar="http://www.w3.org/1999/xlink",sr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},cr=function(t){return sr(t)?t.slice(6,t.length):""},ur=function(t){return null==t||!1===t};function lr(t){for(var e=t.data,n=t,r=t;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=fr(r.data,e));for(;a(n=n.parent);)n&&n.data&&(e=fr(e,n.data));return function(t,e){if(a(t)||a(e))return pr(t,hr(e));return""}(e.staticClass,e.class)}function fr(t,e){return{staticClass:pr(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function pr(t,e){return t?e?t+" "+e:t:e||""}function hr(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r-1?Ir(t,e,n):ir(e)?ur(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):rr(e)?t.setAttribute(e,function(t,e){return ur(e)||"false"===e?"false":"contenteditable"===t&&or(e)?e:"true"}(e,n)):sr(e)?ur(n)?t.removeAttributeNS(ar,cr(e)):t.setAttributeNS(ar,e,n):Ir(t,e,n)}function Ir(t,e,n){if(ur(n))t.removeAttribute(e);else{if(Z&&!Y&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Dr={create:Mr,update:Mr};function Nr(t,e){var n=e.elm,r=e.data,o=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=lr(e),c=n._transitionClasses;a(c)&&(s=pr(s,hr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Fr,Ur={create:Nr,update:Nr};function Br(t,e,n){var r=Fr;return function o(){var i=e.apply(null,arguments);null!==i&&Hr(t,o,n,r)}}var Vr=Ae&&!(nt&&Number(nt[1])<=53);function qr(t,e,n,r){if(Vr){var o=cn,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}Fr.addEventListener(t,e,ot?{capture:n,passive:r}:n)}function Hr(t,e,n,r){(r||Fr).removeEventListener(t,e._wrapper||e,n)}function Wr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Fr=e.elm||t.elm,function(t){if(a(t.__r)){var e=Z?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}a(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),Wt(n,r,qr,Hr,Br,e.context),Fr=void 0}}var Kr,Gr={create:Wr,update:Wr,destroy:function(t){return Wr(t,$r)}};function Jr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,o=e.elm,c=t.data.domProps||{},u=e.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=e.data.domProps=T({},u)),c)n in u||(o[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===c[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var l=i(r)?"":String(r);Xr(o,l)&&(o.value=l)}else if("innerHTML"===n&&mr(o.tagName)&&i(o.innerHTML)){(Kr=Kr||document.createElement("div")).innerHTML="".concat(r,"");for(var f=Kr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;f.firstChild;)o.appendChild(f.firstChild)}else if(r!==c[n])try{o[n]=r}catch(t){}}}}function Xr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(a(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Zr={create:Jr,update:Jr},Yr=$((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Qr(t){var e=to(t.style);return t.staticStyle?T(t.staticStyle,e):e}function to(t){return Array.isArray(t)?L(t):"string"==typeof t?Yr(t):t}var eo,no=/^--/,ro=/\s*!important$/,oo=function(t,e,n){if(no.test(e))t.style.setProperty(e,n);else if(ro.test(n))t.style.setProperty(E(e),n.replace(ro,""),"important");else{var r=ao(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(uo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function fo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(uo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function po(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&T(e,ho(t.name||"v")),T(e,t),e}return"string"==typeof t?ho(t):void 0}}var ho=$((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),vo=J&&!Y,mo="transition",yo="transitionend",go="animation",bo="animationend";vo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(mo="WebkitTransition",yo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(go="WebkitAnimation",bo="webkitAnimationEnd"));var _o=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function xo(t){_o((function(){_o(t)}))}function wo(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),lo(t,e))}function Oo(t,e){t._transitionClasses&&x(t._transitionClasses,e),fo(t,e)}function $o(t,e,n){var r=So(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s="transition"===o?yo:bo,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c0&&(n="transition",l=a,f=i.length):"animation"===e?u>0&&(n="animation",l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:"transition"===n&&Co.test(r[mo+"Property"])}}function ko(t,e){for(;t.length1}function Lo(t,e){!0!==e.data.show&&Eo(e)}var Ro=function(t){var e,n,r={},u=t.modules,l=t.nodeOps;for(e=0;ed?_(t,i(n[y+1])?null:n[y+1].elm,n,h,y,r):h>y&&w(e,f,d)}(f,v,y,n,u):a(y)?(a(t.text)&&l.setTextContent(f,""),_(f,null,y,0,y.length-1,n)):a(v)?w(v,0,v.length-1):a(t.text)&&l.setTextContent(f,""):t.text!==e.text&&l.setTextContent(f,e.text),a(d)&&a(h=d.hook)&&a(h=h.postpatch)&&h(t,e)}}}function S(t,e,n){if(s(n)&&a(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==i&&(a.selected=i);else if(I(No(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function Do(t,e){return e.every((function(e){return!I(e,t)}))}function No(t){return"_value"in t?t._value:t.value}function Fo(t){t.target.composing=!0}function Uo(t){t.target.composing&&(t.target.composing=!1,Bo(t.target,"input"))}function Bo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Vo(t){return!t.componentInstance||t.data&&t.data.transition?t:Vo(t.componentInstance._vnode)}var qo={model:Mo,show:{bind:function(t,e,n){var r=e.value,o=(n=Vo(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,Eo(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Vo(n)).data&&n.data.transition?(n.data.show=!0,r?Eo(n,(function(){t.style.display=t.__vOriginalDisplay})):Po(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},Ho={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Wo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Wo($e(e.children)):t}function Ko(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var r in o)e[S(r)]=o[r];return e}function Go(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Jo=function(t){return t.tag||de(t)},Xo=function(t){return"show"===t.name},Zo={name:"transition",props:Ho,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Jo)).length){0;var r=this.mode;0;var o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Wo(o);if(!i)return o;if(this._leaving)return Go(t,o);var a="__transition-".concat(this._uid,"-");i.key=null==i.key?i.isComment?a+"comment":a+i.tag:c(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var s=(i.data||(i.data={})).transition=Ko(this),u=this._vnode,l=Wo(u);if(i.data.directives&&i.data.directives.some(Xo)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!de(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=T({},s);if("out-in"===r)return this._leaving=!0,Kt(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Go(t,o);if("in-out"===r){if(de(i))return u;var p,h=function(){p()};Kt(s,"afterEnter",h),Kt(s,"enterCancelled",h),Kt(f,"delayLeave",(function(t){p=t}))}}return o}}},Yo=T({tag:String,moveClass:String},Ho);function Qo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ti(t){t.data.newPos=t.elm.getBoundingClientRect()}function ei(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate(".concat(r,"px,").concat(o,"px)"),i.transitionDuration="0s"}}delete Yo.mode;var ni={Transition:Zo,TransitionGroup:{props:Yo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=Ko(this),s=0;s-1?gr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:gr[t]=/HTMLUnknownElement/.test(e.toString())},T(Kn.options.directives,qo),T(Kn.options.components,ni),Kn.prototype.__patch__=J?Ro:R,Kn.prototype.$mount=function(t,e){return function(t,e,n){var r;t.$el=e,t.$options.render||(t.$options.render=dt),tn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new He(t,r,R,{before:function(){t._isMounted&&!t._isDestroyed&&tn(t,"beforeUpdate")}},!0),n=!1;var o=t._preWatchers;if(o)for(var i=0;i=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),u=e&&e.path||"/",l=c.path?Oi(c.path,u,n||o.append):u,f=function(t,e,n){void 0===e&&(e={});var r,o=n||li;try{r=o(t||"")}catch(t){r={}}for(var i in e){var a=e[i];r[i]=Array.isArray(a)?a.map(ui):ui(a)}return r}(c.query,o.query,r&&r.options.parseQuery),p=o.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:l,query:f,hash:p}}var qi,Hi=function(){},Wi={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,c={},u=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==u?"router-link-active":u,p=null==l?"router-link-exact-active":l,h=null==this.activeClass?f:this.activeClass,d=null==this.exactActiveClass?p:this.exactActiveClass,v=a.redirectedFrom?hi(null,Vi(a.redirectedFrom),null,n):a;c[d]=gi(r,v,this.exactPath),c[h]=this.exact||this.exactPath?c[d]:function(t,e){return 0===t.path.replace(pi,"/").indexOf(e.path.replace(pi,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,v);var m=c[d]?this.ariaCurrentValue:null,y=function(t){Ki(t)&&(e.replace?n.replace(i,Hi):n.push(i,Hi))},g={click:Ki};Array.isArray(this.event)?this.event.forEach((function(t){g[t]=y})):g[this.event]=y;var b={class:c},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:y,isActive:c[h],isExactActive:c[d]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?t():t("span",{},_)}if("a"===this.tag)b.on=g,b.attrs={href:s,"aria-current":m};else{var x=function t(e){var n;if(e)for(var r=0;r-1&&(s.params[p]=n.params[p]);return s.path=Bi(l.path,s.params),c(l,s,a)}if(s.path){s.params={};for(var h=0;h-1}function $a(t,e){return Oa(t)&&t._isRouter&&(null==e||t.type===e)}function Ca(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],(function(){r(o+1)})):r(o+1)};r(0)}function Sa(t){return function(e,n,r){var o=!1,i=0,a=null;ka(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var c,u=Pa((function(e){var o;((o=e).__esModule||Ea&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:qi.extend(e),n.components[s]=e,--i<=0&&r()})),l=Pa((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Oa(t)?t:new Error(e),r(a))}));try{c=t(u,l)}catch(t){l(t)}if(c)if("function"==typeof c.then)c.then(u,l);else{var f=c.component;f&&"function"==typeof f.then&&f.then(u,l)}}})),o||r()}}function ka(t,e){return ja(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function ja(t){return Array.prototype.concat.apply([],t)}var Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Pa(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Aa=function(t,e){this.router=t,this.base=function(t){if(!t)if(Gi){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=vi,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ta(t,e,n,r){var o=ka(t,(function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=qi.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,o,i)})):n(a,r,o,i)}));return ja(r?o.reverse():o)}function La(t,e){if(e)return function(){return t.apply(e,arguments)}}Aa.prototype.listen=function(t){this.cb=t},Aa.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Aa.prototype.onError=function(t){this.errorCbs.push(t)},Aa.prototype.transitionTo=function(t,e,n){var r,o=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),e&&e(r),o.ensureURL(),o.router.afterHooks.forEach((function(t){t&&t(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!o.ready&&($a(t,ga.redirected)&&i===vi||(o.ready=!0,o.readyErrorCbs.forEach((function(e){e(t)}))))}))},Aa.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current;this.pending=t;var i,a,s=function(t){!$a(t)&&Oa(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,u=o.matched.length-1;if(gi(t,o)&&c===u&&t.matched[c]===o.matched[u])return this.ensureURL(),t.hash&&aa(this.router,o,t,!1),s(((a=xa(i=o,t,ga.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",a));var l=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,r=va&&n;r&&this.listeners.push(ia());var o=function(){var n=t.current,o=Ma(t.base);t.current===vi&&o===t._startLocation||t.transitionTo(o,(function(t){r&&aa(e,t,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){ma($i(r.base+t.fullPath)),aa(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){ya($i(r.base+t.fullPath)),aa(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Ma(this.base)!==this.current.fullPath){var e=$i(this.base+this.current.fullPath);t?ma(e):ya(e)}},e.prototype.getCurrentLocation=function(){return Ma(this.base)},e}(Aa);function Ma(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf($i(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var za=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Ma(t);if(!/^\/#/.test(e))return window.location.replace($i(t+"/#"+e)),!0}(this.base)||Ia()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=va&&e;n&&this.listeners.push(ia());var r=function(){var e=t.current;Ia()&&t.transitionTo(Da(),(function(r){n&&aa(t.router,r,e,!0),va||Ua(r.fullPath)}))},o=va?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Fa(t.fullPath),aa(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Ua(t.fullPath),aa(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Da()!==e&&(t?Fa(e):Ua(e))},e.prototype.getCurrentLocation=function(){return Da()},e}(Aa);function Ia(){var t=Da();return"/"===t.charAt(0)||(Ua("/"+t),!1)}function Da(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Na(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Fa(t){va?ma(Na(t)):window.location.hash=t}function Ua(t){va?ya(Na(t)):window.location.replace(Na(t))}var Ba=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){$a(t,ga.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Aa),Va=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Zi(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!va&&!1!==t.fallback,this.fallback&&(e="hash"),Gi||(e="abstract"),this.mode=e,e){case"history":this.history=new Ra(this,t.base);break;case"hash":this.history=new za(this,t.base,this.fallback);break;case"abstract":this.history=new Ba(this,t.base);break;default:0}},qa={currentRoute:{configurable:!0}};Va.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},qa.currentRoute.get=function(){return this.history&&this.history.current},Va.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Ra||n instanceof za){var r=function(t){n.setupListeners(),function(t){var r=n.current,o=e.options.scrollBehavior;va&&o&&"fullPath"in t&&aa(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Va.prototype.beforeEach=function(t){return Wa(this.beforeHooks,t)},Va.prototype.beforeResolve=function(t){return Wa(this.resolveHooks,t)},Va.prototype.afterEach=function(t){return Wa(this.afterHooks,t)},Va.prototype.onReady=function(t,e){this.history.onReady(t,e)},Va.prototype.onError=function(t){this.history.onError(t)},Va.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Va.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Va.prototype.go=function(t){this.history.go(t)},Va.prototype.back=function(){this.go(-1)},Va.prototype.forward=function(){this.go(1)},Va.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Va.prototype.resolve=function(t,e,n){var r=Vi(t,e=e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?$i(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Va.prototype.getRoutes=function(){return this.matcher.getRoutes()},Va.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==vi&&this.history.transitionTo(this.history.getCurrentLocation())},Va.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==vi&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Va.prototype,qa);var Ha=Va;function Wa(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Va.install=function t(e){if(!t.installed||qi!==e){t.installed=!0,qi=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",xi),e.component("RouterLink",Wi);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Va.version="3.6.5",Va.isNavigationFailure=$a,Va.NavigationFailureType=ga,Va.START_LOCATION=vi,Gi&&window.Vue&&window.Vue.use(Va);n(96);n(123),n(89);var Ka={"components/AlgoliaSearchBox":()=>Promise.all([n.e(0),n.e(13)]).then(n.bind(null,297)),"components/DropdownLink":()=>Promise.all([n.e(0),n.e(14)]).then(n.bind(null,254)),"components/DropdownTransition":()=>Promise.all([n.e(0),n.e(19)]).then(n.bind(null,242)),"components/Home":()=>Promise.all([n.e(0),n.e(16)]).then(n.bind(null,280)),"components/Navbar":()=>Promise.all([n.e(0),n.e(1)]).then(n.bind(null,294)),"components/NavLink":()=>n.e(21).then(n.bind(null,241)),"components/NavLinks":()=>Promise.all([n.e(0),n.e(12)]).then(n.bind(null,265)),"components/Page":()=>Promise.all([n.e(0),n.e(11)]).then(n.bind(null,281)),"components/PageEdit":()=>Promise.all([n.e(0),n.e(17)]).then(n.bind(null,267)),"components/PageNav":()=>Promise.all([n.e(0),n.e(15)]).then(n.bind(null,268)),"components/Sidebar":()=>Promise.all([n.e(0),n.e(10)]).then(n.bind(null,282)),"components/SidebarButton":()=>Promise.all([n.e(0),n.e(20)]).then(n.bind(null,283)),"components/SidebarGroup":()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,266)),"components/SidebarLink":()=>Promise.all([n.e(0),n.e(18)]).then(n.bind(null,255)),"components/SidebarLinks":()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,253)),"global-components/Badge":()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,302)),"global-components/CodeBlock":()=>Promise.all([n.e(0),n.e(5)]).then(n.bind(null,298)),"global-components/CodeGroup":()=>Promise.all([n.e(0),n.e(6)]).then(n.bind(null,299)),"layouts/404":()=>n.e(7).then(n.bind(null,300)),"layouts/Layout":()=>Promise.all([n.e(0),n.e(1),n.e(2)]).then(n.bind(null,301)),NotFound:()=>n.e(7).then(n.bind(null,300)),Layout:()=>Promise.all([n.e(0),n.e(1),n.e(2)]).then(n.bind(null,301))},Ga={"v-b9b86da4":()=>n.e(22).then(n.bind(null,303)),"v-f2ee6338":()=>n.e(24).then(n.bind(null,304)),"v-9155f0c4":()=>n.e(26).then(n.bind(null,305)),"v-f5655dce":()=>n.e(27).then(n.bind(null,306)),"v-e5ae448a":()=>n.e(28).then(n.bind(null,307)),"v-c5455c1e":()=>n.e(23).then(n.bind(null,308)),"v-5ab13aa7":()=>n.e(25).then(n.bind(null,309)),"v-0c975e6d":()=>n.e(31).then(n.bind(null,310)),"v-6b36ffbe":()=>n.e(30).then(n.bind(null,311)),"v-4f3a2508":()=>n.e(32).then(n.bind(null,312)),"v-033055d1":()=>n.e(33).then(n.bind(null,313)),"v-abc3daf8":()=>n.e(34).then(n.bind(null,314)),"v-1d12848d":()=>n.e(29).then(n.bind(null,315)),"v-0d1a55e8":()=>n.e(36).then(n.bind(null,316)),"v-a7b5dee2":()=>n.e(37).then(n.bind(null,317)),"v-8bdac072":()=>n.e(35).then(n.bind(null,318)),"v-d9b1177a":()=>n.e(39).then(n.bind(null,319)),"v-499cd90d":()=>n.e(41).then(n.bind(null,320)),"v-40796fd7":()=>n.e(40).then(n.bind(null,321)),"v-e77926a2":()=>n.e(38).then(n.bind(null,322)),"v-1fa3e41c":()=>n.e(42).then(n.bind(null,323))};function Ja(t){const e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}const Xa=/-(\w)/g,Za=Ja(t=>t.replace(Xa,(t,e)=>e?e.toUpperCase():"")),Ya=/\B([A-Z])/g,Qa=Ja(t=>t.replace(Ya,"-$1").toLowerCase()),ts=Ja(t=>t.charAt(0).toUpperCase()+t.slice(1));function es(t,e){if(!e)return;if(t(e))return t(e);return e.includes("-")?t(ts(Za(e))):t(ts(e))||t(Qa(e))}const ns=Object.assign({},Ka,Ga),rs=t=>ns[t],os=t=>Ga[t],is=t=>Ka[t],as=t=>Kn.component(t);function ss(t){return es(os,t)}function cs(t){return es(is,t)}function us(t){return es(rs,t)}function ls(t){return es(as,t)}function fs(...t){return Promise.all(t.filter(t=>t).map(async t=>{if(!ls(t)&&us(t)){const e=await us(t)();Kn.component(t,e.default)}}))}function ps(t,e){"undefined"!=typeof window&&window.__VUEPRESS__&&(window.__VUEPRESS__[t]=e)}var hs=n(86),ds=n.n(hs),vs=n(87),ms=n.n(vs),ys={created(){if(this.siteMeta=this.$site.headTags.filter(([t])=>"meta"===t).map(([t,e])=>e),this.$ssrContext){const e=this.getMergedMetaTags();this.$ssrContext.title=this.$title,this.$ssrContext.lang=this.$lang,this.$ssrContext.pageMeta=(t=e)?t.map(t=>{let e="{e+=` ${n}="${ms()(t[n])}"`}),e+">"}).join("\n "):"",this.$ssrContext.canonicalLink=bs(this.$canonicalUrl)}var t},mounted(){this.currentMetaTags=[...document.querySelectorAll("meta")],this.updateMeta(),this.updateCanonicalLink()},methods:{updateMeta(){document.title=this.$title,document.documentElement.lang=this.$lang;const t=this.getMergedMetaTags();this.currentMetaTags=_s(t,this.currentMetaTags)},getMergedMetaTags(){const t=this.$page.frontmatter.meta||[];return ds()([{name:"description",content:this.$description}],t,this.siteMeta,xs)},updateCanonicalLink(){gs(),this.$canonicalUrl&&document.head.insertAdjacentHTML("beforeend",bs(this.$canonicalUrl))}},watch:{$page(){this.updateMeta(),this.updateCanonicalLink()}},beforeDestroy(){_s(null,this.currentMetaTags),gs()}};function gs(){const t=document.querySelector("link[rel='canonical']");t&&t.remove()}function bs(t=""){return t?``:""}function _s(t,e){if(e&&[...e].filter(t=>t.parentNode===document.head).forEach(t=>document.head.removeChild(t)),t)return t.map(t=>{const e=document.createElement("meta");return Object.keys(t).forEach(n=>{e.setAttribute(n,t[n])}),document.head.appendChild(e),e})}function xs(t){for(const e of["name","property","itemprop"])if(t.hasOwnProperty(e))return t[e]+e;return JSON.stringify(t)}var ws=n(88),Os={mounted(){window.addEventListener("scroll",this.onScroll)},methods:{onScroll:n.n(ws)()((function(){this.setActiveHash()}),300),setActiveHash(){const t=[].slice.call(document.querySelectorAll(".sidebar-link")),e=[].slice.call(document.querySelectorAll(".header-anchor")).filter(e=>t.some(t=>t.hash===e.hash)),n=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),o=window.innerHeight+n;for(let t=0;t=i.parentElement.offsetTop+10&&(!a||n{this.$nextTick(()=>{this.$vuepress.$set("disableScrollBehavior",!1)})})}}}},beforeDestroy(){window.removeEventListener("scroll",this.onScroll)}},$s=n(22),Cs=n.n($s),Ss=[ys,Os,{mounted(){Cs.a.configure({showSpinner:!1}),this.$router.beforeEach((t,e,n)=>{t.path===e.path||Kn.component(t.name)||Cs.a.start(),n()}),this.$router.afterEach(()=>{Cs.a.done(),this.isSidebarOpen=!1})}}],ks={name:"GlobalLayout",computed:{layout(){const t=this.getLayout();return ps("layout",t),Kn.component(t)}},methods:{getLayout(){if(this.$page.path){const t=this.$page.frontmatter.layout;return t&&(this.$vuepress.getLayoutAsyncComponent(t)||this.$vuepress.getVueComponent(t))?t:"Layout"}return"NotFound"}}},js=n(14),Es=Object(js.a)(ks,(function(){return(0,this._self._c)(this.layout,{tag:"component"})}),[],!1,null,null,null).exports;!function(t,e,n){switch(e){case"components":t[e]||(t[e]={}),Object.assign(t[e],n);break;case"mixins":t[e]||(t[e]=[]),t[e].push(...n);break;default:throw new Error("Unknown option name.")}}(Es,"mixins",Ss);const Ps=[{name:"v-b9b86da4",path:"/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-b9b86da4").then(n)}},{path:"/index.html",redirect:"/"},{name:"v-f2ee6338",path:"/en/about/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-f2ee6338").then(n)}},{path:"/en/about/index.html",redirect:"/en/about/"},{name:"v-9155f0c4",path:"/en/help/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-9155f0c4").then(n)}},{path:"/en/help/index.html",redirect:"/en/help/"},{name:"v-f5655dce",path:"/en/help/decide.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-f5655dce").then(n)}},{name:"v-e5ae448a",path:"/en/help/expressiom.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-e5ae448a").then(n)}},{name:"v-c5455c1e",path:"/en/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-c5455c1e").then(n)}},{path:"/en/index.html",redirect:"/en/"},{name:"v-5ab13aa7",path:"/en/about/bytecode.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-5ab13aa7").then(n)}},{name:"v-0c975e6d",path:"/en/help/value.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-0c975e6d").then(n)}},{name:"v-6b36ffbe",path:"/en/help/loop.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-6b36ffbe").then(n)}},{name:"v-4f3a2508",path:"/en/run.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-4f3a2508").then(n)}},{name:"v-033055d1",path:"/zh/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-033055d1").then(n)}},{path:"/zh/index.html",redirect:"/zh/"},{name:"v-abc3daf8",path:"/zh/about/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-abc3daf8").then(n)}},{path:"/zh/about/index.html",redirect:"/zh/about/"},{name:"v-1d12848d",path:"/en/help/info.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-1d12848d").then(n)}},{name:"v-0d1a55e8",path:"/zh/help/",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-0d1a55e8").then(n)}},{path:"/zh/help/index.html",redirect:"/zh/help/"},{name:"v-a7b5dee2",path:"/zh/help/decide.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-a7b5dee2").then(n)}},{name:"v-8bdac072",path:"/zh/about/bytecode.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-8bdac072").then(n)}},{name:"v-d9b1177a",path:"/zh/help/info.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-d9b1177a").then(n)}},{name:"v-499cd90d",path:"/zh/help/value.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-499cd90d").then(n)}},{name:"v-40796fd7",path:"/zh/help/loop.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-40796fd7").then(n)}},{name:"v-e77926a2",path:"/zh/help/expression.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-e77926a2").then(n)}},{name:"v-1fa3e41c",path:"/zh/run.html",component:Es,beforeEnter:(t,e,n)=>{fs("Layout","v-1fa3e41c").then(n)}},{path:"*",component:Es}],As={title:"Stamon Doc",description:"Stamon编程语言文档站",base:"/StamonDoc/",headTags:[["link",{rel:"icon",href:"/StamonDoc/logo.png"}]],pages:[{title:"Home",frontmatter:{home:!0,heroImage:"/logo.png",heroText:"Stamon Doc",tagline:"Stamon编程语言文档站",actionText:"开始探索之旅 →",actionLink:"/zh/",features:[{title:"跨平台",details:"您可以在任何平台启动StamonVM"},{title:"高性能",details:"StamonVM与CoolPot结合, 达到极致的速度"},{title:"简单",details:"简单易学的语法, 方便快速上手"}],footer:"MIT Licensed | Copyright © 2023-2024 CLimber-Rong"},regularPath:"/",relativePath:"README.md",key:"v-b9b86da4",path:"/",headers:[{level:2,title:"StamonVM",slug:"stamonvm"},{level:2,title:"CoolPot",slug:"coolpot"}]},{title:"CoolPot",frontmatter:{},regularPath:"/en/about/",relativePath:"en/about/README.md",key:"v-f2ee6338",path:"/en/about/",headers:[{level:2,title:"About Role",slug:"about-role"},{level:2,title:"Runtime",slug:"runtime"},{level:2,title:"Level-2 optimize",slug:"level-2-optimize"}]},{title:"First script",frontmatter:{},regularPath:"/en/help/",relativePath:"en/help/README.md",key:"v-9155f0c4",path:"/en/help/",headers:[{level:2,title:"Hello! World!",slug:"hello-world"},{level:2,title:"Commit",slug:"commit"},{level:2,title:"Keys",slug:"keys"}]},{title:"Decide Statement",frontmatter:{},regularPath:"/en/help/decide.html",relativePath:"en/help/decide.md",key:"v-f5655dce",path:"/en/help/decide.html"},{title:"Expression",frontmatter:{},regularPath:"/en/help/expressiom.html",relativePath:"en/help/expressiom.md",key:"v-e5ae448a",path:"/en/help/expressiom.html"},{title:"Stamon Program Language",frontmatter:{},regularPath:"/en/",relativePath:"en/README.md",key:"v-c5455c1e",path:"/en/",headers:[{level:2,title:"Directory",slug:"directory"}]},{title:"ByteCode",frontmatter:{},regularPath:"/en/about/bytecode.html",relativePath:"en/about/bytecode.md",key:"v-5ab13aa7",path:"/en/about/bytecode.html"},{title:"Value",frontmatter:{},regularPath:"/en/help/value.html",relativePath:"en/help/value.md",key:"v-0c975e6d",path:"/en/help/value.html"},{title:"Loop Statement",frontmatter:{},regularPath:"/en/help/loop.html",relativePath:"en/help/loop.md",key:"v-6b36ffbe",path:"/en/help/loop.html"},{title:"Run",frontmatter:{},regularPath:"/en/run.html",relativePath:"en/run.md",key:"v-4f3a2508",path:"/en/run.html",headers:[{level:2,title:"WindowsNT",slug:"windowsnt"},{level:2,title:"Linux",slug:"linux"}]},{title:"README",frontmatter:{title:"README",date:"2024-03-29T00:49:31.000Z",categories:["zh"],tags:[null]},regularPath:"/zh/",relativePath:"zh/README.md",key:"v-033055d1",path:"/zh/",headers:[{level:2,title:"目录",slug:"目录"}]},{title:"CoolPot",frontmatter:{},regularPath:"/zh/about/",relativePath:"zh/about/README.md",key:"v-abc3daf8",path:"/zh/about/",headers:[{level:2,title:"关于作用",slug:"关于作用"},{level:2,title:"Runtime",slug:"runtime"},{level:2,title:"O2优化",slug:"o2优化"}]},{title:"Info",frontmatter:{},regularPath:"/en/help/info.html",relativePath:"en/help/info.md",key:"v-1d12848d",path:"/en/help/info.html"},{title:"第一个脚本",frontmatter:{},regularPath:"/zh/help/",relativePath:"zh/help/README.md",key:"v-0d1a55e8",path:"/zh/help/",headers:[{level:2,title:"你好!世界!",slug:"你好-世界"},{level:2,title:"注释",slug:"注释"},{level:2,title:"关键字与保留字",slug:"关键字与保留字"}]},{title:"判断语句",frontmatter:{},regularPath:"/zh/help/decide.html",relativePath:"zh/help/decide.md",key:"v-a7b5dee2",path:"/zh/help/decide.html",headers:[{level:2,title:"If",slug:"if"},{level:2,title:"Else",slug:"else"},{level:2,title:"Else:if",slug:"else-if"}]},{title:"字节码",frontmatter:{},regularPath:"/zh/about/bytecode.html",relativePath:"zh/about/bytecode.md",key:"v-8bdac072",path:"/zh/about/bytecode.html",headers:[{level:2,title:"结构",slug:"结构"},{level:2,title:"常量表",slug:"常量表"},{level:2,title:"字节码指令",slug:"字节码指令"}]},{title:"更多信息",frontmatter:{},regularPath:"/zh/help/info.html",relativePath:"zh/help/info.md",key:"v-d9b1177a",path:"/zh/help/info.html",headers:[{level:2,title:"关键字",slug:"关键字"}]},{title:"变量",frontmatter:{},regularPath:"/zh/help/value.html",relativePath:"zh/help/value.md",key:"v-499cd90d",path:"/zh/help/value.html",headers:[{level:2,title:"基元变量",slug:"基元变量"},{level:2,title:"实例变量",slug:"实例变量"}]},{title:"循环语句",frontmatter:{},regularPath:"/zh/help/loop.html",relativePath:"zh/help/loop.md",key:"v-40796fd7",path:"/zh/help/loop.html"},{title:"表达式",frontmatter:{},regularPath:"/zh/help/expression.html",relativePath:"zh/help/expression.md",key:"v-e77926a2",path:"/zh/help/expression.html",headers:[{level:2,title:"算术与位运算",slug:"算术与位运算"},{level:2,title:"逻辑与关系运算",slug:"逻辑与关系运算"},{level:3,title:"运算符",slug:"运算符-2"},{level:3,title:"注意事项",slug:"注意事项-2"},{level:2,title:"优先级",slug:"优先级"},{level:2,title:"关于优化",slug:"关于优化"}]},{title:"run",frontmatter:{title:"run",date:"2024-03-29T21:07:01.000Z",categories:["zh"],tags:[null]},regularPath:"/zh/run.html",relativePath:"zh/run.md",key:"v-1fa3e41c",path:"/zh/run.html",headers:[{level:2,title:"WindowsNT",slug:"windowsnt"},{level:2,title:"Linux发行版",slug:"linux发行版"}]}],themeConfig:{logo:"/logo.png",searchMaxSuggestions:10,nav:[{text:"🎲索引",link:"/zh/"},{text:"🏡首页",link:"/"},{text:"📖文档",link:"https://climber-rong.github.io/stamon/"},{text:"⚡GitHUB",link:"https://github.com/CLimber-Rong/stvm"}],sidebar:{"/zh/":[{title:"快速上手",collapsable:!0,children:[{title:"尝试运行",path:"/zh/run"}]},{title:"基础教程",collapsable:!0,children:[{title:"第一个脚本",path:"/zh/help/"},{title:"变量",path:"/zh/help/value"},{title:"判断",path:"/zh/help/decide"},{title:"循环",path:"/zh/help/loop"},{title:"表达式",path:"/zh/help/expression"},{title:"更多信息",path:"/zh/help/info"}]},{title:"关于CoolPot",collapsable:!0,children:[{title:"静态编译",path:"/zh/about/"},{title:"字节码",path:"/zh/about/bytecode"}]}],"/en/":[{title:"Getting Started",collapsable:!0,children:[{title:"Run",path:"/en/run"}]},{title:"Basic tutorials",collapsable:!0,children:[{title:"First script",path:"/en/help/"},{title:"Value",path:"/en/help/value"},{title:"Decide",path:"/en/help/decide"},{title:"Loop",path:"/en/help/loop"},{title:"Expression",path:"/en/help/expression"},{title:"More information",path:"/en/help/info"}]},{title:"About CoolPot",collapsable:!0,children:[{title:"Static Compile",path:"/en/about/"},{title:"ByteCode",path:"/en/about/bytecode"}]}]}},locales:{"/en/":{lang:"en-US",title:"Stamon",description:"Stamon document webste",path:"/en/"},"/zh/":{lang:"zh-CN",title:"Stamon",description:"Stamon 文档网站",path:"/zh/"}}};n(234);Kn.component("Badge",()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,302))),Kn.component("CodeBlock",()=>Promise.all([n.e(0),n.e(5)]).then(n.bind(null,298))),Kn.component("CodeGroup",()=>Promise.all([n.e(0),n.e(6)]).then(n.bind(null,299)));n(235);var Ts=[{},({Vue:t})=>{t.mixin({computed:{$dataBlock(){return this.$options.__data__block__}}})},{},{}],Ls=[];class Rs extends class{constructor(){this.store=new Kn({data:{state:{}}})}$get(t){return this.store.state[t]}$set(t,e){Kn.set(this.store.state,t,e)}$emit(...t){this.store.$emit(...t)}$on(...t){this.store.$on(...t)}}{}Object.assign(Rs.prototype,{getPageAsyncComponent:ss,getLayoutAsyncComponent:cs,getAsyncComponent:us,getVueComponent:ls});var Ms={install(t){const e=new Rs;t.$vuepress=e,t.prototype.$vuepress=e}};function zs(t,e){const n=e.toLowerCase();return t.options.routes.some(t=>t.path.toLowerCase()===n)}var Is={props:{pageKey:String,slotKey:{type:String,default:"default"}},render(t){const e=this.pageKey||this.$parent.$page.key;return ps("pageKey",e),Kn.component(e)||Kn.component(e,ss(e)),Kn.component(e)?t(e):t("")}},Ds={functional:!0,props:{slotKey:String,required:!0},render:(t,{props:e,slots:n})=>t("div",{class:["content__"+e.slotKey]},n()[e.slotKey])},Ns={computed:{openInNewWindowTitle(){return this.$themeLocaleConfig.openNewWindowText||"(opens new window)"}}},Fs=(n(236),n(237),Object(js.a)(Ns,(function(){var t=this._self._c;return t("span",[t("svg",{staticClass:"icon outbound",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"}},[t("path",{attrs:{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}}),this._v(" "),t("polygon",{attrs:{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"}})]),this._v(" "),t("span",{staticClass:"sr-only"},[this._v(this._s(this.openInNewWindowTitle))])])}),[],!1,null,null,null).exports),Us={functional:!0,render(t,{parent:e,children:n}){if(e._isMounted)return n;e.$once("hook:mounted",()=>{e.$forceUpdate()})}};Kn.config.productionTip=!1,Kn.use(Ha),Kn.use(Ms),Kn.mixin(function(t,e,n=Kn){!function(t){t.locales&&Object.keys(t.locales).forEach(e=>{t.locales[e].path=e});Object.freeze(t)}(e),n.$vuepress.$set("siteData",e);const r=new(t(n.$vuepress.$get("siteData"))),o=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(r)),i={};return Object.keys(o).reduce((t,e)=>(e.startsWith("$")&&(t[e]=o[e].get),t),i),{computed:i}}(t=>class{setPage(t){this.__page=t}get $site(){return t}get $themeConfig(){return this.$site.themeConfig}get $frontmatter(){return this.$page.frontmatter}get $localeConfig(){const{locales:t={}}=this.$site;let e,n;for(const r in t)"/"===r?n=t[r]:0===this.$page.path.indexOf(r)&&(e=t[r]);return e||n||{}}get $siteTitle(){return this.$localeConfig.title||this.$site.title||""}get $canonicalUrl(){const{canonicalUrl:t}=this.$page.frontmatter;return"string"==typeof t&&t}get $title(){const t=this.$page,{metaTitle:e}=this.$page.frontmatter;if("string"==typeof e)return e;const n=this.$siteTitle,r=t.frontmatter.home?null:t.frontmatter.title||t.title;return n?r?r+" | "+n:n:r||"VuePress"}get $description(){const t=function(t){if(t){const e=t.filter(t=>"description"===t.name)[0];if(e)return e.content}}(this.$page.frontmatter.meta);return t||(this.$page.frontmatter.description||this.$localeConfig.description||this.$site.description||"")}get $lang(){return this.$page.frontmatter.lang||this.$localeConfig.lang||"en-US"}get $localePath(){return this.$localeConfig.path||"/"}get $themeLocaleConfig(){return(this.$site.themeConfig.locales||{})[this.$localePath]||{}}get $page(){return this.__page?this.__page:function(t,e){for(let n=0;nn||(t.hash?!Kn.$vuepress.$get("disableScrollBehavior")&&{selector:decodeURIComponent(t.hash)}:{x:0,y:0})});!function(t){t.beforeEach((e,n,r)=>{if(zs(t,e.path))r();else if(/(\/|\.html)$/.test(e.path))if(/\/$/.test(e.path)){const n=e.path.replace(/\/$/,"")+".html";zs(t,n)?r(n):r()}else r();else{const n=e.path+"/",o=e.path+".html";zs(t,o)?r(o):zs(t,n)?r(n):r()}})}(n);const r={};try{await Promise.all(Ts.filter(t=>"function"==typeof t).map(e=>e({Vue:Kn,options:r,router:n,siteData:As,isServer:t})))}catch(t){console.error(t)}return{app:new Kn(Object.assign(r,{router:n,render:t=>t("div",{attrs:{id:"app"}},[t("RouterView",{ref:"layout"}),t("div",{class:"global-ui"},Ls.map(e=>t(e)))])})),router:n}}(!1).then(({app:t,router:e})=>{e.onReady(()=>{t.$mount("#app")})})}]); \ No newline at end of file diff --git a/en/about/bytecode.html b/en/about/bytecode.html new file mode 100644 index 0000000..dc1ef6e --- /dev/null +++ b/en/about/bytecode.html @@ -0,0 +1,46 @@ + + + + + + ByteCode | Stamon + + + + + + + + + + + + diff --git a/en/about/index.html b/en/about/index.html index ea871aa..800bad3 100644 --- a/en/about/index.html +++ b/en/about/index.html @@ -8,7 +8,7 @@ - + @@ -36,12 +36,16 @@ en-US

# CoolPot

A stamon program language compile implements. by XIAOYI12


# About Role

# Runtime

Warn

The built-in runtime part of CoolPot is only for compiling and debugging compiler bugs, and the supported libraries are extremely limited, so we strongly do not recommend you to use the built-in runtime for production use.

# Level-2 optimize

Don't compare CoolPot's Level-2 optimization level with that of other compilers such as GCC,
+

# CoolPot

A stamon program language compile implements. by XIAOYI12


# About Role

  • Used to compile Stamon scripts into bytecode files in advance to improve the running speed.
  • Default compilation mode supports basic optimizations.
  • Some O2-level code optimizations are supported.

# Runtime

Warn

The built-in runtime part of CoolPot is only for compiling and debugging compiler bugs, and the supported libraries are extremely limited, so we strongly do not recommend you to use the built-in runtime for production use.

# Level-2 optimize

  • CoolPot's level-2 optimization mode may break some of the original logic of the script to achieve the fastest execution speed (but not seriously affect the business logic).
  • Level-2 optimization will perform various code statistics, as well as culling and inline operations, which will slow down the compilation speed.

Don't compare CoolPot's Level-2 optimization level with that of other compilers such as GCC,
as the Stamon language has different syntax and low-level implementations than other languages such as C/C++

The following are the entries for level-2 optimizations.

speed Increase the speed of execution.
size Reduce target file size.

ID Description Role
--inline.function inline method(Methods with fewer calls or a small amount of code are more likely to be inlined) speed
--inline.if inline if statement(When the const expression is set to 'true', the if statement block is automatically expanded) speed,size
--inline.value inline value(Variables that do not have a reassignment are automatically inlined into expressions or statements.) speed
--const.expressions.eval Const expressions take the value (a pure value expression with no variables will automatically calculate a single value) speed,size
--invalid.value.del Unused variables are automatically eliminated size
--invalid.code.del Invalid code culling ('continue' statement at the end of the loop, and null operation instructions in bytecode) size
--unreach.statements.del Culling unreachable statements size
- + + ByteCode + + → +

+ diff --git a/en/help/expressiom.html b/en/help/expressiom.html new file mode 100644 index 0000000..57c1ee0 --- /dev/null +++ b/en/help/expressiom.html @@ -0,0 +1,42 @@ + + + + + + Expression | Stamon + + + + + + + + +

# Expression

+ + + diff --git a/en/index.html b/en/index.html index 409aa87..1761f6d 100644 --- a/en/index.html +++ b/en/index.html @@ -8,7 +8,7 @@ - + @@ -37,6 +37,6 @@

# Stamon Program Language


# Directory

- + diff --git a/en/run.html b/en/run.html index bef52b1..de46ef9 100644 --- a/en/run.html +++ b/en/run.html @@ -8,7 +8,7 @@ - + @@ -43,6 +43,6 @@ →

- + diff --git a/index.html b/index.html index 354ccff..b8b9b60 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - + @@ -45,6 +45,6 @@

跨平台

您可以在任何平台启动StamonVM

高性能

StamonVM与CoolPot结合, 达到极致的速度

简单

简单易学的语法, 方便快速上手

# 🚀Update

# StamonVM

# CoolPot

- + diff --git a/zh/about/bytecode.html b/zh/about/bytecode.html new file mode 100644 index 0000000..a2244e2 --- /dev/null +++ b/zh/about/bytecode.html @@ -0,0 +1,56 @@ + + + + + + 字节码 | Stamon + + + + + + + + +

# 字节码

该文档详细讲述了Stamon字节码文件的组成, 以及各指令的功能

如果有能力, 您也可以依据此文档自行实现一个可以编译Stamon标准语法的编译器


# 结构

一个标准的Stamon字节码文件应当符合以下结构

Index(字节) ByteCodeFile
1 - 2 0xADBD 文件魔数
3 - 4 Stamon字节码版本号
5 - 6 常量表总项数
(7+n) 常量表 - 详见常量表
(7+n) + a 指令区

# 常量表

用于存储脚本运行过程中所需的所有值,标识符等. 作为部分字节码指令的操作数

为了增加VM索引速度, 规定表项第一位是存储了标识符类型的__init__

以下是一个常量表各种类型项的组成

# 标准整形

Index(字节) BinaryData
n 0x01
n+2 data

# 双精浮点

Index(字节) BinaryData
n 0x02
n+8 data

# 字符串值

Index(字节) BinaryData
n 0x03
n+2 Length
n + Length data

# 标识符

Index(字节) BinaryData
n 0x04
n+2 Length
n + Length data

# 字节码指令

# 无参指令

单字节指令,不包含任何操作数

助记符 指令 描述
ADD 0x01 将操作栈栈顶两元素相加
SUB 0x02 将操作栈栈顶两元素相减
CPL 0x03 将栈顶元素按位取反
NOT 0x04 将栈顶元素进行逻辑非运算
NEW 0x05 根据栈顶元素创建实例对象
MUL 0x06 将栈顶两元素相乘
DIV 0x07 将栈顶两元素相除
MOD 0x08 栈顶两元素取余
LSH 0x09 栈顶元素位左移运算
RSH 0x0A 栈顶元素位右移运算
LESS 0x0B 栈顶两元素小于关系比较
LEQ 0x0C 栈顶两元素小于等于比较
BIG 0x0D 栈顶两元素大于关系比较
BEQ 0x0E 栈顶两元素大于等于比较
EQU 0x0F 栈顶两元素等于关系比较
IEQ 0x10 栈顶两元素不等于比较
BAND 0x11 栈顶两元素位与运算
BXOR 0x12 栈顶两元素位异或运算
BOR 0x13 栈顶两元素位或运算
LAND 0x14 栈顶两元素逻辑与运算
LOR 0x15 栈顶两元素逻辑或运算
ASSIGN 0x16 将栈顶元素赋值到栈下层元素
MEMBER 0x17 从栈顶元素提取成员
CALL 0x1E 执行方法
SFN 0x20 SFN本地接口指令
POS 0x21 栈顶元素取正
NEG 0x22 栈顶元素取负
RET 0x23 返回栈顶元素
ARRAY 0x24 加载数组

保留指令
BRK 0x25 终止循环
CTN 0x26 退出此次循环

# 有参指令

长度一般为2字节的指令,通常包含一个指令和操作数

index 常量表索引
pc 指令索引
label 标记点

助记符 用法 指令 描述
DEF def index 0x18 加载变量到变量表
GOTO goto pc/label 0x1c 无条件跳转到指定位置
PUSH push index 0x1d 将指定元素压入操作栈
IF if pc/label 0x1b 如果栈顶元素不是0或null,跳转至指定位置

# 结构指令

通常具有一定的作用域

# CLASS

将作用域内指令全部加载为类内成员,并将构建好的类直接压入操作栈

  • 指令 0x1F
class
+<bytecode>
+<bytecode>
+...
+end
+
1
2
3
4
5
# FUNC

将作用域内指令全部加载为方法集合,并将构建好的方法直接压入操作栈

  • 指令 0x1B
func
+<bytecode>
+<bytecode>
+...
+end
+
1
2
3
4
5
# END

用于结束一个作用域

  • 指令 0x1a
+ + + diff --git a/zh/about/index.html b/zh/about/index.html index 550738f..1b53c05 100644 --- a/zh/about/index.html +++ b/zh/about/index.html @@ -8,7 +8,7 @@ - + @@ -36,11 +36,15 @@ en-US

# CoolPot

Stamon语言的静态编译实现, 由XIAOYI12开发


# 关于作用

# Runtime

警告

CoolPot内置的Runtime部分仅仅为了参与编译以及调试编译器BUG,且支持的库极其有限,我们强烈不建议您使用该内置运行时做生产环境使用

# O2优化

请不要将CoolPot的O2优化级别与诸如GCC等其他编译器的优化做类比, Stamon语言与C/C++等其他语言的语法和底层实现不同,所作优化措施也会不同

以下是O2级别优化的条目

speed 提高执行速度
size 节省目标文件大小

ID 描述 作用
--inline.function 方法内联(调用次数或代码量较少的方法大概率会被内联) speed
--inline.if If语句内联(常量表达式确定为true时,会自动展开if语句块) speed,size
--inline.value 变量内联(无重赋值的变量会被自动内联进表达式或语句) speed
--const.expressions.eval 常量表达式取值(无变量的纯值表达式会自动计算出单个值) speed,size
--invalid.value.del 未被使用的变量会被自动剔除 size
--invalid.code.del 无效代码剔除(循环末尾的continue语句,以及字节码中的空操作指令) size
--unreach.statements.del 剔除无法到达的语句 size

# CoolPot

Stamon语言的静态编译实现, 由XIAOYI12开发


# 关于作用

  • 用于将Stamon脚本提前编译成字节码文件, 提高运行速度
  • 默认编译模式支持基本的优化方式
  • 支持部分O2级别代码优化

# Runtime

警告

CoolPot内置的Runtime部分仅仅为了参与编译以及调试编译器BUG,且支持的库极其有限,我们强烈不建议您使用该内置运行时做生产环境使用

# O2优化

  • CoolPot 的O2优化模式可能会破坏脚本的一些原有逻辑以达到最快的执行速度(但不会严重影响业务逻辑)
  • O2优化会进行各种代码统计,以及剔除、内联操作,会拉低编译速度

请不要将CoolPot的O2优化级别与诸如GCC等其他编译器的优化做类比, Stamon语言与C/C++等其他语言的语法和底层实现不同,所作优化措施也会不同

以下是O2级别优化的条目

speed 提高执行速度
size 节省目标文件大小

ID 描述 作用
--inline.function 方法内联(调用次数或代码量较少的方法大概率会被内联) speed
--inline.if If语句内联(常量表达式确定为true时,会自动展开if语句块) speed,size
--inline.value 变量内联(无重赋值的变量会被自动内联进表达式或语句) speed
--const.expressions.eval 常量表达式取值(无变量的纯值表达式会自动计算出单个值) speed,size
--invalid.value.del 未被使用的变量会被自动剔除 size
--invalid.code.del 无效代码剔除(循环末尾的continue语句,以及字节码中的空操作指令) size
--unreach.statements.del 剔除无法到达的语句 size
- + + 字节码 + + → +

+ diff --git a/zh/help/decide.html b/zh/help/decide.html index c03685c..1f37a36 100644 --- a/zh/help/decide.html +++ b/zh/help/decide.html @@ -8,7 +8,7 @@ - + @@ -36,7 +36,7 @@ en-US

# 判断语句

Stamon中基本的流程控制语句,可通过布尔表达式的值决定是否会指定语句块内的代码.


# If

括号内的表达式最终结果必须确保为布尔值,
+

# 判断语句

Stamon中基本的流程控制语句,可通过布尔表达式的值决定是否会指定语句块内的代码.


# If

  • 在Stamon中,使用if关键字定义一个判断语句

括号内的表达式最终结果必须确保为布尔值,
因为Stamon弱类型的特性,CoolPot等一些静态编译器不会做表达式预推断
编译出来的字节码会发生运行时错误

script.st

import std;
 if(true){
@@ -61,13 +61,13 @@
 
1
2
3
4
5
  • 该语法糖为CoolPot编译器特有, StamonVM即时运行解释器不具备编译该语法糖的功能
  • 为什么会有带冒号的写法?

答: 因为在Stamon中,诸如if while这些语句是可以省略 {}语句块
替换成 : 并在后面跟进单个语句的写法, 所以默认情况下是 else:if 的写法

- + diff --git a/zh/help/expression.html b/zh/help/expression.html new file mode 100644 index 0000000..58fa533 --- /dev/null +++ b/zh/help/expression.html @@ -0,0 +1,54 @@ + + + + + + 表达式 | Stamon + + + + + + + + +

# 表达式

Stamon 中, 表达式可以实现各种数学运算或辅助逻辑处理

XIAOYI12认为,表达式对于新手理解较为复杂,有必要单开一个篇章专门讲解


# 算术与位运算

# 运算符

包含基本的算术运算符与位运算符

exp : 表达式
+num : 数字
+var : 变量

符号 描述 用法 附加
+ 进行加法运算 <exp|num> + <exp|num> -
+ 取正运算 + <exp|num> 单目运算符
- 进行减法运算 <exp|num> - <exp|num> -
- 取负运算 - <exp|num> 单目运算符
* 进行乘法运算 <exp|num> * <exp|num> -
/ 进行除法运算 <exp|num> / <exp|num> -
% 进行取余运算 <exp|num> % <exp|num> -
& 位与运算 <exp|num:integer> & <exp|num:integer> -
| 位或运算 <exp|num:integer> | <exp|num:integer> -
~ 按位取反 ~ <exp|num:integer> 单目运算符
^ 按位异或 ^ <exp|num:integer> 单目运算符
<< 位左移运算 <exp|num:integer> << <exp|num:integer> -
>> 位右移运算 <exp|num:integer> >> <exp|num:integer> -
+= 加等于运算 <var> += <exp|num> -
-= 减等于运算 <var> -= <exp|num> -
*= 乘等于运算 <var> *= <exp|num> -
/= 除等于运算 <var> /= <exp|num> -
%= 取余等于运算 <var> %= <exp|num> -
&= 位于等于运算 <var> &= <exp|num> -
|= 位或等于运算 <var> |= <exp|num> -

= 赋值运算符, 算特殊类型 用法为<var> = <all_type>
. 取成员运算符, 算特殊类型 用法为<all_type> . <class|func|var>
, 分割运算符, 算特殊类型 起到分割多个表达式作用, 不会翻译成实际的字节码或被执行

# 注意事项

  • 算术表达式中不可有布尔表达式或布尔值作为操作数参与运算
  • CoolPot静态编译器因自身架构和Stamon语法特性原因不会详细检查表达式组合正确性, 您需要特别注意以防止编译后的字节码运行时发生异常
  • ++ --不受StamonVM即时运行解释器支持

# 逻辑与关系运算

# 运算符

包含关系运算符与逻辑运算符

exp : 表达式
+num : 数字
+bool : 布尔值

符号 描述 用法 附加
> 大于比较 <exp|num> > <exp|num> -
>= 大于等于比较 <exp|num> >= <exp|num> -
< 小于于比较 <exp|num> < <exp|num> -
<= 小于等于比较 <exp|num> <= <exp|num> -
== 等于比较 <exp|num|bool> == <exp|num|bool> -
!= 不等于比较 <exp|num|bool> != <exp|num|bool> -
&& 与比较 <exp|bool> && <exp|bool> -
|| 或比较 <exp|bool> || <exp|bool> -
! 非比较 ! <exp|bool> 单目运算符

# 注意事项

  • 逻辑运算符,如&& || !两侧必须为布尔表达式或布尔值
  • 关系运算仅==可以适用于任何类型

# 优先级

Stamon的运算优先级与C++类似,优先级越高,越会在同级情况下被最先参与运算

符号 优先级
. 14
++ -- 13
! ~ 12
* % \ 11
+ - 10
<< >> 9
< > <= >= 8
== != 7
& 6
^ 5
| 4
&& 3
| | 2
+= -= *= /= %= &= | = >>= <<= = 1
, 0

# 关于优化

受影响的条例, 详见关于

  • inline.value
  • const.expressions.eval
+ + + diff --git a/zh/help/index.html b/zh/help/index.html index 362045b..fbcf28a 100644 --- a/zh/help/index.html +++ b/zh/help/index.html @@ -8,7 +8,7 @@ - + @@ -36,7 +36,7 @@ en-US

# 第一个脚本

本教程将讲解如何编写一个简单的Stamon脚本并运行


# 你好!世界!

您需要导入 Stamon 基础库 std 来使用 println 方法

script.st

import std;
+

# 第一个脚本

本教程将讲解如何编写一个简单的Stamon脚本并运行


# 你好!世界!

您需要导入 Stamon 基础库 std 来使用 println 方法

script.st

import std;
 println("Hello! World!");
 
1
2

# 注释

在 Stamon 中,支持单行注释//, 也支持多行注释/**/.

script.st

import std; //导入基础库
 println("Hello! Stamon!");
@@ -45,7 +45,18 @@
 但是std.st已经将所有常用方法都包含进来了
 所以非特殊情况您只需要使用import std;来导入即可
 */
-
1
2
3
4
5
6
7

# 关键字与保留字

详见 更多信息

# 关键字与保留字

详见 更多信息

注意!

在Stamon中,语句之间必须用;分割,即使该条语句没有下一条语句,您也必须使用;结尾. +
+对于特殊的func class语法糖, 末尾如果没有表达式参与的话您可以省略;

def语句中所有的词素都算做一整条单个语句,您必须在末尾添加;

def func_name = func(){
+
+}; //必须加上分号
+
+/*
+def func_name = func(){
+
+} 不允许这种写法
+*/
+
1
2
3
4
5
6
7
8
9
- + diff --git a/zh/help/info.html b/zh/help/info.html index 48dd13e..a56d11c 100644 --- a/zh/help/info.html +++ b/zh/help/info.html @@ -8,7 +8,7 @@ - + @@ -36,15 +36,15 @@ en-US

# 更多信息

有关于一些 Stamon 语言的各种信息


# 关键字

关键字与保留字: Stamon中用于定义语句、变量、类等所用的字段, 这些字段不能被用作方法名、类名、变量名等

字段 说明
import 用于导入内置库或第三方脚本
func 用于定义方法
class 用于定义类
def 用于定义变量
if If语句定义
else Else语句定义
while 循环语句定义
for 循环语句定义
sfn 调用SFN指令
true 布尔值"真"
false 布尔值"假"
break 循环退出
continue 终止此次循环
null 空值
in 辅助for循环

# 更多信息

有关于一些 Stamon 语言的各种信息


# 关键字

关键字与保留字: Stamon中用于定义语句、变量、类等所用的字段, 这些字段不能被用作方法名、类名、变量名等

字段 说明
import 用于导入内置库或第三方脚本
func 用于定义方法
class 用于定义类
def 用于定义变量
if If语句定义
else Else语句定义
while 循环语句定义
for 循环语句定义
sfn 调用SFN指令
true 布尔值"真"
false 布尔值"假"
break 循环退出
continue 终止此次循环
null 空值
in 辅助for循环
- + diff --git a/zh/help/loop.html b/zh/help/loop.html index 13d22e1..5f36559 100644 --- a/zh/help/loop.html +++ b/zh/help/loop.html @@ -8,7 +8,7 @@ - + @@ -36,15 +36,15 @@ en-US

# 循环语句

# 循环语句

- + diff --git a/zh/help/value.html b/zh/help/value.html index 854acea..baf29a6 100644 --- a/zh/help/value.html +++ b/zh/help/value.html @@ -8,7 +8,7 @@ - + @@ -36,7 +36,7 @@ en-US

# 变量

Stamon中,变量是一个重要的特性.


# 基元变量

Stamon中
+

# 变量

Stamon中,变量是一个重要的特性.


# 基元变量

Stamon中
虽然是隐式类型(这代表你在定义变量时候无需显式指定类型, 变量重赋值也不需要与旧类型统一)
但我们仍然需要注意一些隐藏的类型

script.st

def integer_v = 123;
 def boolean_v = true;
@@ -61,11 +61,11 @@
       ←
        
-        更多信息
+       
+        判断
       

- + diff --git a/zh/index.html b/zh/index.html index 61c06e5..4ec7650 100644 --- a/zh/index.html +++ b/zh/index.html @@ -3,12 +3,12 @@ - Stamon 程序设计语言 | Stamon + README | Stamon - + @@ -37,6 +37,6 @@

# Stamon 程序设计语言


# 目录

- + diff --git a/zh/run.html b/zh/run.html index a066d20..ddbaff6 100644 --- a/zh/run.html +++ b/zh/run.html @@ -3,12 +3,12 @@ - 运行 | Stamon + run | Stamon - + @@ -44,6 +44,6 @@ →

- +