yumaikas / sitegen_no_content.stk
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 days ago
| 1 | site: cmd[ |
| 2 | Array .new >pages |
| 3 | "**/*.pstk" Directory .glob each[ |
| 4 | if[ dup .file? :then pages .push :else void ] |
| 5 | ] |
| 6 | #page: module/extend[ static/style.css: File .slurp >style ] |
| 7 | source-of: fn[ .[ Path .[ "." of[ path name ] relative ] ] ] |
| 8 | dest-of: fn[ .[ |
| 9 | Path .[ |
| 10 | "." of[ path name Path .parse .name ".html" + ] relative |
june / Bin-stack Compiler
0 лайк(-ов)
0 форк(-ов)
4 файл(-ов)
Последняя активность 2 weeks ago
A compiler from a multi-bit-stack VM to C.
| 1 | |:: read a character :@stdio: read| |
| 2 | :end of file: |
| 3 | |:: read a character :@stdio: $x| |
| 4 | :buffer: $x |
| 5 | |:: read a character?| |
| 6 | :@stdio: read |
| 7 | |
| 8 | |:: reverse? :buffer: $x| |
| 9 | :text: $x |
| 10 | |:: reverse| |
june / Graph Traversal
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 2 weeks ago
A basic graph traversal algorithm.
| 1 | ||::( |
| 2 | A - B - C |
| 3 | |
| 4 | check if C is connected to A |
| 5 | ) |
| 6 | |
| 7 | |:: ($A - $B - $C)| |
| 8 | :: ($A -> $B -> $C -> $B -> $A) |
| 9 | |:: ($A - $B)| |
| 10 | :: ($A -> $B -> $A) |
june / Multi-bit-stack VM
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 2 weeks ago
A sketch of a small virtual machine that operates on multiple stacks of bits.
| 1 | ||:: dispatch |
| 2 | |
| 3 | |:: dispatch| :: evaluate :text: " |
| 4 | initial state |
| 5 | 01 11 11 11 |
| 6 | rules |
| 7 | rule |
| 8 | and if |
| 9 | 1 match |
| 10 | else |
Новее
Позже