v0.3.4: set and say

This commit is contained in:
Luxferre
2026-07-07 10:54:04 +03:00
parent 9296bf2984
commit b1cd35d0ca
5 changed files with 24 additions and 4 deletions
+3 -1
View File
@@ -1,7 +1,8 @@
# Clyx standard library (in addition to [ :: readf src ])
# Created by Luxferre in 2026, released into the public domain
:: is [ next defw ]
:: is [ next defw ] # alias to :: for constant definitions
:: set [ next next defw ]
:: source [ next src ]
:: then [ ]
:: _start [ next _main swap defw ]
@@ -20,6 +21,7 @@
:: cr [ 10 emit ]
:: space [ 32 emit ]
:: puts [ uncons while [ emit uncons ] drop ]
:: say [ next puts cr ]
:: sqrt [ 0.5 ^ ]
:: tan [ dup sin swap cos / ]
:: cotan [ dup cos swap sin / ]