3 ms·
Emacs has a great rx macro that does something like that and is widely used in elisp projects. https://github.com/typester/emacs/blob/master/lisp/emacs-lisp/rx
by axelrosen 8y ago
Emacs has a great rx macro that does something like that and is widely used in elisp projects.
https://github.com/typester/emacs/blob/master/lisp/emacs-lisp/rx.el https://github.com/typester/emacs/blob/master/lisp/emacs-lis...
Though then again the nice (best?) thing about macros is it gets inlined as a string at compile time anyways.
- lispm 8y agofor Common Lisp see https://edicl.github.io/cl-ppcre/#create-scanner2 https://edicl.github.io/cl-ppcre/#create-scanner2