Getting started
This tutorial walks you through your first Gofra program. By the end, you will have compiled and run a working binary.
Not installed yet?
See Install Gofra first.
Step 1: write a program
Create hello.gof:
#include "std"
func void main[]
"Hello, World!" println
end
Step 2: compile and run
gofra run hello.gof
You should see:
Hello, World!
What just happened
-
#include "std"includes requiredprintln -
func void main[]declares the entry point. "Hello, World!"pushes a string onto the stack.printlnpops it and writes it to stdout.