Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/mk/visor-language.mk # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / mk / visor-language.mk` 27 lines ยท 2055 bytes Raw Blame History 1 # Omega language V0 (lane 3) test target (pure seeded OM-2: tests/language/test_language_v0.om, 2 # built against the shipped src/language/*.om). 3 # Build+run from the repo root so the golden file path tests/language/golden/v0.txt resolves. 4 # The test is built from the SHIPPED front end: the same sources `omega` is built from (visor.om, 5 # the shared units, visor_program.om, src/language/*.om; `export fn` is a plain fn, one `om2` 6 # header) with the test, which holds only vectors, checks and a thin adapter over the shipped 7 # entry points, so a bug in src/language/*.om fails it. 8 LANG_TEST_OM_SRCS = src/visor/visor.om $(VISOR_OM_UNITS) src/visor/visor_program.om \ 9 src/language/omega_lex.om src/language/omega_parse.om src/language/omega_lower.om 10 11 $(OUT_DIR)/tests-language/test_language_v0: tests/language/test_language_v0.om $(LANG_TEST_OM_SRCS) $(VISOR_OMC) | $(OUT_DIR)/tests-language 12 (printf 'om2\n'; sed -e '/^om2$$/d' -e 's/^export fn /fn /' $(LANG_TEST_OM_SRCS) tests/language/test_language_v0.om) | $(VISOR_OMC) > $@.tmp.$$$$ && chmod +x $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@ 13 14 .PHONY: test-language 15 test-language: $(OUT_DIR)/tests-language/test_language_v0 16 ./$(OUT_DIR)/tests-language/test_language_v0 17 18 # Parity of the language lane src/language/*.om (lexer, parser, lowering, eval) with the retired 19 # C lane over the hand, golden, session and generated corpora, then its negative controls (every 20 # mutant must be caught). The reference is committed goldens (tests/language/parity_golden), 21 # generated once from the C lane at main commit `3f2c70dc5`; their MANIFEST records the commit, the 22 # generator command and the sha256 of every corpus and golden. Needs no cc and no git history. 23 # It is the qualification of the C-to-OM switch, not part of test-visor-core. 24 .PHONY: test-language-parity 25 test-language-parity: $(VISOR_OMC) 26 LANG_PARITY_WORK=$(abspath $(OUT_DIR))/lang-parity sh tests/language/lang_parity.sh $(abspath $(VISOR_OMC)) 27 LANG_PARITY_WORK=$(abspath $(OUT_DIR))/lang-parity sh tests/language/lang_mutants.sh $(abspath $(VISOR_OMC))