Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use ABNF in spec #22

Open
finnp opened this issue Jan 2, 2015 · 1 comment
Open

Use ABNF in spec #22

finnp opened this issue Jan 2, 2015 · 1 comment

Comments

@finnp
Copy link
Member

finnp commented Jan 2, 2015

I noticed that it might be easier to understand and quicker to grasp to use BNF in the spec.

ndjson = *(JSON-line newline)
newline = %x0A                ; Line feed or Newline
JSON-line = JSON-Text \ %x0A ; JSON-Text without Newline character

JSON-line is the JSON-Text from the RFC7159 JSON spec without the usage of a the newline (\n) character.

This also makes clear that empty lines aren't actually allowed in the spec and that we merely recommend parsers to allow this as an option.

Also it easily shows that the last line should be a newline.

@finnp finnp changed the title Use BNF in spec Use ABNF in spec Jan 2, 2015
@hoegertn
Copy link
Member

hoegertn commented Jan 2, 2015

Sounds cool.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants