feat: lifetime elision, tooling CI, registry, and LSP locals

Ship the QUALITY_PLAN stretch from ownership through ecosystem: C.1
lifetime elision (bootstrap + selfhost), bux fmt/test/doc CI hooks,
stdlib goldens, package registry (bux search/add), and LSP 0.4
position-sensitive locals with inferred let types. Full-tree format
pass plus Map/Set remove double-free fix.
This commit is contained in:
2026-07-19 16:35:08 +03:00
parent 3eb1ad3a82
commit 53b43b0f79
130 changed files with 20494 additions and 16738 deletions
+5 -5
View File
@@ -5,20 +5,20 @@ import Std::Fmt::{Fmt_Fmt1, Fmt_FmtInt};
func Main() -> int {
PrintLine("=== Json Demo ===");
let s: String = "{\"name\":\"Bux\",\"count\":42,\"items\":[\"a\",\"b\",\"c\"]}";
let j: JsonValue = Json_Parse(s);
PrintLine("Parsed and stringified:");
PrintLine(Json_Stringify(j));
PrintLine("\nAccess fields:");
PrintLine(Fmt_Fmt1("name = {0}", Json_AsString(Json_ObjectGet(j, "name"))));
PrintLine(Fmt_FmtInt("count = {0}", Json_AsNumber(Json_ObjectGet(j, "count")) as int64));
let items: JsonValue = Json_ObjectGet(j, "items");
PrintLine(Fmt_Fmt1("items[0] = {0}", Json_AsString(Json_ArrayGet(items, 0))));
PrintLine(Fmt_Fmt1("items[1] = {0}", Json_AsString(Json_ArrayGet(items, 1))));
PrintLine("\nBuild JSON programmatically:");
var obj: JsonValue = Json_Object();
Json_ObjectSet(&obj, "lang", Json_String("Bux"));
@@ -28,6 +28,6 @@ func Main() -> int {
Json_ArrayPush(&arr, Json_String("safe"));
Json_ObjectSet(&obj, "tags", arr);
PrintLine(Json_Stringify(obj));
return 0;
}