ReadableRegex.jl
kbnf
ReadableRegex.jl | kbnf | |
---|---|---|
3 | 6 | |
183 | 0 | |
- | - | |
0.0 | 0.0 | |
almost 2 years ago | about 1 year ago | |
Julia | ||
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.
ReadableRegex.jl
-
A portable, modern regular expression language
I find something like this a lot more readable:
https://github.com/jkrumbiegel/ReadableRegex.jl
It is in Julia, but if you have it installed locally it’s just a few taps away. You can even generate the regex, and use that in Python and just add the ReadableRegex in a comment nearby.
- Learn RegEx step by step, from zero to advanced
-
luna is a Domain specific language that translates to regex. It's an attempt to make regex more readable.
Looks kinda like https://github.com/jkrumbiegel/ReadableRegex.jl
kbnf
- Ask HN: Please Review My Metalanguage
- Please Review My Metalanguage
-
A portable, modern regular expression language
The fundamental problem comes from assigning meaning to whitespace (in this case, concatenation). I had the same issues when developing KBNF ( https://github.com/kstenerud/kbnf/blob/master/kbnf.md ) which operates in a closely related space.
In early development, I took a number of cues from regex that turned out to be bad ideas, in particular using whitespace for concatenation (which all BNF dialects seem to do).
Switching to '&' for concatenation fixed it and made things a lot clearer, as it would also do for Pomsky:
'Hello' & ' '+ & ('world' | 'pomsky')
-
Ask HN: Please help me by reviewing KBNF
Hi everyone! Merry Christmas and happy new year!
I'm making a modernized BNF-style metalanguage that supports grammars for text and binary formats, but unless there's some kind of outside review, I won't find any blind spots I have until long after release.
If you have experience in grammars or protocols (text or binary), could you take a quick look?
Note: I'm not aiming for perfect expressivity; just 80-90% of use cases without making things overcomplicated so that it can be used descriptively in documentation.
https://github.com/kstenerud/kbnf/blob/master/kbnf.md
-
Social media may prevent users from reaping creative rewards of profound boredom
Boredom is what led to pretty much every project I've ever done. I usually have a list in my head of things that could be made better, but they never come to anything until I have a lengthy period of nothing to do.
Latest example: I had to take all my vacation time this year or else I'd lose it. I got so bored that I built this over the past weeks: https://github.com/kstenerud/kbnf
What are some alternatives?
pyparsing - Python library for creating PEG parsers
ReadingQuarkXpress - Some code to read certain Quark Xpress files
iregex - A way to write regex with objects instead of strings.
rx - Standalone version of Emacs' rx macro
common-regex - Most common regex
hfst - Helsinki Finite-State Technology (library and application suite)