june / Kitchen Simulation
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 4 months ago
An example of a kitchen that can take orders.
| 1 | ||:@include: lib/rpn.nv |
| 2 | |
| 3 | ||::(BLT for june and mary) |
| 4 | :vegan: |
| 5 | |
| 6 | ||:pantry: (bread lettuce bacon tomato tempeh) |
| 7 | :menu: BLT |
| 8 | |
| 9 | |:recipe: BLT| |
| 10 | :need: (bread lettuce tomato bacon) |
june / Parser (Skeleton)
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 4 months ago
The skeleton of a symbol stream parser.
| 1 | > "State:" Pending |
| 2 | "Symbols:" 0 |
| 3 | > "State:" Fact |
| 4 | |
| 5 | > "State:" Pending |
| 6 | "Symbols:" $any |
| 7 | > "State:" Left |
| 8 | |
| 9 | > "State:" Left |
| 10 | "Symbols:" 0 |
june / A basic for-each/fold pattern.
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 5 months ago
| 1 | ||:@include: lib/rpn.nv |
| 2 | |
| 3 | |:: push $x to $y| |
| 4 | :stacks: $y $x |
| 5 | |:: pop from $x :stacks: $x $y| |
| 6 | :item: $y |
| 7 | |:: pop from $x? :stacks: $y $z| |
| 8 | :seen: $y $z |
| 9 | |:: pop from $x| |
| 10 | :stack empty: $x |
june / A formatting print rule-set.
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 6 months ago
Supports custom formatting by adding additional rules. (Runs in Serpens.)
| 1 | |:: print? :string: '%d'| :: print a number |
| 2 | |:: print? :string: '%b'| :: print a number :base: 2 |
| 3 | |:: print? :string: '%x'| :: print a number :base: 16 |
| 4 | |:: print? :string: '%s'| :: print a string |
| 5 | |:: print? :string: '{}'| :: print an argument |
| 6 | |:: print? :string: '\n'| :string: 10 |
| 7 | |:: print? :string: '\t'| :string: 9 |
| 8 | |:: print? :string: '\r'| :string: 13 |
| 9 | |:: print? :string: '\0'| :string: 0 |
| 10 | |:: print? :string: $ | :@stdio: write $ |
june / A simple search algorithm.
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 6 months ago
It eats whatever you pass into it.
| 1 | |:search for: $something :collection: $something| |
| 2 | :found: $something |
| 3 | |:search for: $something :collection: $something-else| |
| 4 | :search for: $something |
| 5 | |:search for: $something| |
| 6 | :not found: $something |
| 7 | |
| 8 | ||:search for: red |
| 9 | :collection: (green blue white orange red violet) |
june / Propagators (Draft)
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 6 months ago
A quick demonstration of building propagators from scratch.
| 1 | ||:@include: lib/rpn.nv |
| 2 | |
| 3 | ||:: a = b + c |
| 4 | ||:: d = a + # 1 |
| 5 | ||:: b = 1 |
| 6 | ||:: c = 2 |
| 7 | |
| 8 | |:: $x = $y $op $z| |
| 9 | :: create some cells :names: ($x $y $z) |
| 10 | :: create an operator |
june / Variables and math expressions.
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 6 months ago
An example of adding basic variable bindings and binary math expressions to Nova.
| 1 | ||:: foo = bar |
| 2 | :: bar = baz |
| 3 | :: baz = 2 |
| 4 | :: quux = foo |
| 5 | :: baz = bar + foo |
| 6 | :: baz = baz + quux |
| 7 | :: baz = baz + baz |
| 8 | |
| 9 | |
| 10 | ||:@include: lib/rpn.nv |
june / Greek Salad
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 9 months ago
A small recipe for a Greek salad.
| 1 | |- greek salad -| |
| 2 | - chop |
| 3 | - romaine lettuce |
| 4 | - slice |
| 5 | - red onions |
| 6 | - dice |
| 7 | - cucumbers |
| 8 | - chop |
| 9 | - bell peppers |
| 10 | - cube |
june / Trans Pride Flag
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 9 months ago
A small Nova program to draw the trans pride flag in the playground.
| 1 | || :@include: ( |
| 2 | lib/rpn.nv |
| 3 | lib/nv/meta.nv |
| 4 | lib/platforms/browser_game.nv |
| 5 | lib/platforms/browser_dom.nv |
| 6 | ) |
| 7 | |
| 8 | ||:: create a 400 by 400 canvas |
| 9 | :: draw the trans pride flag |