Which Parser? #29
Replies: 3 comments 7 replies
-
I've started experimenting with pest |
Beta Was this translation helpful? Give feedback.
-
Some interesting links: |
Beta Was this translation helpful? Give feedback.
-
Based on @35VLG84 's tests, I went in the direction of re-implementing Ledger's parser in ledger-rs-lib. There are several repositories with attempts to reconstruct the Ledger's parsing directly. However, that did not go well, transferring the C++ concepts into Rust. All the options are still open and it should be possible to swap parsers, should a more-performant option appears. As a result, there is an ENBF syntax diagram for the journal format in the ReadMe file and the test suite should follow. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to identify the best parser approach for Ledger grammar.
The existing parsers are using parser libraries, not hand-written parsers. I'd like to experiment with different parser libraries available in Rust and compare the results.
Another possibility is to create a hand-written parser.
LL, LR, or PEG?
Existing implementations:
pest
chumsky
nom
antlr
Known Rust parsers and other resources are listed at Parser Resources wiki page.
Specific implementations:
Beta Was this translation helpful? Give feedback.
All reactions