uu-parsinglib #8
Replies: 2 comments 4 replies
-
|
Interesting, I do like the Idiom brackets can, for sure, be supported by other frameworks (including One of the reasons for I do agree that |
Beta Was this translation helpful? Give feedback.
-
|
I don't have enough experience using the library, but here's an excerpt of an interesting stackoverflow answer from the author of the package:
I do wonder how the error messages compare. One thing I noticed is that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The most important difference between
uu-parsingliband the parsec family of parser combinators is that the parsers inuu-parsinglibare based on CFGs instead of PEGs, which means that the alternative operation<|>is unbiased inuu-parsinglib. In my opinion, this allows you to write your parsers in a much more natural way (no more worrying about puttingtryin the right place!).Furthermore,
uu-parsingliblibrary has a lot of unique features and patterns:iI (+) '(' pNatural "plus" pNatural ')' Ii. Although, I think this is mostly a gimmick.<<|>, and greedy, e.g.pList, and non-greedy, e.g.pList_ng, variants of many combinators.Technical reports for more info:
I think the main thing that holds these ideas back is that the library is not really in a good state for mass adoption yet. It needs much better documentation and more active maintenance. I hope to be able to contribute something on that front.
Beta Was this translation helpful? Give feedback.
All reactions