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

+6 -6
View File
@@ -1,5 +1,5 @@
use dino::ast::*;
use dino::parser::parse;
use rex::ast::*;
use rex::parser::parse;
fn body_of(src: &str) -> Vec<Stmt> {
let p = parse(src).unwrap_or_else(|d| panic!("{}", d.render("test", src)));
@@ -23,7 +23,7 @@ fn all_examples_parse() {
let mut n = 0;
for entry in std::fs::read_dir(dir).unwrap() {
let path = entry.unwrap().path();
if path.extension().map_or(false, |e| e == "dino") {
if path.extension().map_or(false, |e| e == "rex") {
let src = std::fs::read_to_string(&path).unwrap();
parse(&src).unwrap_or_else(|d| panic!("{}", d.render(path.to_str().unwrap(), &src)));
n += 1;
@@ -190,7 +190,7 @@ fn semicolons_work() {
// ---------- error messages ----------
fn err(src: &str) -> dino::error::Diag {
fn err(src: &str) -> rex::error::Diag {
parse(src).unwrap_err()
}
@@ -239,8 +239,8 @@ fn error_two_statements_on_one_line() {
#[test]
fn render_shows_caret() {
let src = "func main() {\n var x = \n}";
let out = err(src).render("t.dino", src);
assert!(out.contains("t.dino:3:1"), "{out}");
let out = err(src).render("t.rex", src);
assert!(out.contains("t.rex:3:1"), "{out}");
assert!(out.contains("^"), "{out}");
}