Skip to content

A simple script that allows to run tests for checking the correctness of an ABNF-file for parse2

Notifications You must be signed in to change notification settings

ckristo/testabnf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

testabnf

testabnf is a very simple bash script that allows to define test cases to check an ABNF grammer very easily. The script is a wrapper for the parse2 library that generates and executes a parser against an ABNF file.

Requirements:

Usage:

testabnf.sh aparse.jar file.abnf test-file
  • file.abnf : contains the ABNF grammar used to parse the test strings
  • test-file : a text file that contains the test strings line by line with a prefixed sign indicating if the test should succeed or fail, e.g.:

+ a string that should be parsed successfully by aparse
- a string that should NOT be parsed successfully by aparse
# + a string that is ignored because it is commented-out

About

A simple script that allows to run tests for checking the correctness of an ABNF-file for parse2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages