100 lines
3.8 KiB
HTML
100 lines
3.8 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<link rel="stylesheet" href="index.css?v=1">
|
||
|
|
<title>Solstice</title>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="main">
|
||
|
|
<div class="box" id="main">
|
||
|
|
<div class="hero-content">
|
||
|
|
<img src="https://sols.dev/solstice.svg" width="200" height="200"></img>
|
||
|
|
<h1>Solstice</h1>
|
||
|
|
<p class="big">A programming language focused on ease of use.</p>
|
||
|
|
<button onclick="window.location.href = 'https://chsp.au/max/solstice'">View Code</button>
|
||
|
|
<button onclick="window.location.href = '#installing'">Install</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="box">
|
||
|
|
<h2>Features</h2>
|
||
|
|
<div class="feature-row">
|
||
|
|
<div class="feature">
|
||
|
|
<h3>Small and fast</h3>
|
||
|
|
<p>Solstice's compiler is 1216 lines of C++, and compiles code at lightning speed.</p>
|
||
|
|
</div>
|
||
|
|
<div class="feature">
|
||
|
|
<h3>Built on Ground</h3>
|
||
|
|
<p>Solstice compiles for the Ground VM, a speedy, light platform.</p>
|
||
|
|
</div>
|
||
|
|
<div class="feature">
|
||
|
|
<h3>Simple syntax</h3>
|
||
|
|
<p>Solstice feels familiar, but light. There's no quirks in the syntax, just pure bliss.</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="box">
|
||
|
|
<h2>Examples</h2>
|
||
|
|
<div class="feature-row">
|
||
|
|
<div class="feature">
|
||
|
|
<h3>92nd Fibonacci Number</h3>
|
||
|
|
<pre class="code">
|
||
|
|
<code>a = 0
|
||
|
|
b = 1
|
||
|
|
n = 92
|
||
|
|
|
||
|
|
i = 0
|
||
|
|
|
||
|
|
while i != n {
|
||
|
|
temp = a + b
|
||
|
|
a = b
|
||
|
|
b = temp
|
||
|
|
|
||
|
|
i = i + 1
|
||
|
|
}
|
||
|
|
|
||
|
|
puts a</code></pre>
|
||
|
|
</div>
|
||
|
|
<div class="feature">
|
||
|
|
<h3>Guess The Password</h3>
|
||
|
|
<pre class="code">
|
||
|
|
<code>accessNotGranted = true
|
||
|
|
|
||
|
|
while accessNotGranted {
|
||
|
|
password = input("Password: ")
|
||
|
|
if password == "dingus" {
|
||
|
|
accessNotGranted = false
|
||
|
|
}
|
||
|
|
if password != "dingus" {
|
||
|
|
puts "Incorrect password!"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
puts "Welcome!"</code></pre>
|
||
|
|
</div>
|
||
|
|
<div class="feature">
|
||
|
|
<h3>Count to 100,000</h3>
|
||
|
|
<pre class="code">
|
||
|
|
<code>number = 0
|
||
|
|
|
||
|
|
while number < 100000 {
|
||
|
|
number = number + 1
|
||
|
|
puts number
|
||
|
|
}</code></pre>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="box" id="installing">
|
||
|
|
<h2>Getting Solstice</h2>
|
||
|
|
<p>Solstice is an in-development language, and you can find the latest code on the <a href="https://chsp.au/max/solstice">Git repository</a>. At present, the stability of Solstice is questionable, so don't trust it to handle your nuclear codes or anything like that yet.</p>
|
||
|
|
<p>This script will automatically build and install Solstice and Ground from source for you, or update them if they are already installed.</p>
|
||
|
|
<pre class="code" style="overflow-y: auto">
|
||
|
|
<code>bash -c "$(curl -fsSL https://sols.dev/install.sh)"</code></pre>
|
||
|
|
<p>If you find any issues while trying Solstice, please report them <a href="https://chsp.au/max/solstice/issues">here</a>! Solstice needs all the help it can get.</p>
|
||
|
|
<p>Stable-ish builds are avaliable in <a href="https://chsp.au/max/solstice/releases">the releases tab</a> of the Git repository. These builds are likely to be more stable, but don't treat them as a stable branch yet.</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|