Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dalke
3 months ago
|
parent
|
context
|
favorite
| on:
Parsing Chemistry
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You also define Chain as:
I believe this means your grammar allows the invalid SMILES C=.N