https://github.com/bash/abnf-validator
A fork of Chris Newman's ABNF Validator
https://github.com/bash/abnf-validator
Last synced: 4 months ago
JSON representation
A fork of Chris Newman's ABNF Validator
- Host: GitHub
- URL: https://github.com/bash/abnf-validator
- Owner: bash
- Created: 2017-10-25T20:42:13.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-04-16T15:50:38.000Z (almost 3 years ago)
- Last Synced: 2025-10-14T07:09:59.516Z (5 months ago)
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ABNF Validator
This is a fork of [Chris Newman's ABNF Validator](https://web.archive.org/web/20181228051239/https://www.apps.ietf.org/content/chris-newmans-abnf-validator), which is public domain, with some opinionated modifications.
The modified code is public domain.
## Modifications
* All cgi-related code has been removed ([88aecb1](https://github.com/squid-lang/abnf-validator/commit/03be0d7de1a605bb319d20fcca1e5782f23c62bd))
* The first rule is always marked as referenced ([9c68e5d](https://github.com/squid-lang/abnf-validator/commit/9c68e5d041140c50056f337dcdfba8357fb7e302))
* Errors and Warnings always produce a non-zero [exit status](https://en.wikipedia.org/wiki/Exit_status) ([939e7aa](https://github.com/squid-lang/abnf-validator/commit/939e7aac9d9b99cbe64224723b4240aff3abcc7a))
## Usage
The program accepts abnf input through STDIN.
Example:
```sh
cat syntax.abnf | ./abnf
```
## Building
Building requires `gcc` and `make`.
```sh
make
```