KotlinSpirit
Lightweight library for parsing text in Kotlin, inspired by C++ boost spirit library. (by tiksem)
rosie
By rosie-pattern-language
KotlinSpirit | rosie | |
---|---|---|
3 | 4 | |
1 | - | |
- | - | |
7.6 | - | |
about 1 month ago | - | |
Kotlin | ||
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
KotlinSpirit
Posts with mentions or reviews of KotlinSpirit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-10.
- 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
rosie
Posts with mentions or reviews of rosie.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-10.
-
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?
What are some alternatives?
When comparing KotlinSpirit and rosie you can also consider the following projects:
konbini - Parser library for Kotlin
alass - "Automatic Language-Agnostic Subtitle Synchronization"
parsus - Parser-combinators with Multiplatform Kotlin Coroutines
instaparse
better-parse - A nice parser combinator library for Kotlin
langs
Ksoup - Ksoup is a lightweight Kotlin Multiplatform library for parsing HTML, extracting HTML tags, attributes, and text, and encoding and decoding HTML entities.
elder_launcher - A Launcher focused on simplicity and legibility.
json5k - JSON5 library for Kotlin
snapdrop - A Progressive Web App for local file sharing