Files
strudel/packages/uzu
2025-03-15 10:35:22 +01:00
..
2025-03-15 10:29:23 +01:00
2025-03-15 10:29:23 +01:00
2025-03-15 10:29:23 +01:00
2025-03-15 10:35:22 +01:00
2025-03-15 10:29:23 +01:00

uzu

an experimental parser for an uzulang, a custom dsl for patterns that can stand on its own feet. more info:

import { UzuRunner } from 'uzu'

const runner = UzuRunner({ 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
)

you can pass all available functions to UzuRunner as an object.