v0.3.2: source, then, _start

This commit is contained in:
Luxferre
2026-07-06 12:52:01 +03:00
parent fafc966480
commit c303bb70b0
5 changed files with 26 additions and 4 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env clyx
# Clyx core implementation test suite
# Created by Luxferre in 2026, released into the public domain
:: _main [
_start [
# 1. Stack Manipulation
"Testing stack operations..." puts cr
@@ -214,6 +214,9 @@ if [
"my_const" [ 99 ] defw my_const 99 = if [ " defw (no-inline) PASS" puts cr ] [ " defw (no-inline) FAIL" puts cr ] # Test defw
:: my_inline [ 100 ]
my_inline 100 = if [ " :: (inline) PASS" puts cr ] [ " :: (inline) FAIL" puts cr ] # Test inline ::
5 then 5 = if [ " then PASS" puts cr ] [ " then FAIL" puts cr ] # Test then
":: source_test_word [ 99 ]" "test_source.clx" writef drop source test_source.clx source_test_word 99 = if [ "test_source.clx" delf " source PASS" puts cr ] [ "test_source.clx" delf " source FAIL" puts cr ] # Test source
" _start PASS" puts cr # Test _start (executed via entry point)
# 11. Host Language Evaluation: hseval
# "Testing host language evaluation..." puts cr