acetylene_parser

Crates.ioacetylene_parser
lib.rsacetylene_parser
version0.1.0
sourcesrc
created_at2016-09-25 20:27:43.092656
updated_at2016-09-25 20:27:43.092656
descriptionA parser for chemical formulas.
homepage
repositoryhttps://gitlab.com/acetylene/acetylene-parser
max_upload_size
id6625
size337,445
(crenellation)

documentation

README

acetylene-parser

A string parser for different chemical nomenclature.

functions

  • 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.

roadmap

  • implement SMILES parsing
  • improve struct based on SMILES findings
  • decide whether InChI implementation is worth it

references

SMILES

IUPAC

InChI

data

Commit count: 54

cargo fmt