gofdocs

Инструменты и native build

Единый CLI gof — run, check, build, test, fmt, mod, doc, bench и расширение VS Code.

У gof уже есть единый CLI:

  • gof run, gof check, gof build, gof test
  • gof fmt, gof mod, gof doc, gof bench

Что означают команды

gof run

Запускает программу через bootstrap execution path.

Watch mode:

gof run --watch program.gof -- --example arg

gof check

gof check program.gof
gof check program.gof --json --stdin

Compile-only validation. Машиночитаемый путь для editor tooling.

gof test

  • executable package targets → compile + execute smoke
  • library package targets → compile-only

gof build

gof build program.gof

gof build --native

gof build program.gof --native

--native пока bootstrap-native path. Executable оборачивает bootstrap evaluator. Финальная цель — direct native code generation.

VS Code editor baseline

Расширение в tools/vscode-gof, установка через Marketplace:

  • .gof file association и syntax highlighting
  • snippets для modules, functions, enums, structs, select
  • compiler-backed diagnostics через gof check --json --stdin
  • # comments, bracket pairs, indentation

Чего пока нет: LSP, debugger, profiler, semantic rename.

Для локальной сборки:

cd tools/vscode-gof
npm install
npm test
npm run package