Bootstrap native + diagnostics changelog
Synthese complete du patch: extension du build natif bootstrap, diagnostics directs branches sur FTL, exemples utilisateur, snapshots et verification.
20
exemples utilisateur ajoutes et compiles.
25
cles
E_BOOTSTRAP_* ajoutees par locale en/fr.
7
gates executes avec succes.
Bootstrap Native
Support ajoute
extract_native_main_return()reconnait maintenant les records simples.- Support des champs comme
p.xetp.y. - Support des sommes de champs, litteraux, constantes et appels pseudo-stdlib deja reconnus.
- Support de records types:
let p: Point = Point { ... }. - Fixture native
tests/bootstrap_native/record_field_sum.vitavec exit code attendu30.
Commande build
- La commande valide reste strictement
vitte build main.vit -o main. - Le raccourci non souhaite
vitte build mainn'est pas active. - Test manuel confirme: sans
.vitechoue, avec.vitreussit.
Diagnostics FTL
cli_error()passe parlocalized_diagnostic_message()etlocalized_diagnostic_hint().diag()dans le parseur AWK bootstrap utilise les messages FTL pour les erreursE_BOOTSTRAP_*.--lang frfonctionne sur les diagnostics directs bootstrap dedump-native-ir,checketbuild.- Resolution robuste du repertoire
locales/depuis le repo, le seed, ou un payload natif temporaire. - Le shell natif genere initialise
diagnostics_lang="${VITTE_LANG:-en}".
Locales
Les fichiers locales/en/diagnostics.ftl et
locales/fr/diagnostics.ftl ont recu les cles bootstrap suivantes.
legacy bootstrap subset diagnostic
legacy bootstrap subset diagnostic hint
E_BOOTSTRAP_FULL_COMPILER_BRIDGE_DISABLED
E_BOOTSTRAP_UNKNOWN_STRING_CONST
E_BOOTSTRAP_UNKNOWN_INT_CONST
E_BOOTSTRAP_EXPECTED_STRING_CONST
E_BOOTSTRAP_EXPECTED_INT_CONST
E_BOOTSTRAP_UNKNOWN_PROC_PREFIX
E_BOOTSTRAP_DUP_PROC_PREFIX
E_BOOTSTRAP_CONST_SIGNATURE
E_BOOTSTRAP_MAIN_SIGNATURE
E_BOOTSTRAP_PROC_SIGNATURE_PARAMS
E_BOOTSTRAP_PROC_SIGNATURE_RETURN
E_BOOTSTRAP_PROC_SIGNATURE
E_BOOTSTRAP_PROC_BODY
E_BOOTSTRAP_PROC_BODY_GIVE
E_BOOTSTRAP_MAIN_BODY
E_BOOTSTRAP_PROC_BODY_INT
E_BOOTSTRAP_PROC_BODY_STRING
E_BOOTSTRAP_TOP_LEVEL
E_BOOTSTRAP_UNCLOSED_PROC
E_BOOTSTRAP_EXPORT
E_BOOTSTRAP_SPACE
E_BOOTSTRAP_VERSION
E_BOOTSTRAP_BANNER
Snapshots Et Fixtures
- Ajout de
tests/bootstrap_native/bad_unknown_const.fr.err.must. - Ajout de
tests/bootstrap_native/cli.build_native_subset.fr.err.must. - Ajout de la couverture FR dans
tools/bootstrap_native_snapshots.sh. - Mise a jour de
tests/bootstrap_native/shell.*.must. - Mise a jour de
tests/bootstrap_native/emission.sha256.must. - Mise a jour de
toolchain/seed/manifest.txt.
20 Exemples Utilisateur
example_01_constant.vitexample_02_literal_sum.vitexample_03_i32_negative.vitexample_04_record_two_fields.vitexample_05_record_three_terms.vitexample_06_typed_record.vitexample_07_string_length.vitexample_08_path_join_length.vitexample_09_arithmetic_add_i64.vitexample_10_utf8_length.vit
example_11_vector_push.vitexample_12_generic_pair_first.vitexample_13_known_native_call.vitexample_14_json_module_count.vitexample_15_string_return_length.vitexample_16_record_negative_field.vitexample_17_record_and_string.vitexample_18_difficult_record_path_arithmetic.vitexample_19_negative_literal_sum.vitexample_20_pair_and_record.vit
Validation
make bootstrap-native-snapshots
make bootstrap-verify
make diagnostics-locales-lint
make diagnostics-ftl-check
make cli-diagnostics-snapshots
make seed-contract-check
make bootstrap-native-drift-check