mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-24 13:59:07 -04:00
mondo
an experimental parser for an uzulang, a custom dsl for patterns that can stand on its own feet. more info:
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:
(speed
(s
(seq bd
(* hh 2)
(crush cp 4)
(cat mt ht lt)
)
) .8
)