-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (38 loc) · 6.65 KB
/
index.html
File metadata and controls
39 lines (38 loc) · 6.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
/>
<link rel="stylesheet" href="/umi.eb884056.css" />
<script>
window.routerBase = "/";
</script>
<script>
//! umi version: 3.3.1
</script>
<script
src="https://www.googletagmanager.com/gtag/js?id=UA-89371431-6"
async="true"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-89371431-6");
</script>
<title>Type</title>
</head>
<body>
<div id="root"><div class="__dumi-default-layout" data-show-sidemenu="true" data-show-slugs="true" data-site-mode="true" data-gapless="false"><div class="__dumi-default-navbar" data-mode="site"><button class="__dumi-default-navbar-toggle"></button><a class="__dumi-default-navbar-logo" href="/en-US">StaticScript</a><nav><div class="__dumi-default-search"><input type="search" class="__dumi-default-search-input" value=""/><ul></ul></div><a aria-current="page" class="active" href="/en-US/guide">Guide</a><a target="_blank" rel="noopener noreferrer" href="https://github.com/StaticScript/StaticScript">GitHub<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="__dumi-default-external-link-icon"><path 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"></path><polygon 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"></polygon></svg></a><div class="__dumi-default-locale-select" data-locale-count="2"><span>中文</span></div></nav></div><div class="__dumi-default-menu" data-mode="site"><div class="__dumi-default-menu-inner"><div class="__dumi-default-menu-header"><a class="__dumi-default-menu-logo" href="/en-US"></a><h1>StaticScript</h1><p></p></div><div class="__dumi-default-menu-mobile-area"><ul class="__dumi-default-menu-nav-list"><li><a aria-current="page" class="active" href="/en-US/guide">Guide</a></li><li><a target="_blank" rel="noopener noreferrer" href="https://github.com/StaticScript/StaticScript">GitHub<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="__dumi-default-external-link-icon"><path 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"></path><polygon 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"></polygon></svg></a></li></ul><div class="__dumi-default-locale-select" data-locale-count="2"><span>中文</span></div></div><ul class="__dumi-default-menu-list"><li><a href="/en-US/guide">Introduction</a></li><li><a href="/en-US/guide/install">Installation</a></li><li><a href="/en-US/guide/getting-started">Quick Start</a></li><li><a aria-current="page" class="active" href="/en-US/guide/type">Type</a></li><li><a href="/en-US/guide/variable&constant">Variable and Constant</a></li><li><a href="/en-US/guide/literal">Literal</a></li><li><a href="/en-US/guide/operators">Operators</a></li><li><a href="/en-US/guide/integer&float">Integer and Floating-Point</a></li></ul></div></div><ul class="__dumi-default-layout-toc" role="slug-list"><li title="Basic Types" data-depth="2" class=""><a href="/en-US/guide/type#basic-types"><span>Basic Types</span></a></li><li title="Array Type" data-depth="2" class=""><a href="/en-US/guide/type#array-type"><span>Array Type</span></a></li><li title="Interface Type" data-depth="2" class=""><a href="/en-US/guide/type#interface-type"><span>Interface Type</span></a></li><li title="Zero Value" data-depth="2" class=""><a href="/en-US/guide/type#zero-value"><span>Zero Value</span></a></li></ul><div class="__dumi-default-layout-content"><div class="markdown"><h2 id="basic-types"><a aria-hidden="true" href="#basic-types"><span class="icon icon-link"></span></a>Basic Types</h2><p>Staticscript currently has three basic types</p><ul><li><code>boolean</code></li><li><code>int</code>: integer array</li><li><code>number</code>: floating-point array</li><li><code>string</code></li></ul><p>There are only two values of <code>boolean</code>, which are <code>true</code> and <code>false</code>.</p><p><code>int</code> only supports 64 bit integers in the range of <code>[-9223372036854775808, 9223372036854775807]</code>.</p><p><code>number</code> supports IEEE-754 standard double precision floating-point numbers, and the range is between <code>- 1.7976931348623157e + 308, 1.7976931348623157e + 308]</code>.</p><p><code>string</code> is an immutable sequence of characters.</p><h2 id="array-type"><a aria-hidden="true" href="#array-type"><span class="icon icon-link"></span></a>Array Type</h2><p>Staticscript supports arrays with element types of the above three basic types.</p><ul><li><code>boolean[]</code>: boolean array</li><li><code>int[]</code>: integer array</li><li><code>number[]</code>: floating-point array</li><li><code>string[]</code>: string array</li></ul><p>StaticScript also supports multi-dimensional array.</p><ul><li><code>boolean[][]</code>: 2-dimensional boolean array</li><li><code>int[][]</code>: 2-dimensional integer array</li><li><code>number[][]</code>: 2-dimensional floating-point array</li><li><code>string[][]</code>: 2-dimensional string array</li></ul><p>Note that the elements in the array must be of the same type.</p><h2 id="interface-type"><a aria-hidden="true" href="#interface-type"><span class="icon icon-link"></span></a>Interface Type</h2><blockquote><p>Comming Soon</p></blockquote><h2 id="zero-value"><a aria-hidden="true" href="#zero-value"><span class="icon icon-link"></span></a>Zero Value</h2><p>When a variable is created, if the initial value is not specified explicitly, the compiler will automatically initialize its value to zero value of its type.</p><p>The zero values of each type are as follows:</p><ul><li><code>boolean</code>: its zero value is <code>false</code></li><li><code>int</code>: its zero value is <code>0</code></li><li><code>number</code>: its zero value is <code>0.0</code></li><li><code>string</code>: its zero value is <code>""</code></li></ul></div><div class="__dumi-default-layout-footer-meta"><span data-updated-text="Last Update: ">12/19/2020, 2:18:48 PM</span></div></div></div></div>
<script>
window.g_useSSR = true;
window.g_initialProps = {};
</script>
<script src="/umi.63dc6bce.js"></script>
</body>
</html>