This is a fork of Chris Newman's ABNF Validator, which is public domain, with some opinionated modifications.
The modified code is public domain.
- All cgi-related code has been removed (88aecb1)
- The first rule is always marked as referenced (9c68e5d)
- Errors and Warnings always produce a non-zero exit status (939e7aa)
The program accepts abnf input through STDIN.
Example:
cat syntax.abnf | ./abnf
Building requires gcc
and make
.
make