Commit graph

4565 commits

Author SHA1 Message Date
Felix Roos
d5ef686fe0
mondo: sicp 100 2025-04-04 00:45:00 +02:00
Felix Roos
d4733a30ab
mondo: add half interval method example 2025-04-03 17:30:03 +02:00
Felix Roos
989bd0990e
mondo: let expressions 2025-04-03 17:01:36 +02:00
Felix Roos
60d09adb44
mondo: more tests 2025-04-02 22:33:18 +02:00
Felix Roos
b2588e8c93
fix: lint 2025-04-02 22:11:06 +02:00
Felix Roos
39d2784441
mondo: more sicp tests
+ support special form for function def (might remove later)
+ support multiple expressions in fn body
+ support lexical scoping
2025-04-02 22:09:17 +02:00
Felix Roos
aa70246afc
mondo: more sicp 2025-04-01 23:24:47 +02:00
Felix Roos
f6ffdd6ae6
mondo: move +- to ops
+ add "raw" to parsed pairs
+ implement match + if
+ add more sicp examples
2025-04-01 22:31:42 +02:00
Felix Roos
077aac1888
mondo: add some examples from sicp book 2025-04-01 21:50:03 +02:00
Felix Roos
94a3a60e49
mondo: remember pair locations
+ allow passing a scope to MondoRunner.run
+ make def a side effect
+ proper lambda with multiple args + closure
2025-04-01 21:49:28 +02:00
Felix Roos
f2372e7a41
mondo: refactor evaluate function into bits 2025-03-30 17:55:37 +02:00
Felix Roos
a0fb8fb37f
mondo: def node 2025-03-30 11:43:01 +02:00
Felix Roos
b4027fd92a
fix: mondo dont mutate (breaks lambdas) 2025-03-30 11:42:50 +02:00
Felix Roos
c9cafa37fd
mondo: improve mondo package api + update readme 2025-03-29 21:33:51 +01:00
Felix Roos
2e017e46f9
trim readme 2025-03-29 20:17:09 +01:00
Felix Roos
c9f58220a3
remove minor change 2025-03-29 19:55:29 +01:00
Felix Roos
e9de45993e
signal: remove signal synonyms for now 2025-03-29 19:54:04 +01:00
Felix Roos
6b2b8b5124
fix: test 2025-03-26 09:30:49 +01:00
Felix Roos
64a6dacc1e
mondo: patternable function names 2025-03-26 09:27:02 +01:00
Felix Roos
1738e4d538
fix: lint 2025-03-26 03:55:54 +01:00
Felix Roos
abc7a1e48d
mondo: this is the way 2025-03-26 03:55:00 +01:00
Felix Roos
7716fdb98e
mondo: refactor
- rename MondoRunner.call => .evaluate
- can now evaluate leafs
- remove .( because it's confusing and half baked
- support (.) as id function
2025-03-26 03:22:23 +01:00
Felix Roos
2938bfd88f
mondo: add highly impractical .(. notation for local infix application 2025-03-26 02:46:26 +01:00
Felix Roos
222e479e30
mondo: more docs 2025-03-23 23:18:57 +01:00
Felix Roos
92b5b6538f
mondo: improve doc 2025-03-23 23:12:52 +01:00
Felix Roos
3a19e23473
mondo: doc 2025-03-23 22:49:56 +01:00
Felix Roos
dd5743ab8c
mondo: bring back $ for stacking 2025-03-23 22:49:23 +01:00
Felix Roos
51e3aa257c
mondolang function for mondo repl + fix rests 2025-03-23 22:49:03 +01:00
Felix Roos
5eabcf0618
mondo mode for StrudelMirror / repl / mini repl 2025-03-23 22:47:33 +01:00
Felix Roos
6d21456423
mondo: allow # character in plain values (for sharps) 2025-03-23 11:18:18 +01:00
Felix Roos
bca16cdf99
mondo: rename resolve_ -> desugar_ 2025-03-22 23:51:23 +01:00
Felix Roos
492271d786
mondo: support $ tidal style 2025-03-22 23:28:57 +01:00
Felix Roos
f71db4aeed
mondo: flip pipe order: now pining to the end of the function... 2025-03-21 23:50:14 +01:00
Felix Roos
5d4ef46ac7
mondo cleanup 2025-03-21 22:43:39 +01:00
Felix Roos
bd93e44154
mondo: fix combination of | and , 2025-03-21 22:34:53 +01:00
Felix Roos
6fd89ddee7
mondo: add | and ? 2025-03-21 11:10:43 +01:00
Felix Roos
cf1f4ec35c
fix: patterns without structure would error on draw 2025-03-21 11:10:25 +01:00
Felix Roos
12bb82d295
add chooseIn + chooseOut 2025-03-21 11:10:06 +01:00
Felix Roos
c33cfc78c5
waveform aliases: tri, sqr, saw, sin 2025-03-20 21:19:47 +01:00
Felix Roos
ac6472a43a
mondo: mondo as minilang (inactive) 2025-03-20 21:19:21 +01:00
Felix Roos
989fdfa20b
transpiler: add mechanism to register custom mini language 2025-03-20 21:18:32 +01:00
Felix Roos
05ae31838e
add sin sqr cos aliases 2025-03-20 18:01:41 +01:00
Felix Roos
c691916cbf
mondo: generic bracket names + simplify call handler + refactor mondough 2025-03-20 17:55:40 +01:00
Felix Roos
e16295623d
mondo: use stepcat for curly braces 2025-03-20 14:09:32 +01:00
Felix Roos
9626f3cc9a
mondo add % for pace 2025-03-20 13:24:31 +01:00
Felix Roos
432e8dcccc
mondo: support ! and @, also express seq and cat with stepcat 2025-03-20 13:15:48 +01:00
Felix Roos
d2e93a99f1
fix: lint 2025-03-20 10:24:22 +01:00
Felix Roos
3505732afa
mondo: add .. operator 2025-03-20 09:34:47 +01:00
Felix Roos
55a5f1d62a
transpiler cleanup 2025-03-20 09:10:54 +01:00
Felix Roos
3657e2fd65
mondo: change default markcss 2025-03-20 09:10:45 +01:00