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

+10 -10
View File
@@ -659,7 +659,7 @@ impl Checker {
if module != self.cur_mod && self.private.contains(key) {
let short = key.rsplit('.').next().unwrap();
return Err(Diag::new(
format!("`{short}` is private to `{module}`; write `pub` in front of it in {module}.dino to share it"),
format!("`{short}` is private to `{module}`; write `pub` in front of it in {module}.rex to share it"),
span,
));
}
@@ -1165,7 +1165,7 @@ impl Checker {
Ok(())
}
/// The Dino type for a C type, if it has one.
/// The Rex type for a C type, if it has one.
fn c_type(&self, lib: usize, t: &CTy) -> Option<Ty> {
Some(match t {
CTy::Void => Ty::Unit,
@@ -1178,7 +1178,7 @@ impl Checker {
})
}
/// Structs from C headers become Dino structs (`raylib.Color`), converted at calls.
/// Structs from C headers become Rex structs (`raylib.Color`), converted at calls.
fn register_c_structs(&mut self) {
for li in 0..self.clibs.len() {
let prefix = self.clibs[li].prefix.clone();
@@ -1248,7 +1248,7 @@ impl Checker {
return Err(Diag::new(format!("`{}` has no function `{name}`{hint}", l.header), name_span));
};
if let Some(why) = &f.problem {
return Err(Diag::new(format!("`{name}` can't be called from Dino: it {why}"), name_span));
return Err(Diag::new(format!("`{name}` can't be called from Rex: it {why}"), name_span));
}
if args.len() != f.params.len() {
let names: Vec<String> = f
@@ -1325,7 +1325,7 @@ impl Checker {
}
CTy::Ptr { to, konst } => {
let Some(inner) = self.c_type(lib, to) else {
return Err(Diag::new(format!("{what} has a type Dino can't pass"), a.span));
return Err(Diag::new(format!("{what} has a type Rex can't pass"), a.span));
};
if is_nil {
return null();
@@ -1349,7 +1349,7 @@ impl Checker {
let h = self.expr(a, Some(inner))?;
if h.ty == Ty::list(inner) {
if matches!(inner, Ty::Struct(_)) {
return Err(Diag::new(format!("{what} wants C structs in a row; a Dino list of structs can't be passed"), a.span));
return Err(Diag::new(format!("{what} wants C structs in a row; a Rex list of structs can't be passed"), a.span));
}
return Ok((h, CArg::Buffer));
}
@@ -1376,7 +1376,7 @@ impl Checker {
}
CTy::Num(_) | CTy::Struct(_) => {
let want = self.c_type(lib, pt).unwrap();
// a C `char` takes a Dino character: `'a'`
// a C `char` takes a Rex character: `'a'`
if matches!(want, Ty::Num(Num::I8 | Num::U8)) {
let h = self.expr(a, Some(want))?;
if h.ty == Ty::Char {
@@ -1386,7 +1386,7 @@ impl Checker {
}
Ok((self.expr_as(a, want)?, CArg::Value))
}
CTy::Void | CTy::Unsupported(_) => Err(Diag::new(format!("{what} has a type Dino can't pass"), a.span)),
CTy::Void | CTy::Unsupported(_) => Err(Diag::new(format!("{what} has a type Rex can't pass"), a.span)),
}
}
@@ -2462,7 +2462,7 @@ impl Checker {
let owner_mod = module_of(owner);
if owner_mod != self.cur_mod && self.private.contains(&format!("{owner}.{field}")) {
return Err(Diag::new(
format!("field `{field}` is private to `{owner_mod}`; write `pub` in front of it in {owner_mod}.dino to share it"),
format!("field `{field}` is private to `{owner_mod}`; write `pub` in front of it in {owner_mod}.rex to share it"),
span,
));
}
@@ -3409,7 +3409,7 @@ impl Checker {
&& self.ifaces.values().any(|i| i.methods.iter().any(|(n, _, _)| n == name));
if owner_mod != self.cur_mod && !via_rule && self.private.contains(&format!("{owner}.{name}")) {
return Err(Diag::new(
format!("method `{name}` is private to `{owner_mod}`; write `pub` in front of it in {owner_mod}.dino to share it"),
format!("method `{name}` is private to `{owner_mod}`; write `pub` in front of it in {owner_mod}.rex to share it"),
name_span,
));
}