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>
This commit is contained in:
1 parent
2f44f09b6a
commit
7cf9727bcd
94 files changed
+858
-858
No files matched your search
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
||||
Reference in new issue
Block a user