Vaguery / klapaucius

A clean, tested, maintainable Push interpreter written in Clojure.
MIT License
31 stars 2 forks source link

type- and router-based stack "combinators" #177

Open Vaguery opened 6 years ago

Vaguery commented 6 years ago

given the first-class nature of both Router and Recognizer items, consider a set of "peek" and "yank" combinators based on pattern-matching.

For example, :code-matching might peek/yank the first item matching a given Recognizer, by popping the top :code item and then pulling all other items routed to the same destination to the top (without routing, of course).