From eb4850709116b72833945ec5a950300254d64c95 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Sun, 18 Jan 2026 14:28:21 +1100 Subject: [PATCH] Update docs --- docs/index.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/index.html b/docs/index.html index 0ae06aa..fa51920 100644 --- a/docs/index.html +++ b/docs/index.html @@ -125,6 +125,14 @@ while number < 10 { +
+

Inline Ground

+

Since Solstice is built atop Ground, you can write Ground code inside Solstice code, usually to wrap a Ground function for the Solstice standard library.

+

Inline Ground is not vetted by the type checker. Be careful when modifying existing variables with inline ground! The type checker is not aware of any values created inside inline Ground.

+

If you would like the Solstice type checker to be aware of values created by Ground, initialise a variable with a blank of whatever type is made by Ground.

+

Variable names are the same inside inline Ground as they are in Solstice. Read Ground's syntax guide for an understanding on how it should work here.

+
ground {
set &x 5
println $x
}
+

Built In Functions

@@ -132,6 +140,16 @@ while number < 10 {

Gets user input from the console until the next line. The msg is used as a prompt for the user. Returns inputted characters from the console.

guess = input("What is the password? ")
if guess == "password123" {
puts "Good job!"
}
+ +
+

println(string msg) string

+

Prints a string to the console. Appends a new line afterwards.

+
println("Hello, World!")
+