<?gray ... ?>, includes, and {expr}
Compose ordinary files in shared scope and render expressions inside literal text.
Build with Gray's language, integrated server runtime, execution policies, runnable tutorials, and compiler-generated API declarations.
set $server = http_server();
http_handler($server, "GET", "/hello", fn($request) {
return response_json([
"runtime": "Gray",
"policy": "Live"
]);
});
http_serve($server, "0.0.0.0", 8080);
200 application/json
{
"runtime": "Gray",
"policy": "Live"
}
Create a project and start the development server.
gray new hello-graycd hello-gray && gray rungray dev<?gray
set String $name = "Ada";
?>
Hello, {$name}!
Gray files can combine source and literal output. Expressions inside {...} are rendered in place.
Core syntax and built-in server capabilities.
<?gray ... ?>, includes, and {expr}Compose ordinary files in shared scope and render expressions inside literal text.
Mix typeless values with checked parameters, returns, fields, and storage.
Model state with constructors, methods, visibility, typed records, and JSON encoding.
Use parameterized SQL, typed rows, transactions, and readiness-driven continuation paths.
Opaque encrypted sessions, typed state, CSRF, recent authentication, bounded risk, and redacted events.
spawn, await, cancellation, caches, and source-aware errors share one execution model.
gray fmt, gray lint, and the LSP consume the compiler's grammar.
Run source, ship a standalone artifact, or replace ready workers after validation.
No matching language surface.
Runnable examples checked by the repository test suite.
Session lifecycle, storage adapters, key rotation, and privacy controls.
Declarations generated from the compiler's syntax model.
Loading gray.docs.v1