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 |
electricwah / latest-compiler-progress.nv
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 7 months ago
| 1 | || '@include' (lib/platforms/browser_dom.nv lib/math.nv) |
| 2 | |
| 3 | || :DOM: ( <query #code-actions <@after #out or textarea id = out value = [] ) |
| 4 | | :: output :current dom element: $out? | |
| 5 | :@js: $out.value += (stacks['final out'].map(x=>x.join(' ')).toReversed().join('\n')+'\n'); delete stacks['final out']; |
| 6 | |
| 7 | | :: breakpoint | |
| 8 | | :: breakpoint | :@js: me.gas = 0; |
| 9 | |
| 10 | | :: get cause 1 | |