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
File renamed without changes.
@@ -21,7 +21,7 @@ struct Player {
|
||||
}
|
||||
|
||||
func main() {
|
||||
var win = gfx.open("Dino", 800, 600)
|
||||
var win = gfx.open("Rex", 800, 600)
|
||||
var player = Player{pos: Vec2{100, 100}, vel: Vec2{200, 150}, size: 32}
|
||||
|
||||
for win.is_open() {
|
||||
@@ -15,7 +15,7 @@ struct Editor {
|
||||
func main() {
|
||||
var doc = shared Document{title: "Notes", text: ""}
|
||||
|
||||
var win = ui.window("Dino Notes", 640, 480)
|
||||
var win = ui.window("Rex Notes", 640, 480)
|
||||
var editor = Editor{doc: doc}
|
||||
|
||||
win.on_key(func(k: ui.Key) {
|
||||
File renamed without changes.
@@ -4,6 +4,6 @@ a true true 97 B a!
|
||||
1 é
|
||||
3 😀
|
||||
h é l 2
|
||||
DINO q plus newline other
|
||||
REX q plus newline other
|
||||
{b: 1, a: 3, n: 2}
|
||||
abc true true true
|
||||
@@ -23,7 +23,7 @@ func main() {
|
||||
for i, ch in "aé😀" { print(i, ch) }
|
||||
print(s[0], s[1], s[3], s[s.len() - 1])
|
||||
var up = ""
|
||||
for ch in "dino" { up += string(ch.upper()) }
|
||||
for ch in "rex" { up += string(ch.upper()) }
|
||||
print(up, 'Q'.lower(), kind('+'), kind('\n'), kind('z'))
|
||||
var counts: map[char, int] = {}
|
||||
for ch in "banana" { counts[ch] += 1 }
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,3 +0,0 @@
|
||||
func main() {
|
||||
print("Hello, Dino!")
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
Hello, Dino!
|
||||
Hello, Rex!
|
||||
@@ -0,0 +1,3 @@
|
||||
func main() {
|
||||
print("Hello, Rex!")
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -10,4 +10,4 @@ sq[4] = 16
|
||||
[] 0
|
||||
[a, b] 2 items
|
||||
[1.0, 2.5, 3.0]
|
||||
dino-lang 4
|
||||
rex-lang 3
|
||||
@@ -55,6 +55,6 @@ func main() {
|
||||
var floats: []float = [1, 2.5, 3]
|
||||
print(floats)
|
||||
|
||||
var words = ["dino", "lang"]
|
||||
var words = ["rex", "lang"]
|
||||
print(words[0] + "-" + words[1], words[0].len())
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -36,13 +36,13 @@ func main() {
|
||||
time.sleep(0.01)
|
||||
print(time.now() - t0 >= 0.01)
|
||||
|
||||
var err4 = os.write_file("/tmp/dino_std_test.txt", "one two\nthree\n\nfour five six\n")
|
||||
var err4 = os.write_file("/tmp/rex_std_test.txt", "one two\nthree\n\nfour five six\n")
|
||||
print(err4)
|
||||
var lines, words, e5 = count("/tmp/dino_std_test.txt")
|
||||
var lines, words, e5 = count("/tmp/rex_std_test.txt")
|
||||
print(lines, words, e5)
|
||||
var l2, w2, e6 = count("/tmp/definitely/not/here.txt")
|
||||
print(l2, w2, e6)
|
||||
print(os.exists("/tmp/dino_std_test.txt"), os.exists("/nope"))
|
||||
print(os.exists("/tmp/rex_std_test.txt"), os.exists("/nope"))
|
||||
print(os.args.len(), os.env("HOME_NOPE_X") == nil)
|
||||
var home = os.env("PATH")
|
||||
if home != nil { print(home.len() > 0) }
|
||||
@@ -1,4 +1,4 @@
|
||||
Hello, Dino!
|
||||
Hello, Rex!
|
||||
n is 3, doubled 6, big? true
|
||||
pi is about 3.75
|
||||
true true false
|
||||
|
||||
@@ -3,7 +3,7 @@ func greet(name: string): string {
|
||||
}
|
||||
|
||||
func main() {
|
||||
var name = "Dino"
|
||||
var name = "Rex"
|
||||
print(greet(name))
|
||||
var n = 3
|
||||
print("n is {n}, doubled {n * 2}, big? {n > 2}")
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
// A ball bouncing around a window, drawn with raylib (https://www.raylib.com).
|
||||
// Needs raylib installed: `dino run bounce.dino`. Space adds a ball, Escape quits.
|
||||
// Needs raylib installed: `rex run bounce.rex`. Space adds a ball, Escape quits.
|
||||
|
||||
import "raylib.h"
|
||||
|
||||
@@ -28,7 +28,7 @@ func new_ball(n: int): Ball {
|
||||
}
|
||||
|
||||
func main() {
|
||||
raylib.InitWindow(WIDTH, HEIGHT, "Dino + raylib")
|
||||
raylib.InitWindow(WIDTH, HEIGHT, "Rex + raylib")
|
||||
raylib.SetTargetFPS(60)
|
||||
var balls = [new_ball(0)]
|
||||
for !raylib.WindowShouldClose() {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user