Pliant icon indicating copy to clipboard operation
Pliant copied to clipboard

ABNF support as in RFC 5324

Open ArsenShnurkov opened this issue 8 years ago • 2 comments

https://tools.ietf.org/html/rfc5234

right now EBNF is implemented like ANBF. I propose to create a separate implementation for ABNF, in particular for syntax without commas as on page 6 of the rfc:

3.1.  Concatenation:  Rule1 Rule2

ArsenShnurkov avatar Mar 16 '17 03:03 ArsenShnurkov

Current syntax have the same comment style as W3C EBNF described here - https://www.w3.org/TR/REC-xml/#sec-notation

ArsenShnurkov avatar Mar 23 '17 16:03 ArsenShnurkov

For all of the ABNF, EBNF and BNF code in the framework, I'm planning on pulling out these into RFC compliant assemblies and releasing them as distinct nuget packages. I'm going to rename the current EBNF to "Dsl" (Domain Specific Language) to set it apart from RFC compliance.

The original intent of the Ebnf code was to serve as a grammar DSL with regex support and a syntax for macros like "ignore" tokens. I see value in having RFC compliant parsing libraries as a feature, so I'm going to mark this as an enhancement.

patrickhuber avatar Mar 24 '17 18:03 patrickhuber