regexp-Brzozowski
ocaml-re
regexp-Brzozowski | ocaml-re | |
---|---|---|
1 | 2 | |
12 | 231 | |
- | 3.5% | |
3.9 | 8.6 | |
7 months ago | 21 days ago | |
Coq | OCaml | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
regexp-Brzozowski
-
Show HN: Regex Derivatives (Brzozowski Derivatives)
Thanks for sharing. I am not familiar with Agda. Will take a look. There is somewhat similar code in COQ: https://github.com/coq-community/regexp-Brzozowski
ocaml-re
-
Show HN: Regex Derivatives (Brzozowski Derivatives)
Note that it's not difficult to (lazily or not) build a NFA using derivatives as well (with Antimirov's construction).
[1]: https://github.com/ocaml/ocaml-re/
-
Super-expressive – Write regex in natural language
I'm familiar with standard (compact) regex syntax, but I've been using the above syntax recently in a couple small places. I'm a bit on the fence as to which is "better". The compact syntax is, of course, more compact. I think it's a very similar comparison between APL (which I've not used) and most other common programming languages.
One advantage of the expanded syntax is that it's a bit nicer to incorporate a string variable, e.g. "str some_string" vs. "/#{Regexp.escape(some_string)}/" (to borrow Ruby's syntax).
[1] https://github.com/ocaml/ocaml-re
What are some alternatives?
analysis - Mathematical Components compliant Analysis Library
google-drive-ocamlfuse - FUSE filesystem over Google Drive
math-comp - Mathematical Components
recross-coq - Regexp engine in Coq for solving regexp crosswords
mcilroy-regex - Doug McIlroy's C++ regular expression matching library
brzozowski - Brzozowski derivative python sketch
super-expressive - 🦜 Super Expressive is a zero-dependency JavaScript library for building regular expressions in (almost) natural language
re1-rust - A port of re1, Russ Cox’s simple, virtual machine–based regular expression engine
agda-regexp-automata - Formalization of Regular Languages in Agda: regular expressions, finite-state automata, proof of equivalence, proof of the pumping lemma.
.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.