june / Scoped Propagators
0 likes
0 forks
1 files
Last active 2 days ago
A small modification to the original propagator code that adds scopes.
| 1 | || :@include: lib/rpn.nv |
| 2 | |
| 3 | ||:: ( |
| 4 | a = b + c ; |
| 5 | var c ; |
| 6 | a = 10 ; |
| 7 | b <- 20 ; |
| 8 | c <- 30 ; |
| 9 | { |
| 10 | a = b - c ; |
june / Propagators
0 likes
0 forks
1 files
Last active 2 days ago
An implementation of propagators in Nova.
| 1 | || :@include: lib/rpn.nv |
| 2 | |
| 3 | || :: declare variables :: (a b c d) |
| 4 | :: c = b * a |
| 5 | :: d = c + a |
| 6 | :: a <- 3 |
| 7 | :: b <- 2 |
| 8 | |
| 9 | |:: $x <- $y| |
| 10 | :: set $x to $y |
Newer
Older