abnf icon indicating copy to clipboard operation
abnf copied to clipboard

Python parser generator for ABNF grammars

Results 8 abnf issues
Sort by recently updated
recently updated
newest added

An [erratum](https://www.rfc-editor.org/errata/rfc6266) to [RFC 6266](https://www.rfc-editor.org/rfc/rfc6266) points out that the rule 'disp-ext-parm' is ambiguous as defined because the rule 'token' matches everything matched by the rule 'ext-token'. In addition, the rule...

enhancement

As of June 2022, [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110) makes obsolete several grammars in ABNF -- [7230](https://www.rfc-editor.org/rfc/rfc7230), [7231](https://www.rfc-editor.org/rfc/rfc7231), [7232](https://www.rfc-editor.org/rfc/rfc7232), [7233](https://www.rfc-editor.org/rfc/rfc7233), [7235](https://www.rfc-editor.org/rfc/rfc7235).

Hi, Thank you a lot for implementing this library! It helps me tremendously to maintain regular expressions by compiling them from ABNFs. I wondered if it would be possible to...

https://tools.ietf.org/html/draft-seantek-unicode-in-abnf-03 proposes an extension of RFC 5234 that adds support for Unicode strings in ABNF.

enhancement

I wanted to parse a file for a project with the grammar defined in ABNF format, and this provided a full syntax tree for the parsed file. That's all --...

It turns out to be useful to use Parser as a type hint in other code, so it should be added to the top-level interface to make it more public.

It seems that `path` should also be reordered, right? `path-abempty` always matches any string as it accepts **0 iterations**. [This is a snippet](https://github.com/declaresub/abnf/blob/master/src/abnf/grammars/rfc3986.py#L35) I am referring to: ```py "path =...

It would be useful to be able to parse bytes directly; indeed, I wish I had done this at the beginning.

enhancement