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:
Your NameandClaude Opus 5.5 committed 2026-11-08 13:51:23 +01:00
1 parent 2f44f09b6a
commit 7cf9727bcd
94 files changed
+858 -858

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
// A small CLI tool: count lines and words in files.
import os
struct Stats {
lines: int
words: int
}
func count(path: string): (Stats, error) {
var text = os.read_file(path)? // ? returns the error to the caller
var stats = Stats{}
for line in text.lines() {
stats.lines += 1
stats.words += line.fields().len()
}
return stats, nil
}
func main() {
var args = os.args
for path in args[1..] {
var s, err = count(path)
if err != nil {
print("{path}: error: {err}")
continue
}
print("{path}: {s.lines} lines, {s.words} words")
}
}