- Bit operators & | ^ ~ << >> and their op= forms (Go precedence),
plus hex, binary and octal literals (0xff, 0b1010, 0o755)
- defer stmt / defer { ... }: runs when the block ends, last first,
also on return, ?, break and continue
- List methods insert, remove, clear, contains, index_of, reverse,
sort and sort_by (stable merge sort)
- rand module: int(a, b), float(), seed(n)
- assert(cond[, msg]) and `rex test`, which runs each test_ function
in its own process
- rex.toml marks a project's top folder: imports count from there
- Docs, formatter, LSP completions and editor grammars updated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Leading dots go up one folder less than their count (.. is one up, ...
is two). The language server index and formatter understand them, and a
missing file is reported with its real path.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Editor diagnostics and 'rex check' no longer report a missing main:
the file may be a module other files import. 'rex build' and 'rex run'
still need it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The header's folder was an empty path there, so a bare -I swallowed the
'-' (stdin) argument and cc failed with 'no input files'. Pass the
header's absolute folder instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Structs from C headers get their own table names, so raylib.rex can
wrap "raylib.h" and still have its own Color. Ignore Opcode's
.opcode file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
import "zlib.h" reads the header (cc -E + a small C declaration
parser), links via pkg-config or link "name", and builds .c/.cpp
files next to the program. C structs become Dino structs, pointers
become pointer types (nil = NULL), T* parameters take variables or
lists. Adds dino header, editor completion/hover for C names,
docs chapter 13, a raylib example, and tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>