Q+ 文档

Q+ Language

English · Quick start · Language guide

Q+ is a statically typed systems/application language with a self-hosted compiler, a bytecode VM, and a clean standard library. This repository contains the language only — the 另一产品线 kernel and OS services are a separate closed-source product line.

Quick start (Linux x86-64, gcc)

tools/build.sh          # builds build/bqvm and self-hosts build/qboot.qbc
build/bqvm --timeout-ms 0 build/qboot.qbc src/examples/arith_sum.q -o <tmp>/arith_sum.qbc
build/bqvm <tmp>/arith_sum.qbc

v1.30.0-dev 新特性

Editor support

发布包支持的 VS Code 扩展为 0.6.0(支持组件、随发布包分发;scripts/validate.sh --integration 190 checks ALL PASS);editors/vscode 是扩展源码。离线 LSP(qplus-lsp,stdio JSON-RPC,无网络/ 第三方运行时)实现 LSP v1.0 子集 + 0.6 编辑特性:符号/工作区符号、跳转定义、引用、重命名 (prepareRename)、签名帮助、语义 token、hover/completion、code action(安全编译诊断 quick fix、 organize imports、format document)、inlay hint、document link、code lens、workspace folders、 executeCommand,以及编译器/运行期/AOT 诊断;格式化由扩展自身提供。未实现:call hierarchy、 code action/inlay hint/document link 的 resolve 阶段、安全 quick fix 之外的复杂自动修复。

可选/开发版 LSP 组件(均不在语言 tar、未发布 Marketplace、不是受支持发布组件): 0.7.0/0.8.0 为更早 dev 线;0.12.0 为最新 optional/dev .vsix(0.9.0/0.10.0/0.11.0 为更早 dev 线)。发布树 VS Code 源码为 0.6.0; dev 组件能力在正式发布收编前不作为已发布特性宣称。

.vsix 包由扩展源码按需构建(scripts/package.sh,需要 Node.js/npm),不提交到仓库;安装/打包 见扩展 README。

Community, governance and releases

状态:v1.30.0-dev 是发布候选,NOT PUBLISHED。 OS SDK 1.18.0 是外部原型(29/29 tests、14 PASS/2 PARTIAL/4 BLOCKED、fuzz 7 组 339、api_stability 128/0、examples 5/5;0.x 非稳定、不属于 本发布包);LSP 0.6.0 为支持组件,0.12.0 为最新 optional/dev(0.7/0.8 为更早 dev 线;不在 tar、未发布 Marketplace)。

Layout

Status

Q+ Language v1.21.0-dev, language specification v4.52. The reference compiler is self-hosting and produces a deterministic qboot.qbc; the VM and AOT backend share one formal runtime-error model and a checked integer matrix (see CHANGELOG 1.21.0-dev).

Maintainer

Q+ Language is maintained by 如东星瀚科技有限公司 (Rudong Xinghan Technology Co., Ltd.), brand 星瀚 / Xinghan. The 另一产品线 kernel is a separate closed-source product line.

License

Apache License 2.0 (see LICENSE). Copyright 2026 如东星瀚科技有限公司 (Rudong Xinghan Technology Co., Ltd.). The 另一产品线 kernel is a separate closed-source product line.

Platform support (1.4 dev)

Docs

← Q+ Hub