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

+9 -9
View File
@@ -2,12 +2,12 @@
## Splitting a program into files
`import utils` brings in the file `utils.dino` that sits next to your main file. Use its
`import utils` brings in the file `utils.rex` that sits next to your main file. Use its
contents with the module name in front. Only things marked `pub` can be used from outside.
`utils.dino`:
`utils.rex`:
```dino
```rex
pub const SCALE = 10
pub struct Vec2 {
@@ -20,9 +20,9 @@ pub func double(n: int): int { return n * 2 }
func secret() {} // private: only this file can call it
```
`main.dino`:
`main.rex`:
```dino
```rex
import utils
func main() {
@@ -32,7 +32,7 @@ func main() {
}
```
- Folders work too: `import tools.fs` is the file `tools/fs.dino`, used as `fs.name`.
- Folders work too: `import tools.fs` is the file `tools/fs.rex`, used as `fs.name`.
- Fields are private as well unless written `pub x: int`.
- Every file has its own names, so two files can both define `helper`.
- Import loops and missing files are errors. An error message names the file it is in.
@@ -59,7 +59,7 @@ Import them like your own files: `import os`.
`sqrt pow floor ceil round trunc sin cos tan asin acos atan atan2 exp log log10 hypot
min max abs`, and the values `PI` and `E`.
```dino
```rex
import math
func main() {
@@ -79,7 +79,7 @@ func main() {
`upper lower trim split lines fields replace repeat contains starts_with ends_with
index_of to_int to_float`, plus `len()` and slicing.
```dino
```rex
func main() {
var csv = " a, b ,c "
for part in csv.split(",") {
@@ -101,7 +101,7 @@ A list of strings can be joined: `["a", "b"].join("-")`.
## A program that reads input
```dino
```rex
import os
func main() {