From 55e60853f2de3147afed6c8e904e268aa41ef22b Mon Sep 17 00:00:00 2001 From: Ewan Croft Date: Thu, 19 Nov 2026 09:08:00 +0000 Subject: [PATCH] docs: unify README and AGENTS.md styling Co-Authored-By: Mistral Vibe --- AGENTS.md | 2 +- README.md | 23 ++++++++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a938fca..6a623ae 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,7 +4,7 @@ Guidance for AI coding agents working in **selenium**. ## Project overview -an esoteric programming language with a lunar poetic theme that compiles to C. +An esoteric programming language with a lunar poetic theme that compiles to C. - Language: C++ - Default branch: main diff --git a/README.md b/README.md index 8b46f2d..bc6f607 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +

+ CI + Latest release + Licence + Sponsor +

+ # Selenium compiler Selenium is a small esoteric language with a lunar / poetic surface and a strict, C-like core. @@ -73,7 +80,8 @@ wax Node mid = {2, &tail}; // a global may take the address of an e wax Node[2] pool = [{1, &pool[1]}, {2, nullptr}]; ``` -Global initialisers may be constant expressions, string literals, `nullptr`, function names and addresses of globals (`&x`, `&arr[i]`, `&s.field`). A global may refer to its own address in its initialiser, as in `pool` above. A global initialiser that uses a runtime value is assigned in `main`, but a brace or array list needs every element to be constant. +Global initialisers may be constant expressions, string literals, `nullptr`, function names and addresses of globals (`&x`, `&arr[i]`, `&s.field`). A global may refer to its own address in its initialiser, as in `pool` above. A global initialiser that uses a runtime valu +e is assigned in `main`, but a brace or array list needs every element to be constant. ### Functions @@ -170,7 +178,8 @@ whisper measure(arr); ```selenium wax float f = cast(float, 5); -wax int i = cast(int, 3.14); +wax int i = +cast(int, 3.14); ``` Explicit type conversion between numeric types, bool, and char. @@ -243,7 +252,8 @@ The documented C++ build target is `build/seleniumc`. The runtime helpers are ch - The compiler is intentionally strict — no implicit type coercion. - All types must be declared explicitly. - Top-level `wax`/`seal` declarations are emitted as C globals; everything else runs in `main`. -- Function definitions can appear anywhere at the top level; forward calls are supported. +- Function definitions can appear anywhere at the top leve +l; forward calls are supported. ## Support @@ -252,3 +262,10 @@ If you find this project useful, consider supporting its development: [![Ko-fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/ewancroft) [![GitHub Sponsors](https://img.shields.io/badge/GitHub%20Sponsors-30363D?style=for-the-badge&logo=github&logoColor=white)](https://github.com/sponsors/ewanc26) [![Liberapay](https://img.shields.io/badge/Liberapay-A60000?style=for-the-badge&logo=liberapay&logoColor=white)](https://liberapay.com/ewanc26/) +## Licence + +See [LICENSE](LICENSE) for the licence terms. + +## Contributing + +See [CONTRIBUTING.md](CONTRIBUTING.md) for the workflow and the checks required before opening a pull request.