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 @@ +
+ # 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: [](https://ko-fi.com/ewancroft) [](https://github.com/sponsors/ewanc26) [](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.