Skip to content

Latest commit

聽

History

History
37 lines (26 loc) 路 414 Bytes

01-hello-world.md

File metadata and controls

37 lines (26 loc) 路 414 Bytes

Hello World

Create hello.rugo:

puts "Hello, World!"

Run it:

rugo run hello.rugo

Or compile to a native binary:

rugo build hello.rugo
./hello

puts prints a line. print does the same without a newline.

print "Hello, "
puts "World!"

Comments start with #:

# This is a comment
puts "not a comment"

Next: Variables