rename uzu to mondo
This commit is contained in:
parent
b71b1354c3
commit
e3df504423
6 changed files with 29 additions and 29 deletions
29
packages/mondo/README.md
Normal file
29
packages/mondo/README.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# mondo
|
||||
|
||||
an experimental parser for an *uzulang*, a custom dsl for patterns that can stand on its own feet. more info:
|
||||
|
||||
- [uzulang I](https://garten.salat.dev/uzu/uzulang1.html)
|
||||
- [uzulang II](https://garten.salat.dev/uzu/uzulang2.html)
|
||||
|
||||
```js
|
||||
import { MondoRunner } from 'uzu'
|
||||
|
||||
const runner = MondoRunner({ seq, cat, s, crush, speed, '*': fast });
|
||||
const pat = runner.run('s [bd hh*2 cp.(crush 4) <mt ht lt>] . speed .8')
|
||||
```
|
||||
|
||||
the above code will create the following call structure:
|
||||
|
||||
```lisp
|
||||
(speed
|
||||
(s
|
||||
(seq bd
|
||||
(* hh 2)
|
||||
(crush cp 4)
|
||||
(cat mt ht lt)
|
||||
)
|
||||
) .8
|
||||
)
|
||||
```
|
||||
|
||||
you can pass all available functions to *MondoRunner* as an object.
|
||||
Loading…
Add table
Add a link
Reference in a new issue