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 file called hello.hgl:

출력("안녕하세요, 세계!")

Run it:

hgl interpret hello.hgl

Output:

안녕하세요, 세계!

With a Function

함수 main() {
    출력("Hello from Han!")
}

main()

Compile to Binary

hgl build hello.hgl    # creates ./hello binary
./hello                 # runs natively