-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding defparser #5
Conversation
Is it possible to add a test in |
tests added. Let me know if too 'fancy' but the time margin tested in the final test is very safe. |
@judepayne Cool, I'll look at this first thing my morning |
hold off pls. Am making further changes |
Alright! |
Hi @borkdude I'm trying to get every last bit of instaparse core out across a combination of pod.babashka.instaparse and instaparse-bb. Why should Babashka have less?? :) instaparse has a function to In the pod, I have a little macro to capture out
and I use it in the
If I modify the
I can see "parse called" in the bb test.clj script, when testing the compiled pod. Any tips on what I could be missing here? |
Ah I see.
|
Closing this while I see whether a PR to instaparse with native-image support for tracing is acceptable. Will revert with a new PR |
Sure, it might be best to chop up your PRs in smaller parts so we can merge them individually. Thanks for your contributions! |
Pleasure! and thanks for the advice |
Pushed a smaller commit. Feel free to review and merge @borkdude Additional functionality: defparser macro, parser returns a reified object that implements IFn as well as a Parser protocol so now you can do:
Additional tests. Updated Readme |
@judepayne When I run |
test-resources done. I'll have a look at circleci for this |
Please merge the circleci PR first, then I can re-push this one and see where the problem is with |
Done! |
Seems to work! I'll merge. One minor optional follow up after this, there seems to be something odd in the CircleCI build: Error computing cache key: template: cacheKey:1:19: executing "cacheKey" at <checksum "project.clj">: error calling checksum: open /home/circleci/repo/project.clj: no such file or directory |
|
Thanks. Yes it's from this:
Pretty sure I didn't put that there. Assumed you did? If not, not sure how it got there - I'll remove it and then we're good :) |
Adding a simple
defparser
macro that creates a parser in the pod and returns a reference to it, just likeparse