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 { +
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
}
+ 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!"
}
Prints a string to the console.
+print("Hello, World!")
+ Prints a string to the console. Appends a new line afterwards.
+println("Hello, World!")
+