Y
Hacker News
new
|
ask
|
show
|
jobs
by
dekhn
221 days ago
I wrote a very simple SMILES parser using pyparsing
https://github.com/dakoner/smilesparser/tree/master
I wouldn't say it's intended for production work, but it has been useful in situations where I didn't want to pull in rdkit.
1 comments
dalke
220 days ago
I see you include the dot disconnect "." as part of the Bond definition.
You also define Chain as:
Chain <<= pp.Group(pp.Optional(Bond) + pp.Or([Atom, RingClosure]))
I believe this means your grammar allows the invalid SMILES C=.N
link
You also define Chain as:
I believe this means your grammar allows the invalid SMILES C=.N