Files
rexlang/examples/basics/strings.rex
T
Your NameandClaude Opus 5.5 7cf9727bcd Rename the language from Dino to Rex
Files use .rex, the command is rex, and the crate, runtime prefixes,
docs, editor files and examples all use the new name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:51:23 +01:00

20 lines
429 B
Rexx

func greet(name: string): string {
return "Hello, " + name + "!"
}
func main() {
var name = "Rex"
print(greet(name))
var n = 3
print("n is {n}, doubled {n * 2}, big? {n > 2}")
print("pi is about {3.5 + 0.25}")
print("a" < "b", "abc" == "abc", "x" != "x")
print("tab\there \"quoted\" \{braces}")
print("café ünï")
var s = ""
for i in 0..5 {
s += "{i},"
}
print(s)
}