Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 668 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 668 Bytes

InChI Grammar

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.

Run Tests

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

License

InChI Grammar is distributed under the terms of the MIT License. See LICENSE-MIT and COPYRIGHT for details