rosie
KotlinSpirit
rosie | KotlinSpirit | |
---|---|---|
4 | 3 | |
- | 1 | |
- | - | |
- | 7.6 | |
- | 24 days ago | |
Kotlin | ||
- | MIT License |
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.
rosie
-
I created a library for parsing text in Kotlin. Better than regular expressions. What do you think?
I think you'd be better served to try to port Rosie Pattern Language (https://gitlab.com/rosie-pattern-language/rosie) to Kotlin than to try to roll your own. There are definite corner cases in RegEx (sounds like you've already hit some) where the asympototic performance is so large that the code is practically unrunnable. Rosie addresses several of those cases.
-
Is the regex crate a bottleneck in your program? If so, can you share the details?
I had to spend a lot of time clicking through links to finally find an example: https://gitlab.com/rosie-pattern-language/rosie/blob/master/rpl/date.rpl
-
Ask HN: What small library or tool do you want that doesn’t exist?
Something could be based on the "Rosie Pattern Language"[0]. There is already a parser for en_US/en_EU dates[1], which should be simple to extend to date ranges.
[0]: https://gitlab.com/rosie-pattern-language/rosie/-/blob/maste...
[1]: https://gitlab.com/rosie-pattern-language/rosie/blob/master/...
-
Parsing Tools
Maybe something like Rosie?
KotlinSpirit
- I created a library for parsing text in Kotlin. Better than regular expressions. What do you think?
-
I created a library for parsing text in Kotlin. Better than regular expressions.
You can check one of the tests here.https://github.com/tiksem/KotlinSpirit/blob/master/src/test/java/com/kotlinspirit/PerformanceTest.kt
What are some alternatives?
alass - "Automatic Language-Agnostic Subtitle Synchronization"
konbini - Parser library for Kotlin
instaparse
parsus - Parser-combinators with Multiplatform Kotlin Coroutines
langs
better-parse - A nice parser combinator library for Kotlin
elder_launcher - A Launcher focused on simplicity and legibility.
Ksoup - Ksoup is a lightweight Kotlin Multiplatform library for parsing HTML, extracting HTML tags, attributes, and text, and encoding and decoding HTML entities.
snapdrop - A Progressive Web App for local file sharing
json5k - JSON5 library for Kotlin
once - Collect and deduplicate stories (RSS, Hacker News, Lobsters or Reddit) and look at them once.
kotlin - The Kotlin Programming Language.