Crates.io | acetylene_parser |
lib.rs | acetylene_parser |
version | 0.1.0 |
source | src |
created_at | 2016-09-25 20:27:43.092656 |
updated_at | 2016-09-25 20:27:43.092656 |
description | A parser for chemical formulas. |
homepage | |
repository | https://gitlab.com/acetylene/acetylene-parser |
max_upload_size | |
id | 6625 |
size | 337,445 |
A string parser for different chemical nomenclature.
tokenize(string, type="formula") -> Substance
Tokenizes a string describing a chemical, yielding a Substance with (optional) functional groups corresponding to (more) fundamental components.
"formula" type expects a simple "secondary school" element-symbol naming string.
"smiles" expects a chemical name utilizing the SMILES system.
TODO: "iupac" expects a chemical name utilizing the IUPAC system.