abnf_parsec
abnf_parsec copied to clipboard
Allow option to define generated functions as `defp`
I'm not sure this is already possible :)
It would be nice to be able to call the library like so:
use AbnfParsec,
private: true
or something like that, so the using modules can build on top of the parser without making every function available.
What do you think?
Probably just some change here to use defcombinatorp, iirc. https://github.com/princemaple/abnf_parsec/blob/main/lib%2Fabnf_parsec%2Fgenerator.ex#L69
Alright I might give it a try later!