Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hello, World!

Create a new file on your computer (preferably in a new folder) named main.sols. In the file, write the following:

puts "Hello, World!"

Save the file, then run in your terminal:

solstice main.sols

Solstice will run the file for you, which should print Hello, World! to the console.

Here’s what it does:

  • puts: Stands for “put something”. It’s Solstice’s built in “please print out this thing’s current state” operator.
  • "Hello, World!": A string. A string is a collection of characters. In Solstice, you denote a string by surrounding your text with double quotes (").

Next up: using variables!