Quick Start

Hello World

Create a file named hello.flow:

print "Hello, World!"

Run it:

flow run hello.flow

Basic Operations

FlowLang supports basic arithmetic and variables:

let x = 10
let y = 20
let sum = x + y
print sum

HTTP Request Example

One of FlowLang's powerful features is built-in HTTP support:

let response = http_get("https://api.github.com")
print response

Working with Functions

Define and use functions in FlowLang:

func greet(name) {
  return "Hello, " + name
}

let message = greet("FlowLang")
print message

Control Flow

Use if statements and while loops for control flow:

let count = 5
while count > 0 {
  print count
  let count = count - 1
}

let age = 18
if age >= 18 {
  print "Adult"
}

Next Steps

Explore the full language specification and built-in functions to unlock the full power of FlowLang.