TheSwanFactory / hclang

Homoiconic C - a universal data format for computation
https://theswanfactory.wordpress.com/2016/12/20/homoiconic-c-a-universal-language-for-code-and-data/
MIT License
4 stars 0 forks source link

Bit Manipulation #201

Open drernie opened 11 months ago

drernie commented 11 months ago

These don't seem to work.

$-.test-fail ““[0b101, 0b010] .& AppendZero” ?“[0b1010, 0b0100]” !“[0b1000, 0b1000]””;“{"total":20,"pass":17,"fail":3}”;
$-.test-fail ““[0b101, 0b010] .| AppendZero” ?“0b10100100” !“0b10000010””;“{"total":21,"pass":17,"fail":4}”;
$-.test-fail ““BitSplitter3 0b10101100” ?“[.head 0b101; .tail 0b01100;]” !“<[(head); (tail);], 0b10101100>””;“{"total":26,"pass":18,"fail":8}”;
drernie commented 11 months ago

Did they ever?

; .AppendZero {0b1 0b0};
; AppendZero
# ((0b1 ((0b0)))...)
; AppendZero()
# 0b10