yumaikas / quotationBuilder.zig
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 weeks ago
| 1 | const QuotationBuilder = struct { |
| 2 | symbols: std.ArrayList(vm.Symbol), |
| 3 | ops: std.ArrayList(vm.Op), |
| 4 | literals: std.ArrayList(vm.Value), |
| 5 | alloc: std.mem.Allocator, |
| 6 | postQuoteSymbol: ?vm.Symbol, |
| 7 | |
| 8 | fn idxForLiteral(self: *QuotationBuilder, toFind: struct {vm.Value, *bool }) !u16 { |
| 9 | const literal, const found = toFind; |
| 10 | for (self.literals.items, 0..) |i,idx| { |
yumaikas / sitegen_no_content.stk
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 3 months 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 |
yumaikas / playground-safe-cake.nv
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 10 months ago
| 1 | |:: To $make $some $recipe| :recipe: $make $some $recipe |
| 2 | |
| 3 | |:: Search the pantry for $ingredient :pantry: $ingredient| |
| 4 | :: Place $ingredient on the countertop |
| 5 | |
| 6 | |:: Search the pantry for $ingredient :pantry: $someOtherIngredient| |
| 7 | :: Set $someOtherIngredient aside |
| 8 | :: Search the pantry for $ingredient |
| 9 | |
| 10 | |:: Search the pantry for $ingredient :recipe: $make $some $recipe?| |
Новее
Позже