Open sabidhasan opened 6 years ago
@sabidhasan perhaps you are interested for a similar solution in C++? Then take a look at my repository GTK-Periodic-Table-Molecular-Formula ...
Might I recommend adding a separate helper function that would format a given complex string into one more readable by functions like atomicMass
? I could write one up and make a PR fairly easily if need be; I've worked on a similar project in JS before.
Hello,
Would you be open to a modification of the
atomicMass
function that allows it to parse complex formulae?I mean two things by this:
I wrote a Python module at one point with this functionality so it should be pretty easy to port to JS.
If interested, I can fork and make a PR