News for hackers. Stuff that matters.
Re:Show HN: Luna is a Clojure domain specific language that ... by coltnz on Sunday November 14, 2021 @02:57PM (#29220079)
My approach was simpler, provide some composability.

  ;compiled at run time
  (re/or #"a" (re-pattern "b"))  
  => #"(a|b)a"

  ;compiled at macro time
  (re/or #"a" (re/and #"b")) 
   => #"(a|(b))"

https://github.com/coltnz/re-ext

There are no comments on this comment yet.