Files
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

34 lines
595 B
Rexx

func say(msg: string, v: int): int {
print(msg)
return v
}
func add(a, b, c: int): int {
return a + b + c
}
func yes(msg: string): bool {
print(msg)
return true
}
func no(msg: string): bool {
print(msg)
return false
}
func main() {
print("arguments run left to right:")
print(add(say("first", 1), say("second", 2), say("third", 3)))
print("&& and || short-circuit:")
if no("A") && yes("B") {
print("unreachable")
}
if yes("C") || yes("D") {
print("done")
}
var ok = no("E") || yes("F") && yes("G")
print(ok)
}