Your First Program

Your first program in the Ry language.

Running Your First Script

With Ry installed, you're ready to write and run your first program. The "Hello World" is a classic tradition, so let's start there.

Create a File

Open your favorite text editor and create a new file named hello.ry.

Write the Code

Enter the following code into the file. This program uses the built-in out() function to print a line of text to the console.

# hello.ry
out("Hello, World!")
          

Run from the Terminal

Go to the directory where you saved hello.ry and run it using the ry interpreter.

$ ry hello.ry
          

Output

You should see the following output in your terminal:

Hello, World!
          

Congratulations!

You've successfully executed your first Ry script. You are now ready to dive into the basics of the language.

Next: Variables & Types!