Documentation of InChI syntax as a formal grammar in W3C EBNF notation. This work in progress currently recognizes the prefix, formula (partial), connections, and h_atoms layers.
The test suite is written in Ruby and uses the EBNF gem. Test strings are contained in strings.txt. To install the harness and run the tests:
cd test
bundle install --path vendor/bundle
ruby test.rb
InChI Grammar is distributed under the terms of the MIT License. See LICENSE-MIT and COPYRIGHT for details