-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New parsebib.el
version.
#849
Comments
Hi @joostkremers - thanks for checking! I'll copy @roshanshariff in case he has anything to contribute. There is a small test file in the repo, but I don't think that'd be very helpful. I did just compile and load the file, and got the below warnings, which go away if I compile and load it a second time. Not sure how significant they are, though ideally they wouldn't bother users. Citar seems to run fine regardless on a quick check.
|
Well, just to be certain, I'll run the tests anyway.
They are expected, since I changed the signature of some of the functions. But they're all functions that Citar doesn't use directly, so apart from the warnings, which will probably pop up once users upgrade, nothing bad should happen.
That's good to know, thanks for checking. I'll wait and see if @roshanshariff has anything, and I'll be hunting down some random BibTeX files from the web, to see how |
I just pushed the new parser to Github. It should start appearing in Melpa soon. |
Thanks!
|
What's the version number for this?
… |
It's version 6.0 in the For Citar, though, the version shouldn't matter, because the |
Hi @bdarcus, I've taken the recent issue with post-processing of field values as incentive to finally do what I've been wanting to do for a long time: replace the horrible regexp-based parsing code in
parsebib.el
with something that at least somewhat resembles a real parser.I've now gone and done that: I implemented a simple, custom recursive descent parser to replace the regexp-based code. It passes all tests, and I can open my main bibliography file in Ebib without issues, but test coverage isn't all that great and my own bibliography files are created by Ebib, so they're not a real test.
So I was wondering if you have some test file or something that you'd be willing to share, or test yourself.
And more generally, what would it take for you to be comfortable with me pushing the new parsing code to master? The high-level API hasn't changed, so there should be no need for any changes in Citar, but since there appear to be quite a lot of people that rely on Citar, I don't want to cause unnecessary trouble.
BTW, the new version of
parsebib.el
currenly lives at https://github.com/joostkremers/parsebib/tree/wip/rdp.The text was updated successfully, but these errors were encountered: