june / Variables and math expressions.

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 1759255931
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 / Viznut.

0 beğeniler
0 çatallar
3 dosyalar
Son aktivite 1747970823
This is a full implementation of a Viznut pattern generator, including a small windowing framework and a full stack machine DSL.
1 |:push: :: $x|
2 :: push $x
3 |:push:|
4
5 |:set: :: $name :data: $value|
6 :: set $name $value
7 |:set: :: $name|
8 :error: stack underflow
9
10 |:get: :: $name|
Daha yeni Daha eski