tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

M9 (part 1): tooling — LSP navigation/completion/quick fix, tilc test, tilc fmt

- tilc_db::ide split into hover, nav (go to definition for items,
  constructors, locals and type names; document outline with nested
  constructors/operations/methods), complete (module members after `.`,
  locals before the cursor, scope, prelude, keywords; works mid-edit),
  actions ("insert inferred signature" for pub fns, from the scheme).
- tilc_lsp: definition, documentSymbol, completion (`.` trigger) and
  codeAction requests; protocol-level feature test on a two-module
  package.
- tilc test + std/test (assert, assert_equal): test_* functions of a
  package's test/ modules or a file, each in its own interpreter run;
  tilc_core::runnable/tests shared with `main` checking.
- tilc fmt [--check]: conservative formatter (indentation by line-opened
  brackets and HTML elements, continuation lines, trailing whitespace,
  blank lines; intra-line spacing kept), refusing syntax errors and any
  result whose tokens differ; repository-wide safety/idempotence test,
  fuzzed; CI checks std and tests are formatted.

Part of #11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · 4302b6488b64b7ca3e9759ce2003e62cba272112

Parents 5cb645b

22 fichiers modifiés, 1828 ajouts, 194 suppressions

Acrates/tilc/tests/fixtures/pkg/test/util_test.til+12−0
Acrates/tilc_db/src/ide/actions.rs+145−0
Acrates/tilc_db/src/ide/complete.rs+217−0
Acrates/tilc_db/src/ide/hover.rs+166−0
Acrates/tilc_lsp/tests/features.rs+140−0
Acrates/tilc_syntax/src/format.rs+255−0
Acrates/tilc_syntax/tests/format.rs+50−0
Mcrates/tilc_syntax/tests/fuzz.rs+15−2