june / Accounting Mocks
0 喜歡
0 分支
1 檔案
最後活躍 6 days ago
An example of turning pseudocode into a functional model.
| 1 | |# First, we need to import conditional statements. #| |
| 2 | ||'@include' https://gist.nouveau.community/june/72f7794abbf64eb3890e2715d7e7789b/raw/HEAD/conditional.nv |
| 3 | |
| 4 | |# Let's try something. #| |
| 5 | ||:: test the happy path |
| 6 | :: log in as june |
| 7 | :: transfer 100 from 1234 to 5678 |
| 8 | :: log out |
| 9 | |
| 10 | ||:: test the sad path |
june / Multiple State Machines
0 喜歡
0 分支
1 檔案
最後活躍 1 week ago
An example of turning an isolated state machine into multiple.
| 1 | |# A turnstile, a state machine. #| |
| 2 | |
| 3 | |:state: locked :action: push| :state: locked |
| 4 | |:state: locked :action: coin| :state: un-locked |
| 5 | |
| 6 | |:state: un-locked :action: push| :state: locked |
| 7 | |:state: un-locked :action: coin| :state: un-locked |
| 8 | |
| 9 |
june / Scoped Propagators
0 喜歡
0 分支
1 檔案
最後活躍 2 weeks 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 ; |
上一頁
下一頁